/[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 746 - (show annotations) (download)
Sun Jan 9 11:15:13 2011 UTC (13 years, 3 months ago) by misc
File size: 749 byte(s)
use mysql module, reindent the file to be consistent with space and more compact
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
12 file { "check_new-blog-post":
13 path => "/usr/local/bin/check_new-blog-post.sh",
14 ensure => present,
15 owner => blog,
16 group => blog,
17 mode => 755,
18 content => template("blog/check_new-blog-post.sh")
19 }
20
21 file { "/var/lib/blog":
22 ensure => directory,
23 owner => blog,
24 group => blog,
25 mode => 644,
26 }
27
28 cron { blog:
29 user => blog,
30 minute => '*/15',
31 command => "/usr/local/bin/check_new-blog-post.sh",
32 require => File["check_new-blog-post"]
33 }
34 }

  ViewVC Help
Powered by ViewVC 1.1.30