Ask Your Question
1

ERP Template / List of all Cronjobs defined by Puppet

asked 2013-10-18 06:14:51 -0500

Sascha_Brechmann gravatar image

Hi,

i would make a TXT/ ERP - Template file on every Puppet-Agent, where i documented the createt Cronjobs. I need the ensure; timeintervall; command in this template. This file should be exportet and displayed on a central dokumentation server. Any idee ? I am not shore how to get this list and this arguments.

Best Regards, Sascha

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-10-18 14:46:38 -0500

Ancillas gravatar image

I did some digging and I don't think there's a Puppet supported way of doing this directly in an Erb template. This post was the closest I got.

Maybe try exporting the resources to PuppetDB, and then query PuppetDB, passing the value into your Erb template?

edit flag offensive delete link more
0

answered 2013-10-26 11:41:14 -0500

Sascha_Brechmann gravatar image

Hi there,

i have solved the problem with a "wrapper-class". This class is a define with all the arguments that "cron" have. There i make a "doku" file via template.

Regards, Sascha

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-10-18 06:14:51 -0500

Seen: 248 times

Last updated: Oct 26 '13