Puppet modules for deploying Apache in OpenStack infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

params.pp 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Class: httpd::params
  2. #
  3. # This class manages Apache parameters
  4. #
  5. # Parameters:
  6. # - The $user that Apache runs as
  7. # - The $group that Apache runs as
  8. # - The $apache_name is the name of the package and service on the relevant
  9. # distribution
  10. # - The $php_package is the name of the package that provided PHP
  11. # - The $ssl_package is the name of the Apache SSL package
  12. # - The $apache_dev is the name of the Apache development libraries package
  13. #
  14. # Actions:
  15. #
  16. # Requires:
  17. #
  18. # Sample Usage:
  19. #
  20. class httpd::params {
  21. $user = 'www-data'
  22. $group = 'www-data'
  23. $ssl = true
  24. $template = 'httpd/vhost-default.conf.erb'
  25. $priority = '25'
  26. $servername = undef
  27. $serveraliases = undef
  28. $auth = false
  29. $redirect_ssl = false
  30. $options = 'Indexes FollowSymLinks MultiViews'
  31. $vhost_name = '*'
  32. case $::operatingsystem {
  33. 'centos', 'redhat', 'fedora', 'scientific': {
  34. $apache_name = 'httpd'
  35. $php_package = 'php'
  36. $mod_python_package = 'mod_python'
  37. $mod_wsgi_package = 'mod_wsgi'
  38. $ssl_package = 'mod_ssl'
  39. $apache_dev = 'httpd-devel'
  40. $vdir = '/etc/httpd/conf.d/'
  41. }
  42. 'ubuntu', 'debian': {
  43. $apache_name = 'apache2'
  44. $php_package = 'libapache2-mod-php5'
  45. $mod_python_package = 'libapache2-mod-python'
  46. $mod_wsgi_package = 'libapache2-mod-wsgi'
  47. $ssl_package = 'apache-ssl'
  48. $apache_dev = ['libaprutil1-dev', 'libapr1-dev', 'apache2-prefork-dev']
  49. $vdir = '/etc/apache2/sites-enabled/'
  50. }
  51. default: {
  52. $apache_name = 'apache2'
  53. $php_package = 'libapache2-mod-php5'
  54. $mod_python_package = 'libapache2-mod-python'
  55. $mod_wsgi_package = 'libapache2-mod-wsgi'
  56. $ssl_package = 'apache-ssl'
  57. $apache_dev = 'apache-dev'
  58. $vdir = '/etc/apache2/sites-enabled/'
  59. }
  60. }
  61. }