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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1106 - (hide annotations) (download)
Thu Feb 17 12:29:00 2011 UTC (13 years, 2 months ago) by dams
File size: 1371 byte(s)
update user/group as blog:blog is not needed anymore
1 dams 279 class blog {
2 misc 1040
3 dams 1005 user { "blog":
4     groups => apache,
5 misc 1040 comment => "User running cron jobs for blog",
6 dams 1005 ensure => present,
7     managehome => true,
8 misc 1041 home => "/var/lib/blog",
9 dams 1005 }
10    
11 dams 853 package { ['wget','php-mysql']:
12 misc 746 ensure => installed
13     }
14 dams 276
15 dams 831 file { "check_new-blog-post":
16 misc 746 path => "/usr/local/bin/check_new-blog-post.sh",
17     ensure => present,
18 misc 1042 owner => root,
19     group => root,
20 misc 746 mode => 755,
21     content => template("blog/check_new-blog-post.sh")
22     }
23 misc 1043
24 misc 746 cron { blog:
25     user => blog,
26     minute => '*/15',
27     command => "/usr/local/bin/check_new-blog-post.sh",
28 misc 1047 require => [File["check_new-blog-post"], User['blog']],
29 misc 746 }
30 misc 1043
31     include apache::mod_php
32     include mysql
33 misc 1045
34     $blog_location = "/var/www/html/blog.$domain"
35     $blog_domain = "blog-test.$domain"
36 misc 1048
37     apache::vhost_base { "$blog_domain":
38     location => $blog_location,
39     content => template('blog/blogs_vhosts.conf'),
40 misc 1043 }
41    
42 misc 1048 apache::vhost_base { "ssl_$blog_domain":
43     use_ssl => true,
44     vhost => $blog_domain,
45     location => $blog_location,
46     content => template('blog/blogs_vhosts.conf'),
47     }
48    
49 misc 1045 file { "$blog_location":
50 misc 1043 ensure => directory,
51     owner => blog,
52 misc 1044 # FIXME is the group created by puppet ?
53 dams 1106 group => blog,
54 misc 1043 mode => 644,
55     }
56 dams 143 }

  ViewVC Help
Powered by ViewVC 1.1.30