diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2010-11-05 00:22:23 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2010-11-05 00:22:23 +0000 |
commit | b4341e4605300c4202da5058f1b9167964c23795 (patch) | |
tree | b321ce5581483da1929c606b0d864e5c248a03f2 /modules/epoll | |
parent | 36e751e92b341313ab429bd87df090a340f95594 (diff) | |
download | puppet-b4341e4605300c4202da5058f1b9167964c23795.tar puppet-b4341e4605300c4202da5058f1b9167964c23795.tar.gz puppet-b4341e4605300c4202da5058f1b9167964c23795.tar.bz2 puppet-b4341e4605300c4202da5058f1b9167964c23795.tar.xz puppet-b4341e4605300c4202da5058f1b9167964c23795.zip |
- add epoll config
Diffstat (limited to 'modules/epoll')
-rw-r--r-- | modules/epoll/manifests/init.pp | 30 | ||||
-rw-r--r-- | modules/epoll/templates/epoll.yml | 11 | ||||
-rw-r--r-- | modules/epoll/templates/epoll_vhost.conf | 14 |
3 files changed, 55 insertions, 0 deletions
diff --git a/modules/epoll/manifests/init.pp b/modules/epoll/manifests/init.pp new file mode 100644 index 00000000..932d16ad --- /dev/null +++ b/modules/epoll/manifests/init.pp @@ -0,0 +1,30 @@ +class epoll { + + include apache::mod_fcgid + + package { 'Epoll': + ensure => installed + } + + # add a apache vhost + file { "epoll.$domain.conf": + path => "/etc/httpd/conf/vhosts.d/$name.$domain.conf", + ensure => "present", + owner => root, + group => root, + mode => 644, + notify => Service['apache'], + content => template("epoll/epoll_vhost.conf") + } + + $password = extlookup("epoll_password") + + file { "epoll.yml": + path => "/etc/epoll.yml", + ensure => "present", + owner => apache, + group => apache, + mode => 600, + content => template("epoll/epoll.yml") + } +} diff --git a/modules/epoll/templates/epoll.yml b/modules/epoll/templates/epoll.yml new file mode 100644 index 00000000..74e44efd --- /dev/null +++ b/modules/epoll/templates/epoll.yml @@ -0,0 +1,11 @@ +--- +name: Vote +# db: connection, see libpq documentation +# dbname=BASENAME;host=SERVER;user=USER;password=PASS +db: dbname=epoll;host=localhost;user=epoll;password=<%= password %> +# The smtp serveur to use, default is localhost +# smtp: +# This change the poll creation behavior, instead ask want confirmation by +# mail +# it ask for this password (in clear) +# newpollpasswd: diff --git a/modules/epoll/templates/epoll_vhost.conf b/modules/epoll/templates/epoll_vhost.conf new file mode 100644 index 00000000..3b6e133c --- /dev/null +++ b/modules/epoll/templates/epoll_vhost.conf @@ -0,0 +1,14 @@ +NameVirtualHost *:80 +<VirtualHost *:80> + ServerName epoll.<%= domain %> + # 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> + |