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

Contents of /puppet/modules/planet/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1615 - (show annotations) (download)
Sun May 15 18:21:04 2011 UTC (12 years, 10 months ago) by boklm
File size: 1857 byte(s)
change planet_location to /var/www/vhosts
1 class planet {
2
3 user { "planet":
4 groups => apache,
5 comment => "Planet Mageia",
6 ensure => present,
7 managehome => true,
8 home => "/var/lib/planet",
9 }
10
11 $planet_location = "/var/www/vhosts/planet.$domain"
12 $planet_domain = "planet.$domain"
13
14 include apache::mod_php
15 include apache::mod_deflate
16 apache::vhost_base { "$planet_domain":
17 location => $planet_location,
18 content => template('planet/planet_vhosts.conf')
19 }
20
21 file { "deploy_new-planet":
22 path => "/usr/local/bin/deploy_new-planet.sh",
23 ensure => present,
24 owner => root,
25 group => root,
26 mode => 755,
27 content => template("planet/deploy_new-planet.sh")
28 }
29
30 file { "$planet_location":
31 ensure => directory,
32 owner => planet,
33 group => apache,
34 mode => 644,
35 }
36
37 file { "index":
38 path => "$planet_location/index.php",
39 ensure => present,
40 owner => planet,
41 group => apache,
42 mode => 755,
43 content => template("planet/index.php")
44 }
45
46 package { ['php-iconv']:
47 ensure => installed
48 }
49
50 class files_backup inherits base {
51 file { "/var/lib/planet/backup":
52 ensure => directory,
53 owner => root,
54 group => root,
55 mode => 644,
56 }
57
58 file { "backup_planet-files":
59 path => "/usr/local/bin/backup_planet-files.sh",
60 ensure => present,
61 owner => root,
62 group => root,
63 mode => 755,
64 content => template("blog/backup_planet-files.sh")
65 }
66
67 cron { "Backup files (planet)":
68 user => root,
69 hour => '23',
70 minute => '42',
71 command => "/usr/local/bin/backup_planet-files.sh",
72 require => [File["backup_planet-files"]],
73 }
74 }
75 }

  ViewVC Help
Powered by ViewVC 1.1.30