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

FEAT Use nextcloud module

parent a2bc1268
#!/bin/bash
r10k puppetfile install -v
vagrant up
MY_PROJECT_NAME="puppet-nextcloud"
# git@gitlab.com:matt.faure/puppet-nextcloud.git
MY_MODULE_URL="git@gitlab.com:matt.faure/${MY_PROJECT_NAME}.git"
MY_REFSPEC="master"
MY_PUPPET_MODULE_NAME="nextcloud"
r10k puppetfile install -v \
&& cd modules \
&& git clone "${MY_MODULE_URL}" \
&& mv "${MY_PROJECT_NAME}" "${MY_PUPPET_MODULE_NAME}" \
&& cd "${MY_PUPPET_MODULE_NAME}" \
&& git checkout "${MY_REFSPEC}"
# Modules from Puppet (VoxPupuli): A -> Z
mod 'puppet-archive', '4.2.0'
mod 'puppet-php', '6.0.2'
mod 'puppet-zypprepo', '2.2.2'
mod 'puppet-archive', '4.2.0' # for php
mod 'puppet-php', '6.0.2' # DIRECT soft dependency
mod 'puppet-zypprepo', '2.2.2' # for php
# Modules from Puppetlabs: A -> Z
mod 'puppetlabs-apache', '5.0.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'
mod 'puppetlabs-apache', '5.0.0' # DIRECT soft dependency
mod 'puppetlabs-apt', '7.1.0' # for php
mod 'puppetlabs-concat', '6.1.0' # for apache
mod 'puppetlabs-inifile', '3.1.0' # for php
mod 'puppetlabs-stdlib', '6.0.0' # DIRECT dependency
mod 'puppetlabs-translate', '2.0.0' # for concat
# Modules from others: A -> Z
$my_hostname = 'nextcloud.example.org'
$my_docroot = '/var/www/html'
$fastcgi_socket = 'fcgi://127.0.0.1:9000'
class { 'apache':
default_vhost => false,
default_ssl_vhost => false,
class { 'nextcloud':
manage_apache => true,
}
class { 'apache::mod::proxy': }
class { 'apache::mod::proxy_fcgi': }
$phpinfo = '/var/www/html/t.php'
apache::vhost { $my_hostname:
docroot => $my_docroot,
port => 80,
override => 'all',
default_vhost => true,
custom_fragment => "ProxyPassMatch ^/(.*\\.php)\$ ${fastcgi_socket}${my_docroot}\$1",
file { 't.php':
path => $phpinfo,
ensure => file,
owner => 'root',
mode => '0644',
}
class { 'php::globals':
php_version => '7.2',
file_line { 'phpinfo':
path => $phpinfo,
line => '<?php phpinfo(); ?>',
}
-> 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