[Puppet Users] Re: Annoying problem with file

Luke Kanies
Mon, 31 Mar 2008 17:21:40 -0000

On Mar 31, 2008, at 12:17 PM, Evan Hisey wrote:

> 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.


Puppet thinks that ''ensure => true'' is saying that you want
to ensure
that the file is a link to a file named ''true''.

This behaviour is something that should actually be deprecated, since
it''s more confusing than convenient.

--
It is said that power corrupts, but actually it''s more true that power
attracts the corruptible. The sane are usually attracted by other things
than power. -- David Brin
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com