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


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/41fb10eb-fc01-4d47-a541-1381e7704ef5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to