[Puppet Users] Annoying problem with file

Evan Hisey
Mon, 31 Mar 2008 17:17:36 -0000

Can some point out what is wrong here? I get the follwing error with
code structure in puppet.

err: Could not create /root.ssh/id_dsa: You cannot specify more than
one of content, source, target at /manifests/classes/set-root.pp

#
# set root files
#
class common-root {
                file { "/root/.ssh/id_dsa":
                        mode => 600,
                        owner => root,
                        group => root,
                        backup => false,
                        recurse => false,
                        ensure => true,
                        replace => true,
                        source =>
"puppet://puppet/root/.ssh/id_dsa",
    }
}
As far as I can tell it all looks right and only has source specified.

Evan