Add cloud-admin user to tripleoclient container
osp-director-operator use tripleoclient pod to render the ansible playbooks in an ephemeral heat stack. The cloud-admin user is also used as default deployment user to run the ansible playbooks to deploy the overcloud. This also adds osc-placement to the container image which allows to query placment direct using osc. Change-Id: I38fe6419a6e18693adad79083a589f3a417de02f
This commit is contained in:
parent
4a395662f5
commit
24c311aab0
@ -37,6 +37,7 @@ _SUPPORTED_USERS['aodh']='aodh 42402 42402 /var/lib/aodh kolla'
|
||||
_SUPPORTED_USERS['barbican']='barbican 42403 42403 /var/lib/barbican kolla,nfast'
|
||||
_SUPPORTED_USERS['ceilometer']='ceilometer 42405 42405 /var/lib/ceilometer kolla'
|
||||
_SUPPORTED_USERS['cinder']='cinder 42407 42407 /var/lib/cinder kolla'
|
||||
_SUPPORTED_USERS['cloud-admin']='cloud-admin 42401 42401 /home/cloud-admin'
|
||||
_SUPPORTED_USERS['collectd']='collectd 42409 42409 /var/lib/collectd kolla'
|
||||
_SUPPORTED_USERS['designate']='designate 42411 42411 /var/lib/designate kolla'
|
||||
_SUPPORTED_USERS['etcd']='etcd 42413 42413 /var/lib/etcd kolla'
|
||||
|
@ -0,0 +1 @@
|
||||
cloud-admin ALL=(ALL) NOPASSWD: ALL
|
@ -1,7 +1,11 @@
|
||||
tcib_actions:
|
||||
- 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: openstack complete | tee /etc/bash_completion.d/osc.bash_completion > /dev/null
|
||||
- copy: /usr/share/tripleo-common/container-images/kolla/tripleoclient/create_super_user.sh /usr/local/bin/create_super_user.sh
|
||||
- copy: /usr/share/tripleo-common/container-images/kolla/tripleoclient/tripleoclient_sudoers /etc/sudoers.d/tripleoclient_sudoers
|
||||
- run: chmod 750 /usr/local/bin/create_super_user.sh
|
||||
- run: chmod 440 /etc/sudoers.d/tripleoclient_sudoers
|
||||
tcib_gather_files: '{{ lookup(''fileglob'', ''/usr/share/tripleo-common/container-images/kolla/tripleoclient/*'', wantlist=True) }}'
|
||||
tcib_packages:
|
||||
common:
|
||||
@ -14,3 +18,6 @@ tcib_packages:
|
||||
- python3-openstackclient
|
||||
- python3-tripleoclient
|
||||
- xfsprogs
|
||||
- python3-osc-placement
|
||||
- bash-completion
|
||||
tcib_user: cloud-admin
|
||||
|
Loading…
Reference in New Issue
Block a user