aboutsummaryrefslogtreecommitdiffstats
path: root/modules/blog/manifests/init.pp
blob: b76e759d4550479b48dc1a7c4bc668be4b3eb057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#TODO: 
# - add the creation of the user 'blog' in puppet
class blog {
	package { 'wget':
        	ensure => installed
    	}
	package { 'nail':
                ensure => installed
        }
	file { "check_new-blog-post":
        	path => "/usr/local/bin/check_new-blog-post.sh",
        	ensure => present,
        	owner => blog,
        	group => blog,
        	mode => 755,
        	content => template("blog/check_new-blog-post.sh")
    	}
	file { "/var/lib/blog":
                ensure => directory,
                owner => blog,
                group => blog,
                mode => 644,
        }
	cron { blog:
        	user => blog,
        	minute => 15,
        	command => "/usr/local/bin/check_new-blog-post.sh",
        	require => File["check_new-blog-post"]
    	}
}