Sha256: dd900fab1dd36c8cf50e4aadcb34b537c72a1d9de37350c16f32830c6f9442b8
Contents?: true
Size: 904 Bytes
Versions: 24
Compression:
Stored size: 904 Bytes
Contents
# ensure apache is installed class apache { include apache::params package{'httpd': name => $apache::params::apache_name, ensure => present, } service { 'httpd': name => $apache::params::apache_name, ensure => running, enable => true, subscribe => Package['httpd'], } # # May want to purge all none realize modules using the resources resource type. # A2mod resource type is broken. Look into fixing it and moving it into apache. # A2mod { require => Package['httpd'], notify => Service['httpd']} @a2mod { 'rewrite' : ensure => present; 'headers' : ensure => present; 'expires' : ensure => present; } $vdir = $os['name'] ? { 'ubuntu' => '/etc/apache2/sites-enabled/', default => '/etc/httpd/conf.d', } file { $vdir: ensure => directory, recurse => true, purge => true, notify => Service['httpd'], } }
Version data entries
24 entries across 24 versions & 1 rubygems