/[adm]/puppet/modules/blog/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/blog/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1042 - (show annotations) (download)
Sat Feb 12 14:03:23 2011 UTC (13 years, 2 months ago) by misc
File size: 982 byte(s)
- script should be root owned
1 class blog {
2
3 user { "blog":
4 groups => apache,
5 comment => "User running cron jobs for blog",
6 ensure => present,
7 managehome => true,
8 home => "/var/lib/blog",
9 }
10
11 include apache::mod_php
12 include mysql
13 apache::vhost_other_app { "blog-test.$domain":
14 vhost_file => "blog/blogs_vhosts.conf",
15 }
16
17 package { ['wget','php-mysql']:
18 ensure => installed
19 }
20
21 file { "check_new-blog-post":
22 path => "/usr/local/bin/check_new-blog-post.sh",
23 ensure => present,
24 owner => root,
25 group => root,
26 mode => 755,
27 content => template("blog/check_new-blog-post.sh")
28 }
29
30 file { "/var/www/html/blog.$domain":
31 ensure => directory,
32 owner => blog,
33 group => blog,
34 mode => 644,
35 }
36
37 cron { blog:
38 user => blog,
39 minute => '*/15',
40 command => "/usr/local/bin/check_new-blog-post.sh",
41 require => File["check_new-blog-post"]
42 }
43 }

  ViewVC Help
Powered by ViewVC 1.1.30