The backup_and_restore has the same name for a
fact and a register variable, both of them named the same.
That variable is used later on a template (local.conf.j2), which
is using the register one.
This patch removed the register variable, as it's not used.
Change-Id: Id0487e4649ef1f6aaf2591e003746b385f592095
Closes-Bug: 1888404
Instead of execute a command and redirect the output to a file.
This patch gets the output of the command line and writes it
to a file.
Also fixed the molecule-backup_and_restore test
Change-Id: Ie38d8b9fce36ce2f73a2811072e53f405f1367f6
This change will enable or disable no_log and debug options whenever the
verbosity is set to an integer greater than 2. This will ensure operators and
deployers are best equipped to troubleshoot issues by dynamically providing
additional data in an expected way. To ensure we're able to differentiate
between output masking and security masking, two options were used to enable or
disable no_log across our roles and playbooks.
> All debug options, without security implications, will now react to the
`ansible_verbosity` built in by default. Changes have been made to our
skeleton role to ensure this is enforced on all new roles created going
forward.
> An additional prefixed role option, `*_hide_sensitive_logs`, has been added to
allow operators to easily toggle sensitive output when required. The role
prefixed variables will respond to the global option `hide_sensitive_logs` as
defined in THT which will ensure a consistent user experience.
Depends-On: I84f3982811ade59bac5ebaf3a124f9bfa6fa22a4
Change-Id: Ia6658110326899107a0e277f0d2574c79a8a820b
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Do not show passwords in misc ansible outputs
Change-Id: I9c5f3023dbac1a9409d83341790df2a6f5d82179
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
- assure we have docker installed
- fixed hiera call, which can be in /usr/bin/hiera,
/opt/puppetlabs/bin/hiera, or /bin/hiera
Change-Id: I20cbcdead152ccad81fc18f5cf1af9520268a173
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
The current role for backup and restore will need service
management to insure that all running services on the nodes
are stopped and restarted in order to capture a consistent state.
This change also includes database dump functionality which will
allow the operator to create a clean backup of the database.
Change-Id: Ic75f40a750880be4ea00ed79de4575cdbbe0f190
This change replaces all of the roles references in our various files with the
new role name. This is being done because Ansible no longer allows hyphens in
role names.
Change-Id: Ie899714aca49781ccd240bb259901d76f177d2ae
Signed-off-by: Kevin Carter <kecarter@redhat.com>
All roles that have a hyphen in them need to be renamed to use an
underscore. This change creates a symlink to all roles using their
original name which will ensure we maintain compatibility with
the rest of the TripleO stack. This is being done because roles with
hyphens are no longer valid within collections.
A temp PBR update has been made to accomodate all of the symlinks to
the legacy role names.
[0] https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#roles-directory
Change-Id: Id00a3670351990e5489a297c4c7200f8c05af096
Signed-off-by: Kevin Carter <kecarter@redhat.com>