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