On 5/21/2013 8:55 AM, Charly Mathieu wrote:
Hello,
I'm trying to write my first module, but I have a problem with a conf
file I want to be managed with puppet.
It's an apache2 vhost file, so the name is "www.example.com", my
ressource is like :
file { 'a2site' :
ensure => present,
path => '/etc/apache2/sites-available/www.example.com',
source =>
"puppet://modules/websitemodule/${conf_file}/etc/apache2/sites-available/www.example.com",
require => File['a2conf'],
}
It's possible to serve files from other places than the Puppetmaster
using this syntax. Note the two forward slashes.
puppet://servername/path/to/file
In your case you want the file to come from the local server, so you
need three forward slashes to indicate that as in following.
puppet:///local/path/to/file
Ramin
--
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.