On 24/01/13 04:28, kdo wrote: > what i thought would be a simple edit using augeas is turning out to not > be so straight forward, can anyone please help ? > > the plan is to edit sendmail.cf and change the default DS to > DShostname.domain > > class mail { > $key = DS > > service { > 'sendmail':; > } > augeas { "sendmail.cf/$key": > context => "/files/etc/mail/sendmail.cf", > changes => "set $key mail.hostname.domain", > notify => Service['sendmail']; > } > }
There's no Augeas lens for sendmail.cf files. From Puppet 3, it'll now warn you if using context and a file wasn't loaded. Otherwise check in augtool with "print" to see if the file can be loaded. Maybe use stdlib's file_line type? -- Dominic Cleal Red Hat Engineering -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.