Hi all, I have a little problem when configuring snmp. I have to create the user, and for so I must add a line in : /var/net-snmp/snmpd.conf like: createUser nagios MD5 XXXXXXXXXXXX DES XXXXXXXXXXXXXXXx
and tehn restart snmp. I'm doing it like: class snmp { package { "net-snmp": } exec { "snmp-user": command => "echo 'createUser nagios MD5 n4g10scheque DES n4g10scheque' > /var/net-snmp/snmpd.conf", unless => "/bin/ls /var/net-snmp/snmpd.conf", before => File["/etc/snmp/snmpd.conf"], require => File["/var/net-snmp"], before => Service["snmpd"], timeout => "-1", } file { "/var/net-snmp": ensure => directory, owner => "root", group => "root", mode => "755", } file { "/etc/snmp/snmpd.conf": ensure => present, owner => "root", group => "root", mode => "755", source => "puppet://gridinstall.pic.es/files/etc/snmp/snmpd.conf", require => Package["net-snmp"], } service { "snmpd": ensure => "running", restart => "/etc/init.d/snmpd restart", name => "snmpd", path => "/etc/init.d", pattern => "snmpd", } } But I get spurious errors... and the file is not created... Anyone is doing same thing, could show me its code? Or show my error.... TIA, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---