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