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'];
}
}


debug: Augeas[sendmail.cf/DS](provider=augeas): Opening augeas with root /, 
lens path , flags 0
debug: Augeas[sendmail.cf/DS](provider=augeas): Augeas version 0.9.0 is 
installed
debug: Augeas[sendmail.cf/DS](provider=augeas): Will attempt to save and 
only run if files changed
debug: Augeas[sendmail.cf/DS](provider=augeas): sending command 'set' with 
params ["/files/etc/mail/sendmail.cf/DS", "mail.hostname.domain"]
debug: Augeas[sendmail.cf/DS](provider=augeas): Skipping because no files 
were changed
debug: Augeas[sendmail.cf/DS](provider=augeas): Closed the augeas connection




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/bAKjIzLscaYJ.
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.

Reply via email to