Hi All,

I have some wired problem with my module to manage MacAfee services. 
My lab have around 150 servers and 145 of them works fine with the module 
I’ve created. 
There are 5 which shows these changes all the time although the service is 
in running state already.

[root@pingapp ~]# service cma status 
cma (pid 1497) is running... 
[root@pingapp ~]# puppet agent -t 
Info: Retrieving pluginfacts 
Info: Retrieving plugin 
Info: Loading facts 
Info: Loading facts 
Info: Caching catalog for il-pingapp-lp1.imperva.local 
Info: Applying configuration version '1444807950' 
Notice: /Stage[main]/Mcafee/Service[cma]/ensure: ensure changed 'stopped' 
to 'running' 
Info: /Stage[main]/Mcafee/Service[cma]: Unscheduling refresh on Service[cma] 
Notice: Finished catalog run in 1.80 seconds 


My module is very simple: 
class mcafee {
    if $check_nails_exsist  == 'true' {

      service { 'nails':
        ensure => "stopped",
        enable => false,
        hasstatus  => false,
        hasrestart => false,
      }
    }
    else {
      service { 'nails':
        ensure => "running",
        enable => true,
        hasstatus  => false,
        hasrestart => true,
        }
      service { 'cma':
        ensure => "running",
        enable => true,
        hasstatus  => false,
        hasrestart => true,
      }
    }
}


As I said in 145 servers with this module works fine according to the if 
statement and another 5 servers shows the "changed 'stopped' to 'running'" 
I checked this thread https://projects.puppetlabs.com/issues/9798 but it 
didn’t help me. 

Any suggestions for this weird behavior?

Thanks,
EddieM

-- 
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/2efd3bf1-a218-4c67-b652-d4d227492c99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to