I have been working with the Augeas resource command and having a
difficult time. At this point I am perplexed as to why the following
code doesn't work. I have the following rule for updating the main.cf
file to change an existing value and to add a new element with
comments:
augeas { "dkim-postfix-settings":
require => Package["postfix"],
context => "/files/etc/postfix/main.cf",
changes => [
"set mailbox_size_limit 50000",
"set non_smtpd_milters inet:localhost:20209",
"ins #comment before non_smtpd_milters",
"set #comment[.=''] 'DKIM Settings'"
]
}
When I run puppetd on the client I get the following debug statement
and I do not get what I am expecting:
--- /etc/postfix/main.cf 2010-06-17 13:27:52.000000000 -0400
+++ /tmp/puppet-diffing.8851.0 2010-06-17 13:27:53.000000000 -0400
@@ -672,6 +672,4 @@
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noplaintext
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination
-mailbox_size_limit = 50000
-# DKIM Settings
-non_smtpd_milters = inet:localhost:20209
+mailbox_size_limit = 256000000
The issues that I have are:
1) Instead of adding the new setting non_smtpd_milters, the diff is
showing that it is removing it. The main.cf file does not get
update.
2) It is very odd that the 'mailbox_size_limit' variable instead of
being set to the value in the rule, it is reset to the run-time value
in Postfix. If I manually edit the file and change it to something
other than 256000000 it is still restored to that value no mater what
I do.
What am I doing wrong?
Thanks,
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.