Compare commits
2 Commits
3c427b8bd3
...
cff4524296
Author | SHA1 | Date |
---|---|---|
7u83 | cff4524296 | |
7u83 | c314bcef6e |
|
@ -29,18 +29,29 @@ class wmdeit_nextcloud(
|
||||||
$nc_user = "www-data",
|
$nc_user = "www-data",
|
||||||
$nc_group = "www-data",
|
$nc_group = "www-data",
|
||||||
|
|
||||||
$php_version = "7.2"
|
$php_version = "7.4",
|
||||||
|
$php_manage_repos = true,
|
||||||
|
|
||||||
|
$create_config = false
|
||||||
)
|
)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
class { 'apache':
|
class { 'apache':
|
||||||
mpm_module => 'prefork',
|
mpm_module => 'prefork',
|
||||||
}
|
}
|
||||||
class { 'apache::mod::php':
|
class { 'apache::mod::php':
|
||||||
# php_version=>"7.2"
|
php_version=>$php_version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class { '::php::globals':
|
||||||
|
php_version => $php_version,
|
||||||
|
config_root => "/etc/php/$php_version",
|
||||||
|
}->
|
||||||
class { '::php':
|
class { '::php':
|
||||||
|
manage_repos => $php_manage_repos,
|
||||||
|
fpm => false,
|
||||||
|
|
||||||
extensions => {
|
extensions => {
|
||||||
zip => {},
|
zip => {},
|
||||||
mbstring => {},
|
mbstring => {},
|
||||||
|
@ -75,18 +86,27 @@ class wmdeit_nextcloud(
|
||||||
serveraliases => $trusted_domains,
|
serveraliases => $trusted_domains,
|
||||||
port => '80',
|
port => '80',
|
||||||
docroot => $install_dir,
|
docroot => $install_dir,
|
||||||
|
docroot_owner => 'www-data',
|
||||||
|
docroot_group => 'www-data',
|
||||||
} ->
|
} ->
|
||||||
exec { 'ncperms':
|
exec { 'ncperms':
|
||||||
command => "/bin/chown -R www-data:www-data $install_dir",
|
command => "/bin/chown -R www-data:www-data $install_dir",
|
||||||
subscribe => Archive["/tmp/$distfile"],
|
subscribe => Archive["/tmp/$distfile"],
|
||||||
|
refreshonly => true,
|
||||||
require => Class["apache"]
|
require => Class["apache"]
|
||||||
} ->
|
}
|
||||||
file { "$install_dir/config/config.php":
|
|
||||||
ensure => file,
|
if $create_config
|
||||||
content => template("wmdeit_nextcloud/config.php.erb")
|
{
|
||||||
} ->
|
file { "$install_dir/config/config.php":
|
||||||
|
require => Exec['ncperms'],
|
||||||
|
ensure => file,
|
||||||
|
content => template("wmdeit_nextcloud/config.php.erb")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
exec {"/bin/mkdir -p $data_dir":
|
exec {"/bin/mkdir -p $data_dir":
|
||||||
|
require => Exec['ncperms'],
|
||||||
creates => $data_dir
|
creates => $data_dir
|
||||||
} ->
|
} ->
|
||||||
file {$data_dir:
|
file {$data_dir:
|
||||||
|
|
Loading…
Reference in New Issue