Hi everyone,
I got a basic puppetmaster setup, which works well for Linux.
I''ve setup a basic function:
define remotefile($owner = root, $group = root, $mode, $source, $backup false,
$recurse = false) {
file {
$name:
mode => $mode,
owner => $owner,
group => $group,
backup => $backup,
source => [
"puppet://$server/$sitename/$sitename/host/$hostname/$source",
"puppet://$server/$sitename/$sitename/$source",
"puppet://$server/$sitename/standard/$source"
]
}
}
(sitename is a custom fact)
an example of a usage is:
remotefile { "/etc/hosts.allow": mode => 644, source =>
"etc/hosts.allow" }
when executing in on Linux puppet client, works great, however when I
execute it on Solaris I get the following output:
err:
//default/unix/remotefile[/etc/hosts.allow]/File[/etc/hosts.allow]/source:
Could not describe /kia/kia/host/didrik/etc/hosts.allow: Could not connect
to localhost on port 8140
err:
//default/unix/remotefile[/etc/hosts.allow]/File[/etc/hosts.allow]/source:
Could not describe /kia/kia/etc/hosts.allow: Could not connect to localhost
on port 8140
err:
//default/unix/remotefile[/etc/hosts.allow]/File[/etc/hosts.allow]/source:
Could not describe /kia/standard/etc/hosts.allow: Could not connect to
localhost on port 8140
puppet is 0.22.1
puppetmaster is 0.23.2-1
the linux puppet is 0.23.2-1
Why does it try to contact localhost???
Thanks,
Ohad
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users