File tree Expand file tree Collapse file tree 15 files changed +39
-39
lines changed Expand file tree Collapse file tree 15 files changed +39
-39
lines changed Original file line number Diff line number Diff line change 88 # The rest of the conf.d/* files only get loaded if we want them
99 if $all {
1010 case $facts [' os' ][' family' ] {
11- ' freebsd ' : {
11+ ' FreeBSD ' : {
1212 include apache::confd::no_accf
1313 }
1414 default: {
Original file line number Diff line number Diff line change 1111 # They are not configurable at this time, so we just include
1212 # them to make sure it works.
1313 case $facts [' os' ][' family' ] {
14- ' redhat ' : {
14+ ' RedHat ' : {
1515 ::apache::mod { 'log_config' : }
1616 if $facts [' os' ][' name' ] != ' Amazon' and $use_systemd {
1717 ::apache::mod { 'systemd' : }
2121 }
2222 ::apache::mod { 'unixd' : }
2323 }
24- ' freebsd ' : {
24+ ' FreeBSD ' : {
2525 ::apache::mod { 'log_config' : }
2626 ::apache::mod { 'unixd' : }
2727 }
3131 default: {}
3232 }
3333 case $facts [' os' ][' family' ] {
34- ' gentoo ' : {}
34+ ' Gentoo ' : {}
3535 default: {
3636 ::apache::mod { 'authz_host' : }
3737 }
3838 }
3939 # The rest of the modules only get loaded if we want all modules enabled
4040 if $all {
4141 case $facts [' os' ][' family' ] {
42- ' debian ' : {
42+ ' Debian ' : {
4343 include apache::mod::authn_core
4444 include apache::mod::reqtimeout
4545 }
46- ' redhat ' : {
46+ ' RedHat ' : {
4747 include apache::mod::actions
4848 include apache::mod::authn_core
4949 include apache::mod::cache
6666 ::apache::mod { 'substitute' : }
6767 ::apache::mod { 'usertrack' : }
6868 }
69- ' freebsd ' : {
69+ ' FreeBSD ' : {
7070 include apache::mod::actions
7171 include apache::mod::authn_core
7272 include apache::mod::cache
Original file line number Diff line number Diff line change 546546 Optional[Boolean] $protocols_honor_order = undef ,
547547) inherits apache::params {
548548 if $facts [' os' ][' family' ] == ' RedHat' and $facts [' os' ][' release' ][' major' ] == ' 7' {
549- # On redhat 7 the ssl.conf lives in /etc/httpd/conf.d (the confd_dir)
549+ # On RedHat 7 the ssl.conf lives in /etc/httpd/conf.d (the confd_dir)
550550 # when all other module configs live in /etc/httpd/conf.modules.d (the
551551 # mod_dir). On all other platforms and versions, ssl.conf lives in the
552552 # mod_dir. This should maintain the expected location of ssl.conf
731731 }
732732
733733 if $apache::conf_dir and $apache::params::conf_file {
734- if $facts [' os' ][' family' ] == ' gentoo ' {
734+ if $facts [' os' ][' family' ] == ' Gentoo ' {
735735 $error_documents_path = ' /usr/share/apache2/error'
736736 if $default_mods =~ Array {
737737 if defined (' apache::mod::ssl' ) {
755755 }
756756
757757 $apxs_workaround = $facts [' os' ][' family' ] ? {
758- ' freebsd ' => true ,
758+ ' FreeBSD ' => true ,
759759 default => false
760760 }
761761
837837 use_port_for_filenames => true ,
838838 }
839839 $ssl_access_log_file = $facts [' os' ][' family' ] ? {
840- ' freebsd ' => $access_log_file ,
840+ ' FreeBSD ' => $access_log_file ,
841841 default => " ssl_${access_log_file} " ,
842842 }
843843 ::apache::vhost { 'default-ssl' :
Original file line number Diff line number Diff line change 9494 # ordering, we ensure that our version of httpd.conf is reverted after
9595 # the module gets installed.
9696 $package_before = $facts [' os' ][' family' ] ? {
97- ' freebsd ' => [
97+ ' FreeBSD ' => [
9898 File [$_loadfile_name],
9999 File [" ${apache::conf_dir} /${apache::params::conf_file} " ]
100100 ],
Original file line number Diff line number Diff line change 1919 # Debian specifies it's cgid sock path, but RedHat uses the default value
2020 # with no config file
2121 $cgisock_path = $facts [' os' ][' family' ] ? {
22- ' debian ' => " \$ {APACHE_RUN_DIR}/cgisock" ,
23- ' freebsd ' => ' cgisock' ,
22+ ' Debian ' => " \$ {APACHE_RUN_DIR}/cgisock" ,
23+ ' FreeBSD ' => ' cgisock' ,
2424 default => undef ,
2525 }
2626
Original file line number Diff line number Diff line change 66class apache::mod::dav_fs {
77 include apache
88 $dav_lock = $facts [' os' ][' family' ] ? {
9- ' debian ' => " \$ {APACHE_LOCK_DIR}/DAVLock" ,
10- ' freebsd ' => ' /usr/local/var/DavLock' ,
9+ ' Debian ' => " \$ {APACHE_LOCK_DIR}/DAVLock" ,
10+ ' FreeBSD ' => ' /usr/local/var/DavLock' ,
1111 default => ' /var/lib/dav/lockdb' ,
1212 }
1313
Original file line number Diff line number Diff line change 3131 $_cache_root = $cache_root
3232 } else {
3333 $_cache_root = $facts [' os' ][' family' ] ? {
34- ' debian ' => ' /var/cache/apache2/mod_cache_disk' ,
35- ' redhat ' => ' /var/cache/httpd/proxy' ,
36- ' freebsd ' => ' /var/cache/mod_cache_disk' ,
34+ ' Debian ' => ' /var/cache/apache2/mod_cache_disk' ,
35+ ' RedHat ' => ' /var/cache/httpd/proxy' ,
36+ ' FreeBSD ' => ' /var/cache/mod_cache_disk' ,
3737 }
3838 }
3939
Original file line number Diff line number Diff line change 8484 }
8585
8686 case $facts [' os' ][' family' ] {
87- ' redhat ' , ' debian ' , ' freebsd ' : {
87+ ' RedHat ' , ' Debian ' , ' FreeBSD ' : {
8888 apache::mpm { 'event' :
8989 }
9090 }
91- ' gentoo ' : {
91+ ' Gentoo ' : {
9292 ::portage::makeconf { 'apache2_mpms' :
9393 content => ' event' ,
9494 }
Original file line number Diff line number Diff line change 7979 }
8080
8181 case $facts [' os' ][' family' ] {
82- ' redhat ' : {
82+ ' RedHat ' : {
8383 package { 'httpd-itk' :
8484 ensure => present ,
8585 }
8686 ::apache::mpm { 'itk' :
8787 }
8888 }
89- ' debian ' , ' freebsd ' : {
89+ ' Debian ' , ' FreeBSD ' : {
9090 apache::mpm { 'itk' :
9191 }
9292 }
93- ' gentoo ' : {
93+ ' Gentoo ' : {
9494 ::portage::makeconf { 'apache2_mpms' :
9595 content => ' itk' ,
9696 }
Original file line number Diff line number Diff line change 3333) {
3434 include apache
3535 case $facts [' os' ][' family' ] {
36- ' freebsd ' : {
36+ ' FreeBSD ' : {
3737 fail(" Unsupported osfamily ${$facts ['os']['family']}" )
3838 }
3939 default: {
40- if $facts [' os' ][' family' ] == ' gentoo ' {
40+ if $facts [' os' ][' family' ] == ' Gentoo ' {
4141 ::portage::makeconf { 'apache2_mpms' :
4242 content => ' peruser' ,
4343 }
You can’t perform that action at this time.
0 commit comments