Hi all,
As I run following command:
puppet agent --server s001ap38-test --no-daemonize --verbose --onetime
I got error as follow:
...
err: Failed to apply catalog: Parameter source failed on File[/etc/httpd/conf.d/s001is35-test.conf]: Cannot use URLs of type 's001ap38-test' as source for fileserving at /etc/puppet/modules/httpd/manifests/init.pp:12
...
My init.pp looks as follow:
class httpd {
package { httpd:
ensure => present,
}
file { "/etc/httpd/conf.d/s001is35-test.conf":
owner => "root",
group => "root",
mode => 0440,
source => "s001ap38-test://$puppetmaster/modules/httpd/files/s001is35-test.conf",
require => Package["httpd"],
}
}
Note: the $puppetmaster is defined in "site.pp" as follow:
import 'nodes.pp'
$puppetmaster = 's001ap38-test'
I want to know what is the reason to the error? I guess the sentence "source => "s001ap38-test://$puppetmaster/modules/httpd/files/s001is35-test.conf"," in the init.pp could be the reason. But I have no idea how to fix it. Could someone help?
Regards