Error: /Stage[main]/Mcafee_epo_agent/Service[cma]: Provider init is not functional on this host

asked 2017-04-28 13:13:57 -0600

Adam gravatar image

updated 2017-05-01 10:06:32 -0600

Error: /Stage[main]/Mcafeeepoagent/Service[cma]: Provider init is not functional on this host: I am using module Mcafeeepoagent puppet PE, on Linux REdHat my code:

 1 class profile::mcafee_epo_agent ()
{
  3
  4  if $::kernel == 'Linux'{
  5    class { 'mcafee_epo_agent':
  6      class_enabled          => true,
  7      agent_install_type     => 'script',
  8      agent_install_options  => '-i',
 9      agent_service_name     => 'cma',
 10      agent_service_ensure   => 'running',
 11      agent_service_enable   => true,
 12      agent_service_provider => 'init',
 13      agent_service_script   => '/etc/init.d/cma',
 14    }
 15  }
 16 }
edit retag flag offensive close merge delete

Comments

What version of RHEL are you running?

smarlow gravatar imagesmarlow ( 2017-05-01 21:26:38 -0600 )edit

it is doing the same on linux 5 or 6 (2.6.32-343.el6.x86_64), The work around is to change init to "redhat" but I am not sure how to fix the code for CentOS systems and how will that impact it

Adam gravatar imageAdam ( 2017-05-02 08:40:31 -0600 )edit

'redhat' should work for CentOS 5/6 (or anything with osfamily == 'RedHat'), and 'systemd' should work for CentOS 7

smarlow gravatar imagesmarlow ( 2017-05-02 11:06:27 -0600 )edit

Thank you for your help

Adam gravatar imageAdam ( 2017-05-02 11:30:51 -0600 )edit