aboutsummaryrefslogtreecommitdiffstats
path: root/modules/epoll
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-05 23:41:36 +0000
committerMichael Scherer <misc@mageia.org>2010-11-05 23:41:36 +0000
commite7446275c1f5198a0f9c0e0aec8231d266beff8c (patch)
treeae5de3381f37628efc13943f89f48e1d7685486b /modules/epoll
parentb2209850b0659eb299632c54ece079477fc50246 (diff)
downloadpuppet-e7446275c1f5198a0f9c0e0aec8231d266beff8c.tar
puppet-e7446275c1f5198a0f9c0e0aec8231d266beff8c.tar.gz
puppet-e7446275c1f5198a0f9c0e0aec8231d266beff8c.tar.bz2
puppet-e7446275c1f5198a0f9c0e0aec8231d266beff8c.tar.xz
puppet-e7446275c1f5198a0f9c0e0aec8231d266beff8c.zip
- refactor catalyst application config using a common class ( catdap is next )
Diffstat (limited to 'modules/epoll')
-rw-r--r--modules/epoll/manifests/init.pp18
-rw-r--r--modules/epoll/templates/epoll_vhost.conf13
2 files changed, 5 insertions, 26 deletions
diff --git a/modules/epoll/manifests/init.pp b/modules/epoll/manifests/init.pp
index cd1349fa..af0466b2 100644
--- a/modules/epoll/manifests/init.pp
+++ b/modules/epoll/manifests/init.pp
@@ -1,23 +1,15 @@
class epoll {
- include apache::mod_fastcgi
-
$vhost = "epoll.$domain"
+
package { 'Epoll':
ensure => installed
}
-
- # add a apache vhost
- file { "$vhost.conf":
- path => "/etc/httpd/conf/vhosts.d/$vhost.conf",
- ensure => "present",
- owner => root,
- group => root,
- mode => 644,
- notify => Service['apache'],
- content => template("epoll/epoll_vhost.conf")
+
+ apache::vhost_catalyst_app { $vhost:
+ script => /usr/bin/epoll_fastcgi.pl
}
-
+
$password = extlookup("epoll_password")
file { "epoll.yml":
diff --git a/modules/epoll/templates/epoll_vhost.conf b/modules/epoll/templates/epoll_vhost.conf
deleted file mode 100644
index 272aaa28..00000000
--- a/modules/epoll/templates/epoll_vhost.conf
+++ /dev/null
@@ -1,13 +0,0 @@
-<VirtualHost *:80>
- ServerName <%= vhost %>
- # Serve static content directly
- DocumentRoot /dev/null
-
- Alias / /usr/bin/epoll_fastcgi.pl/
- FastCgiServer /usr/bin/epoll_fastcgi.pl -processes 4 -idle-timeout 30
-
- <Location />
- Allow from all
- </Location>
-</VirtualHost>
-