Merge "Create tripleo-admin user on the undercloud"

This commit is contained in:
Zuul 2019-02-05 17:18:41 +00:00 committed by Gerrit Code Review
commit 3b2c7f9960
2 changed files with 19 additions and 0 deletions

View File

@ -70,6 +70,10 @@ parameters:
default: 5672
description: The network port for messaging backend
type: number
TripleoAdminUser:
default: 'tripleo-admin'
description: Name of user which manages the hosts
type: string
conditions:
undercloud_config_file_path_unset: {equals : [{get_param: UndercloudConfigFilePath}, '']}
@ -181,6 +185,11 @@ outputs:
- - {get_param: UndercloudConfigFilePath}
- '/var/lib/mistral/undercloud.conf'
- 'ro'
- - str_replace:
template:
'/home/tripleo-admin:/home/tripleo-admin'
params:
tripleo-admin: {get_param: TripleoAdminUser}
- if:
- docker_enabled
- - /var/run/docker.sock:/var/run/docker.sock:rw
@ -190,6 +199,11 @@ outputs:
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:
- import_role:
name: tripleo-create-admin
tasks_from: create_user.yml
vars:
tripleo_admin_user: {get_param: TripleoAdminUser}
- name: create persistent directories
file:
path: "{{ item.path }}"

View File

@ -0,0 +1,5 @@
---
features:
- |
When deploying mistral-executor, create a tripleo-admin user on the
undercloud for running external deploy tasks with ansible.