default.pp 1012 Bytes
Newer Older
Matthieu FAURE's avatar
Matthieu FAURE committed
1
2
3
$my_hostname = 'nextcloud.example.org'
$my_docroot = '/var/www/html'
$fastcgi_socket = 'fcgi://127.0.0.1:9000'
Matthieu FAURE's avatar
Matthieu FAURE committed
4

Matthieu FAURE's avatar
Matthieu FAURE committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class { 'apache':
  default_vhost     => false,
  default_ssl_vhost => false,
}

class { 'apache::mod::proxy': }
class { 'apache::mod::proxy_fcgi': }

apache::vhost { $my_hostname:
  docroot         => $my_docroot,
  port            => 80,
  override        => 'all',
  default_vhost   => true,
  custom_fragment => "ProxyPassMatch ^/(.*\\.php)\$ ${fastcgi_socket}${my_docroot}\$1",
}
Matthieu FAURE's avatar
Matthieu FAURE committed
20
21

class { 'php::globals':
Matthieu FAURE's avatar
Matthieu FAURE committed
22
  php_version => '7.2',
Matthieu FAURE's avatar
Matthieu FAURE committed
23
}
Matthieu FAURE's avatar
Matthieu FAURE committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-> class { 'php':
  # manage_repos => true,
  dev        => true, # à tester
  extensions => {
    ctype => {},
    # curl      => {},
    # dom       => {},
    # gd        => {},
    # iconv     => {},
    # json      => {},
    # libxml    => {},
    # mbstring  => {},
    # openssl   => {},
    # posix     => {},
    # session   => {},
    # simplexml => {},
    # xmlreader => {},
    # xmlwriter => {},
    # zip       => {},
    # zlib      => {},
  },
Matthieu FAURE's avatar
Matthieu FAURE committed
45
}