Puppet recipe that installs, configures and starts Apache HTTP server with CGI
Puppet recipe which install Apache httpd serice and loads cgi module. For cgi configuration is used cgi.conf file which is in template/cgi.conf. This configuration file will be copy into /etc/httpd/conf/cgi.conf. There is an example perl script scripts/index.pl which shows some system info, such as uptime of server, number of processors, RAM size, opened files and running proccess, and this file is copied into /var/www/cgi-bin/index.pl.
Generally, you need the following things installed:
- puppet 2.7.21 or higher
- Ruby 1.8.7, and 1.9.3 are fully supported.
- Ruby OpenSSL library.
You can start installation with:
puppet apply main.pp
it will automaticly run httpd.pp and perl.pp manifests.