Daniel Maher
2010-Oct-22 10:09 UTC
[Puppet Users] problem w/ puppet & augeus : xinetd.d/rsync server_args value
Hello, I would like to have the following line (among others) in my /etc/xinetd.d/rsync file : server_args = --daemon --address=<ipaddress_eth0> --log-file=/var/log/rsyncd.log To this end, i am using the camptocamp rsyncd module available from git. Everything works except this line. I thought it was, perhaps, a questions of spaces (this has been discussed on the list before), but according to the documentation here : http://projects.puppetlabs.com/projects/1/wiki/Puppet_Augeas All that i should need to do is to enclose the space-filled value in quotes, like so : "set server_args/value ''--daemon --address=$ipaddress_eth0 --log-file=/var/log/rsyncd.log''" A verbose puppetd run says this : debug: Augeas[enable rsync service](provider=augeas): sending command ''set'' with params ["/files/etc/xinetd.d/rsync/rsync/server_args/value", "--daemon --address=10.101.0.3 --log-file=/var/log/rsyncd.log"] debug: Augeas[enable rsync service](provider=augeas): Closed the augeas connection err: //rsyncd/Augeas[enable rsync service]/returns: change from need_to_run to 0 failed: Save failed with return code false notice: //xinetd/Service[xinetd]: Dependency augeas[enable rsync service] has 1 failures I have tried many combinations of quotes, including that suggested here (though, to be clear, i don''t want actual quotes to appear in the file) : http://groups.google.com/group/puppet-users/msg/748d5036ad80dd4f I''ve tried escaping the spaces and escaping the slashes in the log-file component too (just in case) - no dice. Any ideas ? $ rpm -qa | egrep -i "(puppet|augeas)" augeas-libs-0.7.3-1.el5 ruby-augeas-0.3.0-1.el5 puppet-0.25.5-1.el5 augeas-0.7.3-1.el5 Thank you. -- Daniel Maher <dma AT witbe DOT net> "The Internet is completely over." -- Prince -- 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.
Rob McBroom
2010-Oct-22 12:33 UTC
Re: [Puppet Users] problem w/ puppet & augeus : xinetd.d/rsync server_args value
On Oct 22, 2010, at 6:09 AM, Daniel Maher wrote:> I would like to have the following line (among others) in my /etc/xinetd.d/rsync file : > > server_args = --daemon --address=<ipaddress_eth0> --log-file=/var/log/rsyncd.log > > To this end, i am using the camptocamp rsyncd module available from git. Everything works except this line. I thought it was, perhaps, a questions of spaces (this has been discussed on the list before), but according to the documentation here : > http://projects.puppetlabs.com/projects/1/wiki/Puppet_Augeas > > All that i should need to do is to enclose the space-filled value in quotes, like so : > > "set server_args/value ''--daemon --address=$ipaddress_eth0 --log-file=/var/log/rsyncd.log''"That looks more or less correct. Have you experimented with augtool to see if anything works there? Some quick poking around makes me think "value" won''t work. You might need to say "value[1]" or "value[last()]" or something. -- Rob McBroom <http://www.skurfer.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.
Rob McBroom
2010-Oct-22 12:53 UTC
Re: [Puppet Users] problem w/ puppet & augeus : xinetd.d/rsync server_args value
On Oct 22, 2010, at 8:33 AM, Rob McBroom wrote:> Some quick poking around makes me think "value" won''t work. You might need to say "value[1]" or "value[last()]" or something.Looking further, here''s an example from `tftp`: /files/etc/xinetd.d/tftp/tftp/server_args /files/etc/xinetd.d/tftp/tftp/server_args/value[1] = "-s" /files/etc/xinetd.d/tftp/tftp/server_args/value[2] = "/tftpboot" You might need to assign each one individually, like value[1] ''--daemon'' value[2] ''--address=$ipaddress_eth0'' value[3] ''--log-file=/var/log/rsyncd.log'' -- Rob McBroom <http://www.skurfer.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.