How to adjust the crontab file from the file manifest

asked 2017-05-18 13:01:37 -0600

Adamoi gravatar image

updated 2017-05-18 13:48:08 -0600

smarlow gravatar image

I am using the Mcafee module:

I need to look about having either the or the mcafee manifest adjust the cron that mcafee agent uses:

It should add the below line to the crontab: 0,30 * * * * /opt/McAfee/agent/scripts/ma checkhealth >/dev/null 2>&1

how can I edit the current module or the file on the master?

I edited manually now , but I need puppet to do it, without using more module like crontab module

edit retag flag offensive close merge delete


maybe I can do something like this in my .pp file? class myclass ($parameter_one = "default text") { file {'/tmp/foo': ensure => file, content => $parameter_one, } }

Adamoi gravatar imageAdamoi ( 2017-05-18 13:40:29 -0600 )edit

The linked module does not seem to include Where are you currently getting it from?

smarlow gravatar imagesmarlow ( 2017-05-18 13:51:51 -0600 )edit

correct , that's my own file that I copy to master. Basically the crontab file already has: opt/McAfee/agent/scripts/ma checkhealt I just need to find a away to add to it >/dev/null 2>&1

Adamoi gravatar imageAdamoi ( 2017-05-18 14:49:35 -0600 )edit

If I am correct in thinking that sets up the cron job, then simply alter to include the desired redirects. The copy being served off of the master is version that gets placed on the end machines and executed.

smarlow gravatar imagesmarlow ( 2017-05-18 15:34:33 -0600 )edit

I just can't find where in the script sets up the cron job

Adamoi gravatar imageAdamoi ( 2017-05-22 10:35:11 -0600 )edit