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: I4cce6b8e972c45d2a23e57e747de7b9ef0d691a3
This commit is contained in:
parent
5c59f9527b
commit
8d3c2b63eb
@ -18,9 +18,9 @@
|
||||
#
|
||||
class bandersnatch::httpd (
|
||||
$vhost_name,
|
||||
$group = 'root',
|
||||
$mirror_root = '/srv/static/mirror',
|
||||
$user = 'root',
|
||||
$group = 'root',
|
||||
$user = 'root',
|
||||
) {
|
||||
include ::httpd
|
||||
|
||||
|
@ -17,11 +17,11 @@
|
||||
# Class to set up bandersnatch mirroring.
|
||||
#
|
||||
class bandersnatch::mirror (
|
||||
$group = 'root',
|
||||
$hash_index = false,
|
||||
$mirror_root = '/srv/static/mirror',
|
||||
$static_root = '/srv/static',
|
||||
$user = 'root',
|
||||
$group = 'root',
|
||||
$hash_index = false,
|
||||
$user = 'root',
|
||||
) {
|
||||
|
||||
if ! defined(File[$static_root]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user