Changeset 175 for trunk/puppet/manifests
- Timestamp:
- May 2, 2009, 1:53:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/manifests/classes/cronapt.pp
r162 r175 1 class matrix::cronapt { 1 # 2 # example: 3 # cronapt::mailon-mailto { dist: 4 # mailon => "upgrade", 5 # mailto => "root@localhost" 6 # } 7 8 define cronapt::mailon-mailto ( $mailon, $mailto ) { 9 include cronapt 10 # the following file needs to have the same name as the action conf file. 11 file { "/etc/cron-apt/config.d/4-upgrade": 12 ensure => "present", 13 content => "MAILON=\"$mailon\"\nMAILTO=\"$mailto\"\n", 14 require => Package["cron-apt"] 15 } 16 } 17 18 class cronapt { 2 19 package { "cron-apt": ensure => installed } 3 20 … … 19 36 } 20 37 21 file { "/etc/cron-apt/config.d/4-upgrade":22 ensure => "present",23 content => "MAILON=\"upgrade\"\nMAILTO=\"seguridad@rt.redcta.org.ar\"\n",24 require => Package["cron-apt"]25 }26 27 38 file { "/etc/cron.d/cron-apt": 28 39 content => "# cron-apt cron job, managed by puppet\n0 8 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt\n", … … 31 42 } 32 43 } 33
Note: See TracChangeset
for help on using the changeset viewer.