Skip to content

Commit

Permalink
Merge pull request thecodeteam#21 from aimers1975/LUD-1096-fix
Browse files Browse the repository at this point in the history
LUD-1096 Fix for missing parameters in manifests
  • Loading branch information
gavin-scott authored Jun 11, 2018
2 parents 35ea8a4 + 5c97096 commit 686c81c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions manifests/cluster.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
value => "${cluster_mode}_node",
extra_opts => "--${action}_slave_mdm_name ${slave_names} --${action}_tb_name ${tb_names} --i_am_sure",
unless_query => 'query_cluster | grep -A 1 "Cluster:" | grep',
provider => $cmd_provider
cmd_provider => $cmd_provider
}
}
if $slave_names_to_replace or $tb_names_to_replace {
Expand All @@ -53,6 +53,7 @@
scaleio::cmd {"replace cluster nodes ${add_slave_opts} ${remove_slave_opts} ${add_tb_opts} ${remove_tb_opts}":
action => 'replace_cluster_mdm',
extra_opts => "${add_slave_opts} ${remove_slave_opts} ${add_tb_opts} ${remove_tb_opts} --allow_leave_failed --i_am_sure",
cmd_provider => $cmd_provider
}
}
if $new_password {
Expand All @@ -63,14 +64,16 @@
scope_ref => 'old_password',
scope_value => $password,
approve_certificate => '',
onlyif_query => "login --username admin --password $password"
onlyif_query => "login --username admin --password $password",
cmd_provider => $cmd_provider
}
}
if $license_file_path {
scaleio::cmd {'set license':
action => 'set_license',
ref => 'license_file',
value => $license_file_path}
value => $license_file_path},
cmd_provider => $cmd_provider
}
$mdm_opts = $::mdm_ips ? {
undef => '',
Expand Down
2 changes: 2 additions & 0 deletions manifests/login.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

define scaleio::login(
$password, # string - Password to login into ScaleIO cluster
$cmd_provider = undef,
)
{
scaleio::cmd { "${title} login":
Expand All @@ -12,6 +13,7 @@
scope_ref => 'username',
scope_value => 'admin',
retry => 5,
cmd_provider => $cmd_provider
}
}

Expand Down

0 comments on commit 686c81c

Please sign in to comment.