dev/provisioning/modules/sysconfig/manifests/apache.pp
changeset 428 76a47f714766
parent 318 5564f5065f81
equal deleted inserted replaced
427:695111d1eec9 428:76a47f714766
     1 class sysconfig::apache (
     1 class sysconfig::apache (
     2     $vhost = hiera('sysconfig::params::vhost', $sysconfig::params::vhost),
     2     $vhost = hiera('sysconfig::params::vhost', $sysconfig::params::vhost),
     3 ) inherits sysconfig::params {
     3 ) inherits sysconfig::params {
     4     notify {'apache': name => "\$vhost : ${vhost}", withpath => true }
     4     notify {'apache': name => "\$vhost : ${vhost}", withpath => true }
     5 
       
     6     #remove system apache
       
     7     # package { "audit-libs":
       
     8     #     ensure => present
       
     9     # }->
       
    10     # package {"rhscl-httpd24-epel-7-x86_64":
       
    11     #     ensure => present,
       
    12     #     source => "https://www.softwarecollections.org/en/scls/rhscl/httpd24/epel-7-x86_64/download/rhscl-httpd24-epel-7-x86_64.noarch.rpm",
       
    13     #     provider => rpm,
       
    14     # }->
       
    15     # class { '::apache':
       
    16     #     default_vhost => false,
       
    17     #     apache_name => 'httpd24-httpd',
       
    18     #     service_name => 'httpd24-httpd',
       
    19     #     httpd_dir => "/opt/rh/httpd24/root/etc/httpd",
       
    20     #     server_root => "/opt/rh/httpd24/root/etc/httpd",
       
    21     #     conf_dir => "/opt/rh/httpd24/root/etc/httpd/conf",
       
    22     #     confd_dir => "/opt/rh/httpd24/root/etc/httpd/conf.d",
       
    23     #     mod_dir => "/opt/rh/httpd24/root/etc/httpd/conf.d",
       
    24     #     vhost_dir => "/opt/rh/httpd24/root/etc/httpd/conf.d",
       
    25     #     ports_file => "/opt/rh/httpd24/root/etc/httpd/conf.d/ports.conf"
       
    26     # }
       
    27     # class { '::apache':
       
    28     #     default_vhost => false,
       
    29     #     server_signature => 'off',
       
    30     #     server_tokens => 'prod'
       
    31     # }
       
    32     # file {[ "/var/www/corpusdelaparole",
       
    33     #         "/var/www/corpusdelaparole/corpus",
       
    34     #         "/var/www/corpusdelaparole/drupal"]:
       
    35     #     ensure => directory,
       
    36     #     owner => 'apache',
       
    37     #     group => 'apache'
       
    38     # }->
       
    39     # file { "/etc/www":
       
    40     #     ensure => directory,
       
    41     # }->
       
    42     # ::apache::vhost { $vhost:
       
    43     #     port    => '80',
       
    44     #     docroot => "/var/www/corpusdelaparole/drupal",
       
    45     #     options => ['-indexes'],
       
    46     #     aliases => [
       
    47     #         { alias => '/corpus', path => "/var/www/corpusdelaparole/corpus/public" },
       
    48     #     ],
       
    49     #     use_optional_includes => true,
       
    50     #     directories => [
       
    51     #         {
       
    52     #             path => "/var/www/corpusdelaparole/drupal",
       
    53     #             allow_override => ['all',]
       
    54     #         },
       
    55     #         {
       
    56     #             path => "/var/www/corpusdelaparole/corpus/public",
       
    57     #             allow_override => ['all',],
       
    58     #         }
       
    59     #     ],
       
    60     #     custom_fragment => "  <Location /corpus>\n    IncludeOptional /etc/www/corpus_env.con[f]\n  </Location>",
       
    61     # }
       
    62 
     5 
    63     $apache_packages = [
     6     $apache_packages = [
    64         'httpd'
     7         'httpd'
    65     ]
     8     ]
    66     $corpus_folders = [
     9     $corpus_folders = [