diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/blog/manifests/init.pp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index 8a1fcf17..84cf94d4 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -19,20 +19,15 @@ class blog { 'php-ldap', 'unzip']: } - file { "check_new-blog-post": - path => "/usr/local/bin/check_new-blog-post.sh", - ensure => present, - owner => root, - group => root, - mode => 755, - content => template("blog/check_new-blog-post.sh") + local_script { 'check_new-blog-post.sh': + content => template('blog/check_new-blog-post.sh'), } - - cron { "Blog bot": - user => blog, - minute => '*/15', - command => "/usr/local/bin/check_new-blog-post.sh", - require => [File["check_new-blog-post"], User['blog']], + + cron { 'Blog bot': + user => 'blog', + minute => '*/15', + command => '/usr/local/bin/check_new-blog-post.sh', + require => Local_script['check_new-blog-post.sh'], } include apache::mod_php |