kayobe/kayobe
Mark Goddard 2711492262 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
(cherry picked from commit 78702d0e30)
2023-11-30 17:22:43 +01:00
..
cli Generate local Kolla Ansible config in check mode 2023-11-14 11:56:54 +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 22:32:54 +02:00
tests Fix configuration dump with inline encrypted variables 2023-11-30 17:22:43 +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 17:22:43 +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 Support Ansible diff mode 2021-10-21 12:00:33 +00:00
utils.py Fix configuration dump with inline encrypted variables 2023-11-30 17:22:43 +01:00
vault.py Python 3: fix Ansible Vault password helper 2020-05-28 10:57:00 +01:00
version.py Build release notes using reno 2018-05-04 15:11:23 +01:00