Hello,

        I'm testing my puppet code in the new ubuntu 16.04.

I'm using razorsedge/snmp module from the forge to manage snmpd. In this module, it manages snmpd service with:

  service { 'snmpd':
    ensure     => $service_ensure_real,
    name       => $service_name,
    enable     => $service_enable_real,
    hasstatus  => $service_hasstatus,
    hasrestart => $service_hasrestart,
    require    => [ Package['snmpd'], File['var-net-snmp'], ],
  }

        In concrete, in my config, $service_enable_real has the value of true.

        The problem I'm having is that every run shows the message:

Notice: /Stage[main]/Snmp/Service[snmpd]/enable: enable changed 'false' to 'true'

        Running puppet in debug mode shows:

Debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n''
Debug: Executing: '/bin/systemctl is-active snmpd'
Debug: Executing: '/bin/systemctl show snmpd --property LoadState --property UnitFileState --no-pager'
Debug: Executing: '/bin/systemctl unmask snmpd'
Debug: Executing: '/bin/systemctl enable snmpd'
Notice: /Stage[main]/Snmp/Service[snmpd]/enable: enable changed 'false' to 'true' Debug: /Stage[main]/Snmp/Service[snmpd]: The container Class[Snmp] will propagate my refresh event Debug: Class[Snmp]: The container Stage[main] will propagate my refresh event

I have manually run each systemctl command and all of them returns error code 0. The displayed output is:

root@ubuntu-16-04:~# /bin/systemctl is-active snmpd
active
root@ubuntu-16-04:~# /bin/systemctl show snmpd --property LoadState --property UnitFileState --no-pager
LoadState=loaded
UnitFileState=bad
root@ubuntu-16-04:~# /bin/systemctl unmask snmpd
root@ubuntu-16-04:~# /bin/systemctl enable snmpd
snmpd.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable snmpd

        Any help? Thank you.
        
--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868887590
Fax: 868888337

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/572AED73.8010805%40um.es.
For more options, visit https://groups.google.com/d/optout.

Reply via email to