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.

(cherry picked from commit 3b3bd2c6df)
Change-Id: I1f52b7fbaf6b20a064ab773c6c984db5846e33ec
resolves: rhbz#1594279
Closes-bug:1782341
This commit is contained in:
Carlos Camacho 2018-07-18 11:16:46 +00:00
parent fa22231bc7
commit 8bed71a792
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ 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
validations ALL = NOPASSWD: ALL