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.

init.pp 649B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Class: httpd
  2. #
  3. # This class installs Apache
  4. #
  5. # Parameters:
  6. #
  7. # Actions:
  8. # - Install Apache
  9. # - Manage Apache service
  10. #
  11. # Requires:
  12. #
  13. # Sample Usage:
  14. #
  15. class httpd {
  16. include ::httpd::params
  17. package { 'httpd':
  18. ensure => installed,
  19. name => $httpd::params::apache_name,
  20. }
  21. service { 'httpd':
  22. ensure => running,
  23. name => $httpd::params::apache_name,
  24. enable => true,
  25. subscribe => Package['httpd'],
  26. }
  27. file { 'httpd_vdir':
  28. ensure => directory,
  29. path => $httpd::params::vdir,
  30. recurse => true,
  31. purge => true,
  32. notify => Service['httpd'],
  33. require => Package['httpd'],
  34. }
  35. }