Merge "Add tempest to sudoers for tempest container image"
This commit is contained in:
commit
9b61889d74
|
@ -1,6 +1,14 @@
|
||||||
tcib_actions:
|
tcib_actions:
|
||||||
- run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }}
|
- run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }}
|
||||||
- run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf
|
- run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf
|
||||||
|
- run: >-
|
||||||
|
if [ -e /usr/share/openstack-tripleo-common-containers/container-images/tcib/base/os/tempest/tempest_sudoers ]; then
|
||||||
|
cp /usr/share/openstack-tripleo-common-containers/container-images/tcib/base/os/tempest/tempest_sudoers /etc/sudoers.d/tempest_sudoers;
|
||||||
|
else
|
||||||
|
sed -e 's/cloud-admin/tempest/' /usr/share/openstack-tripleo-common-containers/container-images/kolla/tripleoclient/tripleoclient_sudoers > /etc/sudoers.d/tempest_sudoers;
|
||||||
|
fi
|
||||||
|
- run: chmod 440 /etc/sudoers.d/tempest_sudoers
|
||||||
|
|
||||||
tcib_packages:
|
tcib_packages:
|
||||||
common:
|
common:
|
||||||
- iputils
|
- iputils
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
tempest ALL=(ALL) NOPASSWD: ALL
|
Loading…
Reference in New Issue