Add --xattrs to sudoers.

Depending on the environment permissions
the backup creation can fail.

This submission allows using sudo with xattrs
when creating the backup tarball.

Change-Id: I1f52b7fbaf6b20a064ab773c6c984db5846e33ec
resolves: rhbz#1594279
Closes-bug:1782341
This commit is contained in:
Carlos Camacho committed 2018-07-20 10:16:56 +02:00
1 parent a2c3be24fb
commit 4d86579cb5
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ mistral ALL = NOPASSWD: /usr/bin/chown -h validations\: /tmp/validations_identit
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/tar --xattrs --ignore-failed-read -C / -cf /var/tmp/undercloud-backup-*.tar *
mistral ALL = NOPASSWD: /usr/bin/chown mistral. /var/tmp/undercloud-backup-*/filesystem-*.tar
mistral ALL = NOPASSWD: /usr/bin/yum -y install octavia-amphora-image
validations ALL = NOPASSWD: ALL