diff options
author | Damien Lallement <dams@mageia.org> | 2010-11-18 10:04:30 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2010-11-18 10:04:30 +0000 |
commit | f4034b1ebd35dc656e3542193f556a72687c61ca (patch) | |
tree | fb94f002ee521a4e3de285ead0d2e813178c563a /modules/blog | |
parent | 9fea1efae21036e4ed6eaddf218c28d775ebb47d (diff) | |
download | puppet-f4034b1ebd35dc656e3542193f556a72687c61ca.tar puppet-f4034b1ebd35dc656e3542193f556a72687c61ca.tar.gz puppet-f4034b1ebd35dc656e3542193f556a72687c61ca.tar.bz2 puppet-f4034b1ebd35dc656e3542193f556a72687c61ca.tar.xz puppet-f4034b1ebd35dc656e3542193f556a72687c61ca.zip |
Change class
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/manifests/init.pp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index a17e5369..4778af10 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -1,9 +1,14 @@ #TODO: # - add the creation of the user 'blog' in puppet -class mysql { +class blog { package { 'mysql': ensure => installed } + + package { 'wget': + ensure => installed + } + package { 'php-mysql': ensure => installed } @@ -12,12 +17,7 @@ class mysql { ensure => running, subscribe => Package["mysql"], } -} - -class check_new-blog-post { - package { 'wget': - ensure => installed - } + file { "check_new-blog-post": path => "/usr/local/bin/check_new-blog-post.sh", ensure => present, @@ -26,12 +26,14 @@ class check_new-blog-post { mode => 755, content => template("blog/check_new-blog-post.sh") } + file { "/var/lib/blog": ensure => directory, owner => blog, group => blog, mode => 644, } + cron { blog: user => blog, minute => '*/15', |