Commit a2bc1268 authored by Matthieu FAURE's avatar Matthieu FAURE
Browse files

FEAT Add Apache + PHP

parent eef36704
......@@ -5,10 +5,11 @@ mod 'puppet-zypprepo', '2.2.2'
# Modules from Puppetlabs: A -> Z
mod 'puppetlabs-apache', '5.0.0'
mod 'puppetlabs-apt', '7.1.0'
# mod 'puppetlabs-apt', '7.1.0'
mod 'puppetlabs-concat', '6.1.0'
mod 'puppetlabs-inifile', '3.1.0'
mod 'puppetlabs-stdlib', '6.0.0'
mod 'puppetlabs-translate', '2.0.0'
# Modules from others: A -> Z
......@@ -20,6 +20,7 @@ Vagrant.configure("2") do |config|
nc.vm.provision "puppet" do |nc1|
nc1.module_path = "modules"
nc1.manifest_file = "default.pp"
# nc1.options = "--verbose --debug"
end
end
end
......
$my_hostname = 'nextcloud.example.org'
$my_docroot = '/var/www/html'
$fastcgi_socket = 'fcgi://127.0.0.1:9000'
class {'apache':}
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",
}
class { 'php::globals':
php_version => '7.3',
php_version => '7.2',
}
-> class {'php':
manage_repos => true,
-> 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 => {},
},
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment