[augeas-devel] puppet provder not executing
Micah Anderson
micah at riseup.net
Mon Mar 23 02:43:19 UTC 2009
I've got an augeas puppet definition for a new logrotate snippet, there
currently is no /etc/logrotate.d/sympa, but I wish to create one with
augeas. This works fine with augtool, however, puppet isn't applying it,
nor am I seeing any info about why not. This is using puppet 0.24.8rc1.
The puppet chunk is:
augeas {
"logrotate_sympa":
context => "/files/etc/logrotate.d/sympa/rule",
changes => [ "set file /var/log/sympa/*.log", "set rotate 3",
"set schedule weekly",
"set compress compress", "set missingok missingok",
"set ifempty notifempty",
"set copytruncate copytruncate" ]
}
Running puppet with debug tells me:
debug: Augeas[logrotate_sympa](provider=augeas): Opening augeas with
root /, lens path , flags 0
debug: Augeas[logrotate_sympa](provider=augeas): Augeas version 0.4.0 is
installed
debug: Augeas[logrotate_sympa](provider=augeas): Will attempt to save and only run if files changed
debug: Augeas[logrotate_sympa](provider=augeas): sending command 'set'
with params ["/files/etc/logrotate.d/sympa/rule/file", "/var/log/sympa/*.log"]
debug: Augeas[logrotate_sympa](provider=augeas): sending command 'set'
with params ["/files/etc/logrotate.d/sympa/rule/rotate", "3"]
debug: Augeas[logrotate_sympa](provider=augeas): sending command 'set'
with params ["/files/etc/logrotate.d/sympa/rule/schedule", "weekly"]
debug: Augeas[logrotate_sympa](provider=augeas): sending command 'set'
with params ["/files/etc/logrotate.d/sympa/rule/compress", "compress"]
debug: Augeas[logrotate_sympa](provider=augeas): sending command 'set'
with params ["/files/etc/logrotate.d/sympa/rule/missingok", "missingok"]
debug: Augeas[logrotate_sympa](provider=augeas): sending command 'set'
with params ["/files/etc/logrotate.d/sympa/rule/ifempty", "notifempty"]
debug: Augeas[logrotate_sympa](provider=augeas): sending command 'set'
with params ["/files/etc/logrotate.d/sympa/rule/copytruncate",
"copytruncate"]
debug: Augeas[logrotate_sympa](provider=augeas): Skipping becuase no
files were changed
Do I need to somehow first create the file? I tried adding a "ins
sympa before /files/etc/logrotate.d/*[1]" to the augeas line, which
results in the following debug difference:
debug: Augeas[logrotate_sympa](provider=augeas): sending
command 'ins' with params ["sympa", "before",
"/files/etc/logrotate.d/sympa/rule/files/etc/logrotate.d/*[1]"]
but no file created...
I'm probably missing something obvious here?
Micah
More information about the augeas-devel
mailing list