/[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 1045 - (show annotations) (download)
Sat Feb 12 14:03:27 2011 UTC (13 years, 1 month ago) by misc
File size: 1119 byte(s)
- use variable for the blog domain and location (less stuff to change
  later )
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 package { ['wget','php-mysql']:
12 ensure => installed
13 }
14
15 file { "check_new-blog-post":
16 path => "/usr/local/bin/check_new-blog-post.sh",
17 ensure => present,
18 owner => root,
19 group => root,
20 mode => 755,
21 content => template("blog/check_new-blog-post.sh")
22 }
23
24 cron { blog:
25 user => blog,
26 minute => '*/15',
27 command => "/usr/local/bin/check_new-blog-post.sh",
28 require => File["check_new-blog-post"]
29 }
30
31 include apache::mod_php
32 include mysql
33
34 $blog_location = "/var/www/html/blog.$domain"
35 $blog_domain = "blog-test.$domain"
36 apache::vhost_other_app { "$blog_domain":
37 vhost_file => "blog/blogs_vhosts.conf",
38 }
39
40 file { "$blog_location":
41 ensure => directory,
42 owner => blog,
43 # FIXME is the group created by puppet ?
44 group => blog,
45 mode => 644,
46 }
47 }

  ViewVC Help
Powered by ViewVC 1.1.30