Hello List,

do my first steps with puppet an currently i have a working configuration.

In my test i sync a file /etc/apache2/conf.d/testpuppet.conf to the node 
using this:

file { "/etc/apache2/conf.d/testpuppet.conf":
owner => root,
group => root,
mode => "644",
source => "puppet:///modules/apache2/apache2/conf.d/testpuppet.conf",
  }

This is working but it took a while to find where 
puppet:///modules/apache2/apache2/conf.d/testpuppet.conf is really located 
on filesystem.

Now i want to change the sourcetype from puppet:// to file:// described 
here:
https://puppet.com/docs/puppet/5.5/types/file.html#file-attribute-source

I do this because i want to sync the real file otherwise i had to copy file 
on each change.

New source is this:

source => "file:///etc/apache2/conf.d/testpuppet.conf",

Unfortunately on node now i get this error:

Error: /Stage[main]/Apache2/File[/etc/apache2/conf.d/testpuppet.conf]: 
Could not evaluate: Could not retrieve information from environment 
production source(s) file:///etc/apache2/conf.d/testpuppet.conf
Notice: /Stage[main]/Apache2/Service[apache2]: Dependency 
File[/etc/apache2/conf.d/testpuppet.conf] has failures: true
Warning: /Stage[main]/Apache2/Service[apache2]: Skipping because of failed 
dependencies


Whats wrong here? Path is correct and file existent, why cant be synced 
from filesystem directly in this case?

Thanks,
Hajo

-- 
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/a3bf33f7-8e1b-44d2-809b-4871446f442d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to