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: I36851bcdbef1157fbc339834a1cc8dc8344397ce
This commit is contained in:
Andrey Nikitin 2016-03-21 11:37:46 +03:00
parent e51b3a583a
commit e615e916d1
3 changed files with 12 additions and 12 deletions

View File

@ -18,16 +18,16 @@
#
class elastic_recheck::bot (
$gerrit_host,
$gerrit_ssh_host_key = undef,
$recheck_gerrit_user = 'elasticrecheck',
$recheck_ssh_private_key = undef,
$recheck_ssh_public_key = undef,
$recheck_bot_passwd,
$recheck_bot_nick,
$elastic_search_url = 'http://logstash.openstack.org:80/elasticsearch',
$logstash_url = 'http://logstash.openstack.org',
$subunit2sql_db_uri = 'mysql+pymysql://query:query@logstash.openstack.org/subunit2sql',
$daemon_args = undef,
$recheck_bot_passwd,
$daemon_args = undef,
$elastic_search_url = 'http://logstash.openstack.org:80/elasticsearch',
$gerrit_ssh_host_key = undef,
$logstash_url = 'http://logstash.openstack.org',
$recheck_gerrit_user = 'elasticrecheck',
$recheck_ssh_private_key = undef,
$recheck_ssh_public_key = undef,
$subunit2sql_db_uri = 'mysql+pymysql://query:query@logstash.openstack.org/subunit2sql',
) {
include ::elastic_recheck

View File

@ -18,9 +18,9 @@
#
class elastic_recheck::cron (
$uncat_cmd_options = undef,
$graph_all_cmd_options = undef,
$graph_all_cmd_options = undef,
$graph_gate_cmd_options = undef,
$uncat_cmd_options = undef,
) {
$er_state_path = '/var/lib/elastic-recheck'
$graph_all_cmd = "elastic-recheck-graph /opt/elastic-recheck/queries -o all-new.json ${graph_all_cmd_options} && mv all-new.json all.json"

View File

@ -17,7 +17,7 @@
#
class elastic_recheck (
$git_source_repo = 'https://git.openstack.org/openstack-infra/elastic-recheck',
$revision = 'master',
$revision = 'master',
) {
group { 'recheck':