diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-04 16:57:29 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-04 16:57:29 +0000 |
commit | 2e5ed0420db1f31ebe2c13e9214caa300c9c3451 (patch) | |
tree | ccf2ad909dc52510de0f1b044a3eb7b6bce2050e /modules/catdap/manifests | |
parent | aa733f1a5a0d340c357ce94bfc00971870832255 (diff) | |
download | puppet-2e5ed0420db1f31ebe2c13e9214caa300c9c3451.tar puppet-2e5ed0420db1f31ebe2c13e9214caa300c9c3451.tar.gz puppet-2e5ed0420db1f31ebe2c13e9214caa300c9c3451.tar.bz2 puppet-2e5ed0420db1f31ebe2c13e9214caa300c9c3451.tar.xz puppet-2e5ed0420db1f31ebe2c13e9214caa300c9c3451.zip |
- add a catdap module
Diffstat (limited to 'modules/catdap/manifests')
-rw-r--r-- | modules/catdap/manifests/init.pp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/catdap/manifests/init.pp b/modules/catdap/manifests/init.pp new file mode 100644 index 00000000..45cd6221 --- /dev/null +++ b/modules/catdap/manifests/init.pp @@ -0,0 +1,43 @@ +class catdap { + + include subversion + include subversion::client + include apache::mod_fcgid + + $catdap_location = "/var/www/identity" + + # TODO switch to a proper rpm packaging + $rpm_requirement = ['perl-Catalyst-Runtime', +"perl-Catalyst-Action-RenderView", "perl-Catalyst-Model-LDAP-FromAuthentication", "perl-Catalyst-P-A-Store-LDAP", "perl-Catalyst-Plugin-Authentication", "perl-Catalyst-Plugin-Captcha", +"perl-Catalyst-Plugin-ConfigLoader", "perl-Catalyst-Plugin-I18N", "perl-Catalyst-Plugin-Session-Store-File", "perl-Catalyst-Plugin-Static-Simple", +"perl-Catalyst-P-S-State-Cookie", "perl-Catalyst-P-S-Store-File", "perl-Catalyst-Runtime", "perl-Catalyst-View-Email", +"perl-Catalyst-View-TT", "perl-Config-General", "perl-Crypt-CBC", "perl-Data-UUID", +"perl-Email-Valid", "perl-Moose", "perl-namespace-autoclean", "perl-Test-Simple" ] + + package { $rpm_requirement: + ensure => installed + } + + subversion::snapshot { $catdap_location: + source => "svn+ssh://svn.mageia.org/srv/mx2-dd0/svn/soft/identity/CatDap/branches/live" + } + + # add a catdap config file + file { "$catdap_location/catdap_local.yml": + ensure => present, + owner => apache, + mode => 600, + content => template("catdap/catdap_local.yml") + } + + # add a apache vhost + file { "identity.$domain.conf": + path => "/etc/httpd/conf/vhosts.d/$name", + ensure => "present", + owner => root, + group => root, + mode => 644, + notify => Service['apache'], + content => template("catdap/catdap_vhost.conf") + } +} |