/[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 829 - (show annotations) (download)
Tue Jan 18 16:31:36 2011 UTC (13 years, 3 months ago) by dams
File size: 874 byte(s)
start the migration of blogs on champagne
1 #TODO:
2 # - add the creation of the user 'blog' in puppet
3 class blog {
4 include apache::mod_php
5 include mysql
6
7 package { ['wget','php-mysql']:
8 ensure => installed
9 }
10
11 file { "check_new-blog-post":
12 path => "/usr/local/bin/check_new-blog-post.sh",
13 ensure => present,
14 owner => blog,
15 group => blog,
16 mode => 755,
17 content => template("blog/check_new-blog-post.sh")
18 }
19
20 file { "/var/lib/blog":
21 ensure => directory,
22 owner => blog,
23 group => blog,
24 mode => 644,
25 }
26
27 file { "/var/www/html/blog.mageia.org":
28 ensure => directory,
29 owner => blog,
30 group => apache,
31 mode => 644,
32 }
33
34 cron { blog:
35 user => blog,
36 minute => '*/15',
37 command => "/usr/local/bin/check_new-blog-post.sh",
38 require => File["check_new-blog-post"]
39 }
40 }

  ViewVC Help
Powered by ViewVC 1.1.30