Skip to content

Commit

Permalink
* Fixed a problem with InstallManifest.pm so that striker-enable-vaul…
Browse files Browse the repository at this point in the history
…t would be called during an Install Manifest run would work.

Signed-off-by: Digimer <[email protected]>
  • Loading branch information
Digimer committed Jan 21, 2021
1 parent 38e6129 commit 9081b07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions AN/Tools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,7 @@ sub _set_paths
$an->data->{path}{do_dd} = "/sbin/striker/do_dd";
$an->data->{path}{'striker-configure-vmm'} = "/sbin/striker/striker-configure-vmm";
$an->data->{path}{'striker-delete-anvil'} = "/sbin/striker/striker-delete-anvil";
$an->data->{path}{'striker-enable-vault'} = "/sbin/striker/striker-enable-vault";
$an->data->{path}{'striker-merge-dashboards'} = "/sbin/striker/striker-merge-dashboards";
$an->data->{path}{'striker-change-password'} = "/sbin/striker/striker-change-password";
$an->data->{path}{'striker-push-ssh'} = "/sbin/striker/striker-push-ssh";
Expand Down
12 changes: 12 additions & 0 deletions AN/Tools/InstallManifest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19890,6 +19890,18 @@ sub _do_os_update
name1 => "password", value1 => $password,
}, file => $THIS_FILE, line => __LINE__});

my $return_code = $an->Storage->rsync({
target => $target,
port => $port,
password => $password,
source => $an->data->{path}{'striker-enable-vault'},
destination => "root\@".$target.":/sbin/striker/",
switches => $an->data->{args}{rsync},
});
$an->Log->entry({log_level => 2, message_key => "an_variables_0001", message_variables => {
name1 => "return_code", value1 => $return_code,
}, file => $THIS_FILE, line => __LINE__});

# This checks and enables the Vault repo.
my $shell_call = "if [ -e '/sbin/striker/striker-enable-vault' ];
then
Expand Down

0 comments on commit 9081b07

Please sign in to comment.