[Puppet Users] Re: Annoying problem with file

Evan Hisey
Mon, 31 Mar 2008 17:25:59 -0000

Luke-
  Thank you. Now that you pointed it out, I have read that several
times and did not catch that true was not a valid option. Okay as I
have used the symlink feature in several places what is the preferred
way to do that?

evan

On Mon, Mar 31, 2008 at 12:21 PM, Luke Kanies <luke@madstop.com>
wrote:
>
>
>  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
>
>
>  >
>