Compare commits

..

No commits in common. "cff4524296098b2f142ecf99b8ddb9565b73d3fc" and "3c427b8bd392c1cf2fa0f806537f48303b32525c" have entirely different histories.

1 changed files with 8 additions and 28 deletions

View File

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