aboutsummaryrefslogtreecommitdiff
path: root/manifests/series7.pp
blob: c3212f471d2ed29695402031603b6f3e4e1c344f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class php::series7(
  $hardened = true
) {
  case $::lsbdistcodename {
    'xenial': {
      include php::ppa
    }
    'stretch': {
      include php::dpa
    }
  }

  $version = '7.2'
  $folder  = "/etc/php/${version}"

  include php::series7::packages
  include php::resources
  include php::series7::defaults

  if $hardened == true {
    include php::series7::hardened
  }

  # The needed apache modules
  #apache::module { 'php':
  #  ensure  => present,
  #  require => Package["libapache2-mod-php${version}"],
  #}

  file { [ "${folder}", "${folder}/cli", "${folder}/apache2", "${folder}/cli/conf.d", "${folder}/apache2/conf.d" ]:
    ensure  => directory,
    owner   => root,
    group   => root,
    mode    => '0755',
    require => Package['php'],
  }
}