Order of the classes parameters is refactored
Order and intendation of those parameters are changed to follow Puppet Style Guide recommendation [0]. Moreover, it will allow to an user to find much faster a variable in a list of variables. [0]. https://docs.puppetlabs.com/guides/style_guide.html Change-Id: Ifa545d915d25f587e965dbb2852dbfe190f763a2
This commit is contained in:
parent
3dd450ac5e
commit
9f3a6ed02a
|
@ -1,20 +1,20 @@
|
|||
# == Class: phabricator
|
||||
#
|
||||
class phabricator (
|
||||
$vhost_name = $::fqdn,
|
||||
$phab_dir = '/phabricator',
|
||||
$instance = 'dev',
|
||||
$mysql_host = 'localhost',
|
||||
$mysql_port = 3306,
|
||||
$mysql_database = 'phabricator',
|
||||
$mysql_user = 'phabricator',
|
||||
$mysql_user_password,
|
||||
$ssl_cert_file = "/etc/ssl/certs/${::fqdn}.pem",
|
||||
$ssl_key_file = "/etc/ssl/private/${::fqdn}.key",
|
||||
$ssl_chain_file = undef,
|
||||
$ssl_cert_file_contents = undef, # If left empty puppet will not create file.
|
||||
$ssl_key_file_contents = undef, # If left empty puppet will not create file.
|
||||
$ssl_chain_file_contents = undef # If left empty puppet will not create file.
|
||||
$instance = 'dev',
|
||||
$mysql_database = 'phabricator',
|
||||
$mysql_host = 'localhost',
|
||||
$mysql_port = 3306,
|
||||
$mysql_user = 'phabricator',
|
||||
$phab_dir = '/phabricator',
|
||||
$ssl_cert_file = "/etc/ssl/certs/${::fqdn}.pem",
|
||||
$ssl_cert_file_contents = undef, # If left empty puppet will not create file.
|
||||
$ssl_chain_file = undef,
|
||||
$ssl_chain_file_contents = undef, # If left empty puppet will not create file.
|
||||
$ssl_key_file = "/etc/ssl/private/${::fqdn}.key",
|
||||
$ssl_key_file_contents = undef, # If left empty puppet will not create file.
|
||||
$vhost_name = $::fqdn,
|
||||
) {
|
||||
|
||||
$instances_dir = "${phab_dir}/instances"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
class phabricator::mysql(
|
||||
$mysql_root_password,
|
||||
$mysql_bind_address = '127.0.0.1',
|
||||
$mysql_port = '3306'
|
||||
$mysql_port = '3306'
|
||||
) {
|
||||
|
||||
class { '::mysql::server':
|
||||
|
|
Loading…
Reference in New Issue