From 7e658b7fa0dc63c6847051fd843612c4112ed914 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Fri, 29 Apr 2022 13:43:11 +0200 Subject: [PATCH] Set OS_CLOUD=devstack-admin in /etc/profile.d Change-Id: I7ad6886e24850b5a00a7936997cc9994aa773df7 --- roles/devstack-tobiko-deploy/files/stack.sh | 1 + roles/devstack-tobiko-deploy/tasks/main.yaml | 1 + roles/devstack-tobiko-deploy/tasks/setup-profile.yaml | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 roles/devstack-tobiko-deploy/files/stack.sh create mode 100644 roles/devstack-tobiko-deploy/tasks/setup-profile.yaml diff --git a/roles/devstack-tobiko-deploy/files/stack.sh b/roles/devstack-tobiko-deploy/files/stack.sh new file mode 100644 index 0000000..ffed02f --- /dev/null +++ b/roles/devstack-tobiko-deploy/files/stack.sh @@ -0,0 +1 @@ +export OS_CLOUD=devstack-admin diff --git a/roles/devstack-tobiko-deploy/tasks/main.yaml b/roles/devstack-tobiko-deploy/tasks/main.yaml index 4a67716..74f9ea3 100644 --- a/roles/devstack-tobiko-deploy/tasks/main.yaml +++ b/roles/devstack-tobiko-deploy/tasks/main.yaml @@ -7,3 +7,4 @@ - include_tasks: deploy-projects.yaml - include_tasks: deploy-local-conf.yaml - include_tasks: run-stack.yaml +- include_tasks: setup-profile.yaml diff --git a/roles/devstack-tobiko-deploy/tasks/setup-profile.yaml b/roles/devstack-tobiko-deploy/tasks/setup-profile.yaml new file mode 100644 index 0000000..2799190 --- /dev/null +++ b/roles/devstack-tobiko-deploy/tasks/setup-profile.yaml @@ -0,0 +1,5 @@ +- name: copy stack.sh file to /etc/profile.d/ + become: true + copy: + src: stack.sh + dest: /etc/profile.d/