Commit 690ccf65 authored by Matthieu FAURE's avatar Matthieu FAURE

Merge branch '12-fix-correct-variable-names-in-autoconfig-file' into 'master'

Resolve "Fix correct variable names in autoconfig file"

Closes #12

See merge request !8
parents 8d820127 653340f3
Pipeline #6387 passed with stages
in 14 minutes and 18 seconds
...@@ -26,26 +26,26 @@ ...@@ -26,26 +26,26 @@
# @example # @example
# include nextcloud # include nextcloud
class nextcloud ( class nextcloud (
String $db_password, String $db_password,
String $nc_admin_username, String $nc_admin_username,
String $nc_admin_password, String $nc_admin_password,
Stdlib::Absolutepath $nc_install_parent_dir = '/var/www', Stdlib::Absolutepath $nc_install_parent_dir = '/var/www',
Stdlib::Absolutepath $nc_data_parent_dir = '/var/lib/nextcloud', Stdlib::Absolutepath $nc_data_parent_dir = '/var/lib/nextcloud',
String $nc_version = 'latest', String $nc_version = 'latest',
Boolean $manage_apache = false, Boolean $manage_apache = false,
Stdlib::Host $apache_hostname = 'nextcloud.example.org', Stdlib::Host $apache_hostname = 'nextcloud.example.org',
Stdlib::Port $apache_port = 80, Stdlib::Port $apache_port = 80,
Boolean $apache_default_vhost = true, Boolean $apache_default_vhost = true,
String $apache_user = 'www', String $apache_user = 'www',
String $php_version = '7.2', String $php_version = '7.2',
Boolean $manage_redis = false, Boolean $manage_redis = false,
Boolean $manage_mariadb = false, Boolean $manage_mariadb = false,
Stdlib::Host $db_hostname = 'localhost', Stdlib::Host $db_hostname = 'localhost',
Stdlib::Port $db_port = 3306, Stdlib::Port $db_port = 3306,
String $db_root_password = 'StrongPa$$w0rdz', String $db_root_password = 'StrongPa$$w0rdz',
String $db_username = 'mariadb', String $db_username = 'mariadb',
String $db_database_name = 'nextcloud', String $db_database_name = 'nextcloud',
String $db_table_prefix = '', String $db_table_prefix = '',
) { ) {
# Local variable # Local variable
......
...@@ -8,5 +8,5 @@ $AUTOCONFIG = array( ...@@ -8,5 +8,5 @@ $AUTOCONFIG = array(
"dbtableprefix" => "<%= @db_table_prefix %>", "dbtableprefix" => "<%= @db_table_prefix %>",
"adminlogin" => "<%= @nc_admin_username %>", "adminlogin" => "<%= @nc_admin_username %>",
"adminpass" => "<%= @nc_admin_password %>", "adminpass" => "<%= @nc_admin_password %>",
"directory" => "<%= @nc_datadir %>", "directory" => "<%= @nc_data_dir %>",
); );
Markdown is supported
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