/[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 1261 - (show annotations) (download)
Thu Mar 3 15:30:42 2011 UTC (10 years, 7 months ago) by dams
File size: 1106 byte(s)
update user info
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/html/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 { "/var/www/html/planet.$domain":
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 }

  ViewVC Help
Powered by ViewVC 1.1.28