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: I6dbfc2fd3769b174e493bd0392a652eca160f2bd
This commit is contained in:
Andrey Nikitin 2016-03-21 12:51:07 +03:00
parent 59bc52871b
commit eaac86d3f4
3 changed files with 13 additions and 13 deletions

View File

@ -1,10 +1,8 @@
# == Class: jeepyb::fetch_remotes
class jeepyb::fetch_remotes(
$ensure = present,
$user = 'gerrit2',
$minute = '*/30',
$logfile = '/var/log/jeepyb_gerritfetchremotes.log',
$ensure = present,
$logfile = '/var/log/jeepyb_gerritfetchremotes.log',
$log_options = [
'compress',
'missingok',
@ -13,6 +11,8 @@ class jeepyb::fetch_remotes(
'notifempty',
'copytruncate',
],
$minute = '*/30',
$user = 'gerrit2',
) {
validate_array($log_options)

View File

@ -1,8 +1,6 @@
# == Class: jeepyb::manage_projects
class jeepyb::manage_projects(
$timeout = 900, # 15 minutes
$logfile = '/var/log/manage_projects.log',
$log_options = [
'compress',
'missingok',
@ -11,6 +9,8 @@ class jeepyb::manage_projects(
'notifempty',
'copytruncate',
],
$logfile = '/var/log/manage_projects.log',
$timeout = 900, # 15 minutes
) {
validate_array($log_options)

View File

@ -1,16 +1,16 @@
# == Class: jeepyb::openstackwatch
class jeepyb::openstackwatch(
$swift_username,
$swift_password,
$swift_auth_url,
$swift_password,
$swift_username,
$json_url,
$auth_version = '1.0',
$projects = [],
$mode = 'multiple',
$container = 'rss',
$minute = '18',
$hour = '*',
$container = 'rss',
$hour = '*',
$minute = '18',
$mode = 'multiple',
$projects = [],
) {
include ::jeepyb