Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
#9: Increase verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Jul 27, 2020
1 parent 20d4ac3 commit 955ee14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/harbor/tasks/deployment/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def run(self, context: ExecutionContext) -> bool:
return True

def spawn_ansible(self, command):
self.io().info('Spawning Ansible')
self.io().info('Spawning Ansible, you may be asked for vault password to decrypt .env-prod')
return self.sh(command)

def spawn_ssh_agent(self) -> Tuple[str, int]:
Expand Down
1 change: 1 addition & 0 deletions src/harbor/tasks/deployment/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def get_config(self) -> dict:
self.io().info('Decrypting deployment file')
self.sh('cp %s %s' % (filename, tmp_vault_path))

self.io().info_msg('Need a vault passphrase to decrypt "%s"' % filename)
self.rkd([':harbor:vault:encrypt', '-d', tmp_vault_path] + self.vault_args)
self._config = YamlFileLoader(self._ctx.directories).load_from_file(
tmp_vault_filename,
Expand Down

0 comments on commit 955ee14

Please sign in to comment.