diff options
Diffstat (limited to 'modules/epoll/manifests/init.pp')
-rw-r--r-- | modules/epoll/manifests/init.pp | 30 |
1 files changed, 30 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") + } +} |