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: I8063448c4b30dc97acbf1cce047bc5dfb6b69664
This commit is contained in:
Andrey Nikitin 2016-03-21 13:05:50 +03:00
parent ad9af0541d
commit d1e34ab9c7
2 changed files with 8 additions and 8 deletions

View File

@ -1,10 +1,10 @@
# == Class: puppet-lodgeit::mysql
#
class lodgeit::mysql(
$database_password,
$mysql_root_password,
$database_name = $name,
$database_user = $name,
$database_password,
) {
class { '::mysql::server':
root_password => $mysql_root_password,

View File

@ -2,14 +2,14 @@
#
define lodgeit::site(
$port,
$db_password,
$db_host='localhost',
$db_name=$name,
$db_user=$name,
$vhost_name="paste.${name}.org",
$image=undef,
$robotstxt=true,
$port,
$db_host = 'localhost',
$db_name = $name,
$db_user = $name,
$image = undef,
$robotstxt = true,
$vhost_name = "paste.${name}.org",
) {
include ::httpd