Hi,
I adapted the apache module for my needs and use it to create vhosts.
Declaration example:
apache::vhost { 'cust1-user1app1' :
client => 'cust1,
envstage => 'dev',
application => 'app1',
devuser => 'user1',
vhost_name => "${name}",
}
$name and $title are shown as being cust1-user1app1 in the logs (notice
directive), but when it creates the file from the template, the result
of <%= vhost_name %> is the node name. Example:
node 'webserver1' inherits webserverbase
Excerpt from puppet --noop:
+<VirtualHost webserver1:80>
Puppet version: puppet-2.7.26-2.el6 (EPEL)
As a side note, is there a way to automatically generate the name of the
declaration (cust1-user1app1 based on the variables?
Thanks,
Ugo
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/1cca6c9e-50a9-495a-ba71-0be6b960cc94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.