/[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 3300 - (show annotations) (download)
Thu Jul 25 21:19:39 2013 UTC (10 years, 8 months ago) by boklm
File size: 1428 byte(s)
planet: add ssl vhost
1 class planet {
2
3 user { 'planet':
4 groups => 'apache',
5 comment => 'Planet Mageia',
6 home => '/var/lib/planet',
7 }
8
9 $vhost = "planet.$::domain"
10 $location = "/var/www/vhosts/$vhost"
11
12 include apache::mod::php
13 include apache::mod::deflate
14
15 apache::vhost::base { $vhost:
16 location => $location,
17 content => template('planet/planet_vhosts.conf')
18 }
19
20 apache::vhost::base { "ssl_$vhost":
21 use_ssl => true,
22 vhost => $vhost,
23 location => $location,
24 content => template('planet/planet_vhosts.conf')
25 }
26
27 mga_common::local_script { 'deploy_new-planet.sh':
28 content => template('planet/deploy_new-planet.sh')
29 }
30
31 file { $location:
32 ensure => directory,
33 }
34
35 file { "$location/index.php":
36 content => template('planet/index.php')
37 }
38
39 package { ['php-iconv']: }
40
41 class files_backup inherits base {
42 file { "/var/lib/planet/backup":
43 ensure => directory,
44 }
45
46 mga_common::local_script { "backup_planet-files.sh":
47 content => template("blog/backup_planet-files.sh")
48 }
49
50 cron { "Backup files (planet)":
51 user => root,
52 hour => '23',
53 minute => '42',
54 command => "/usr/local/bin/backup_planet-files.sh",
55 require => [File["backup_planet-files"]],
56 }
57 }
58 }

  ViewVC Help
Powered by ViewVC 1.1.30