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:
parent
59bc52871b
commit
eaac86d3f4
@ -1,10 +1,8 @@
|
|||||||
# == Class: jeepyb::fetch_remotes
|
# == Class: jeepyb::fetch_remotes
|
||||||
|
|
||||||
class jeepyb::fetch_remotes(
|
class jeepyb::fetch_remotes(
|
||||||
$ensure = present,
|
$ensure = present,
|
||||||
$user = 'gerrit2',
|
$logfile = '/var/log/jeepyb_gerritfetchremotes.log',
|
||||||
$minute = '*/30',
|
|
||||||
$logfile = '/var/log/jeepyb_gerritfetchremotes.log',
|
|
||||||
$log_options = [
|
$log_options = [
|
||||||
'compress',
|
'compress',
|
||||||
'missingok',
|
'missingok',
|
||||||
@ -13,6 +11,8 @@ class jeepyb::fetch_remotes(
|
|||||||
'notifempty',
|
'notifempty',
|
||||||
'copytruncate',
|
'copytruncate',
|
||||||
],
|
],
|
||||||
|
$minute = '*/30',
|
||||||
|
$user = 'gerrit2',
|
||||||
) {
|
) {
|
||||||
validate_array($log_options)
|
validate_array($log_options)
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# == Class: jeepyb::manage_projects
|
# == Class: jeepyb::manage_projects
|
||||||
|
|
||||||
class jeepyb::manage_projects(
|
class jeepyb::manage_projects(
|
||||||
$timeout = 900, # 15 minutes
|
|
||||||
$logfile = '/var/log/manage_projects.log',
|
|
||||||
$log_options = [
|
$log_options = [
|
||||||
'compress',
|
'compress',
|
||||||
'missingok',
|
'missingok',
|
||||||
@ -11,6 +9,8 @@ class jeepyb::manage_projects(
|
|||||||
'notifempty',
|
'notifempty',
|
||||||
'copytruncate',
|
'copytruncate',
|
||||||
],
|
],
|
||||||
|
$logfile = '/var/log/manage_projects.log',
|
||||||
|
$timeout = 900, # 15 minutes
|
||||||
) {
|
) {
|
||||||
validate_array($log_options)
|
validate_array($log_options)
|
||||||
|
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
# == Class: jeepyb::openstackwatch
|
# == Class: jeepyb::openstackwatch
|
||||||
|
|
||||||
class jeepyb::openstackwatch(
|
class jeepyb::openstackwatch(
|
||||||
$swift_username,
|
|
||||||
$swift_password,
|
|
||||||
$swift_auth_url,
|
$swift_auth_url,
|
||||||
|
$swift_password,
|
||||||
|
$swift_username,
|
||||||
$json_url,
|
$json_url,
|
||||||
$auth_version = '1.0',
|
$auth_version = '1.0',
|
||||||
$projects = [],
|
$container = 'rss',
|
||||||
$mode = 'multiple',
|
$hour = '*',
|
||||||
$container = 'rss',
|
$minute = '18',
|
||||||
$minute = '18',
|
$mode = 'multiple',
|
||||||
$hour = '*',
|
$projects = [],
|
||||||
) {
|
) {
|
||||||
include ::jeepyb
|
include ::jeepyb
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user