Hi Charly,

I think you're just missing a 3rd '/' in your source, i.e. it should be:

puppet:///modules/websitemodule/${conf_file}/etc/apache2/sites-available/
www.example.com"

Here, 'puppet://' is the protocol and the next '/' is for the root of the
puppet file server.

Regards,

Matt.


On Tue, May 21, 2013 at 4:55 PM, Charly Mathieu <mathieu.cha...@gmail.com>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'],
>> }
>
>
> When I apply it, I got :
>
> err: /Stage[main]/Websitemodule::Initwordpress/File[a2site]: Could not
>> evaluate: getaddrinfo: Temporary failure in name resolution Could not
>> retrieve file metadata for
>> puppet://modules/websitemodule//etc/apache2/sites-available/
>> www.example.com: getaddrinfo: Temporary failure in name resolution at
>> /etc/puppet/modules/websitemodule/manifests/init.pp:53
>
>
> I think puppet understand that it has to look on the internet, with the
> protocol "puppet", because it reads the ".com" at the end.
>
> How can I fix this ?
>
> Thank you :)
>
> --
> 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.
>
>
>

-- 
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.


Reply via email to