kayobe/kayobe
Mark Goddard 78702d0e30 Fix configuration dump with inline encrypted variables
If inline Ansible vault encryption is used to define an encrypted
variable in kayobe-config, running 'kayobe configuration dump -l <host>'
fails with the following:

  Failed to decode config dump YAML file /tmp/tmp_fg1bv_j/localhost.yml:
  ConstructorError(None, None, "could not determine a constructor for
  the tag '!vault'", <yaml.error.Mark object at 0x7f1e5c7404c0>)

This change fixes the error by using the Ansible YAML loader which
supports the vault tag. Any vault encrypted variables are sanitised in
the dump output. Note that variables in vault encrypted files are not
sanitised.

Change-Id: I4830500d3c927b0689b6f0bca32c28137916420b
Closes-Bug: #2031390
2023-11-30 10:55:46 +01:00
..
cli Merge "Generate local Kolla Ansible config in check mode" 2023-11-08 18:26:14 +00:00
cmd Stop to use the __future__ module. 2020-06-02 20:19:56 +02:00
plugins Fix MTU of NetworkManager bridge VLAN interfaces 2023-10-20 14:51:37 +02:00
tests Fix configuration dump with inline encrypted variables 2023-11-30 10:55:46 +01:00
__init__.py Add kayobe python module with CLI 2017-02-28 16:17:54 +00:00
ansible.py Fix configuration dump with inline encrypted variables 2023-11-30 10:55:46 +01:00
environment.py Exclude shared directories when creating environments 2021-04-22 09:21:27 +02:00
exception.py Support installing galaxy roles from kayobe-config 2018-05-21 16:00:57 +01:00
kolla_ansible.py Kayobe environment dependencies 2023-05-30 20:20:41 +01:00
utils.py Fix configuration dump with inline encrypted variables 2023-11-30 10:55:46 +01:00
vault.py Add support for ANSIBLE_VAULT_PASSWORD_FILE 2022-10-13 22:08:15 +02:00
version.py Build release notes using reno 2018-05-04 15:11:23 +01:00