bfc687b4d3
This patch adds the workflow definition and actions to perform an Undercloud backup. Workflow can be executed as: mistral execution-create tripleo.undercloud_backup.v1.launch Actions can be invoked as: mistral run-action tripleo.undercloud.get_free_space mistral run-action tripleo.undercloud.create_backup_dir mistral run-action tripleo.undercloud.create_database_backup \ '{"path": "/tmp", "dbpassword": "", "dbuser":"root"}' mistral run-action tripleo.undercloud.create_file_system_backup \ '{ "path": "/tmp/undercloud-backup-dCxQSn", "sources_path": "/home/stack/"}' mistral run-action tripleo.undercloud.upload_backup_to_swift mistral run-action tripleo.undercloud.remove_temp_dir Related bp undercloud-backup-restore Co-Authored-By: Sergii Golovatiuk <sgolovat@redhat.com> Change-Id: Iebd67568d5e72967e694b88fc8c73361543929a1
14 lines
1.1 KiB
Plaintext
14 lines
1.1 KiB
Plaintext
Defaults!/usr/bin/run-validation !requiretty
|
|
Defaults:validations !requiretty
|
|
Defaults:mistral !requiretty
|
|
mistral ALL = (validations) NOPASSWD:SETENV: /usr/bin/run-validation
|
|
mistral ALL = NOPASSWD: /usr/bin/chown -h validations\: /tmp/validations_identity_[A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_], \
|
|
/usr/bin/chown validations\: /tmp/validations_identity_[A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_], \
|
|
!/usr/bin/chown /tmp/validations_identity_* *, !/usr/bin/chown /tmp/validations_identity_*..*
|
|
mistral ALL = NOPASSWD: /usr/bin/rm -f /tmp/validations_identity_[A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_], \
|
|
!/usr/bin/rm /tmp/validations_identity_* *, !/usr/bin/rm /tmp/validations_identity_*..*
|
|
mistral ALL = NOPASSWD: /bin/nova-manage cell_v2 discover_hosts *
|
|
mistral ALL = NOPASSWD: /usr/bin/tar --ignore-failed-read -C / -cf /var/tmp/undercloud-backup-*.tar *
|
|
mistral ALL = NOPASSWD: /usr/bin/chown mistral. /var/tmp/undercloud-backup-*/filesystem-*.tar
|
|
validations ALL = NOPASSWD: ALL
|