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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 31, 2008, at 12:25 PM, Evan Hisey wrote:> 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?Just specify a ''target'' manually, with ''ensure => link''. -- As a general rule, don''t solve puzzles that open portals to Hell. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---