diff options
author | Damien Lallement <dams@mageia.org> | 2011-03-18 18:20:30 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2011-03-18 18:20:30 +0000 |
commit | 51ae016d59fe7b2a57057c07ff40d3127c52814e (patch) | |
tree | ba278e74f27ec4fd553b75a42900413c1134f1f8 /modules/blog/manifests | |
parent | ae640b8ad64a90743ad728561eb8e33a9aedffe6 (diff) | |
download | puppet-51ae016d59fe7b2a57057c07ff40d3127c52814e.tar puppet-51ae016d59fe7b2a57057c07ff40d3127c52814e.tar.gz puppet-51ae016d59fe7b2a57057c07ff40d3127c52814e.tar.bz2 puppet-51ae016d59fe7b2a57057c07ff40d3127c52814e.tar.xz puppet-51ae016d59fe7b2a57057c07ff40d3127c52814e.zip |
add db backup and update class names to be more explicit
Diffstat (limited to 'modules/blog/manifests')
-rw-r--r-- | modules/blog/manifests/init.pp | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index d3640638..dcaff643 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -10,7 +10,7 @@ class blog { } } - class champagne inherits base { + class files-bots inherits base { package { ['wget','php-mysql']: ensure => installed } @@ -55,4 +55,30 @@ class blog { mode => 644, } } + class db_backup inherits base { + file { "/var/lib/blog/backup/db": + ensure => directory, + owner => root, + group => root, + mode => 644, + } + + file { "backup_blog-db": + path => "/usr/local/bin/backup_blog-db.sh", + ensure => present, + owner => root, + group => root, + mode => 755, + content => template("blog/backup_blog-db.sh") + } + + cron { root: + user => root, + day => '*', + hour => '23', + minute => '42', + command => "/usr/local/bin/backup_blog-db.sh", + require => [File["backup_blog-db"]], + } + } } |