If I use 'file' instead of the 'remotefile' function in cat.pp it works
(but errors on all the other remotefiles I have of course). I got the
remotefile function right from
http://reductivelabs.com/trac/puppet/wiki/InstallationGuide
Here are the relevant sections of files inside /etc/puppet:
manifests/site.pp
-----------------
import "functions.pp"
import "dept/*.pp"
...
node enzo,andraia {
include catbox
include debworkstation32
include debldap
include debtesting
}
manifests/dept/cat.pp
---------------------
class catbox {
remotefile { "/etc/resolv.conf":
group => staff, mode => 644,
source => "cat/etc/resolv.conf"
} # <-- line 6 in the file (see console output below)
...}
manifests/functions.pp
----------------------
define remotefile($owner = root, $server = geppetto, $group = root,
$mode, $source, $backup = true, $recurse = false) {
file {
$name:
mode => $mode,
owner => $owner,
group => $group,
backup => $backup,
source => "puppet://$server/$source"
}
}
fileserver.conf
---------------
[cat]
path /etc/puppet/configs/solaris/cat
allow *.cat.pdx.edu
And /etc/puppet/configs/solaris/cat/etc/resolv.conf exists on the server.
Console output:
root@andraia:/etc/puppet# puppetd -t
notice: Ignoring cache
err: Could not retrieve configuration: Puppet::Parser::AST::ResourceDef
failed with error Errno::ENOENT: No such file or directory - getcwd at
/etc/puppet/manifests/dept/cat.pp:6
warning: Not using cache on failed configuration
root@andraia:/etc/puppet#
Thanks for any help.
--
Hunter Haugen (hunner)
Computer Action Team
Email: sup...@cat.pdx.edu
Phone: 5-5420 / 503-725-5420