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

Diff of /puppet/modules/catdap/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 96 by misc, Thu Nov 4 17:06:29 2010 UTC revision 97 by misc, Thu Nov 4 17:51:05 2010 UTC
# Line 5  class catdap { Line 5  class catdap {
5      include apache::mod_fcgid      include apache::mod_fcgid
6    
7      $catdap_location = "/var/www/identity"      $catdap_location = "/var/www/identity"
8        $catdap_vhost = "identity.$domain"
9    
10      # TODO switch to a proper rpm packaging      # TODO switch to a proper rpm packaging
11      $rpm_requirement = ['perl-Catalyst-Runtime',      $rpm_requirement = ['perl-Catalyst-Runtime',
# Line 19  class catdap { Line 20  class catdap {
20      }      }
21    
22      subversion::snapshot { $catdap_location:      subversion::snapshot { $catdap_location:
23          source =>   "svn+ssh://svn.mageia.org/srv/mx2-dd0/svn/soft/identity/CatDap/branches/live"          source => "svn://svn.mageia.org/soft/identity/CatDap/branches/live"
24      }      }
25    
26      # add a catdap config file      # add a catdap config file
# Line 27  class catdap { Line 28  class catdap {
28          ensure => present,          ensure => present,
29          owner => apache,          owner => apache,
30          mode => 600,          mode => 600,
31          content => template("catdap/catdap_local.yml")          content => template("catdap/catdap_local.yml"),
32            require => Subversion::Snapshot[$catdap_location]
33      }      }
34    
35        $catdap_password = extlookup('catdap_password')
36      # add a apache vhost      # add a apache vhost
37      file { "identity.$domain.conf":      file { "$catdap_vhost.conf":
38          path => "/etc/httpd/conf/vhosts.d/$name",          path => "/etc/httpd/conf/vhosts.d/$catdap_vhost.conf",
39          ensure => "present",          ensure => "present",
40          owner => root,          owner => root,
41          group => root,          group => root,

Legend:
Removed from v.96  
changed lines
  Added in v.97

  ViewVC Help
Powered by ViewVC 1.1.30