diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-05 23:29:16 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-05 23:29:16 +0000 |
commit | b2209850b0659eb299632c54ece079477fc50246 (patch) | |
tree | 33a2eaed47114136c340f63278aa4cb1719343e1 /modules/apache/manifests | |
parent | 716e45e75a8cd994c701f91d20834719c2024ad6 (diff) | |
download | puppet-b2209850b0659eb299632c54ece079477fc50246.tar puppet-b2209850b0659eb299632c54ece079477fc50246.tar.gz puppet-b2209850b0659eb299632c54ece079477fc50246.tar.bz2 puppet-b2209850b0659eb299632c54ece079477fc50246.tar.xz puppet-b2209850b0659eb299632c54ece079477fc50246.zip |
- add a define to ease catalyst application deployement
Diffstat (limited to 'modules/apache/manifests')
-rw-r--r-- | modules/apache/manifests/init.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 63b1878d..2bbf03f4 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -53,4 +53,19 @@ class apache { ensure => installed } } + + define vhost_catalyst_app($script, $process = 4, $force_ssl = false) { + + include apache::mod_fastcgi + + file { "$name.conf": + path => "/etc/httpd/conf/vhosts.d/$name.conf", + ensure => "present", + owner => root, + group => root, + mode => 644, + notify => Service['apache'], + content => template("apache/vhost_catalyst_app.conf") + } + } } |