Skip to content
Snippets Groups Projects
Commit 195269d7 authored by wu.chunyang's avatar wu.chunyang Committed by Radosław Piliszek
Browse files

add octavia openrc file

we use octavia user to upload image currently, so it is better to
create a octavia openrc file for user

Implements: blueprint implement-automatic-deploy-of-octavia

Change-Id: Ib53d00fa4a6ee59b8a0b2245f83786a6af0cbf53
parent 894f4912
No related branches found
No related tags found
No related merge requests found
......@@ -10,3 +10,8 @@
owner: "{{ ansible_user_uid }}"
group: "{{ ansible_user_gid }}"
mode: 0600
- import_role:
name: octavia
tasks_from: openrc.yml
when: enable_octavia | bool
---
- name: Template out octavia-openrc.sh
become: true
template:
src: octavia-openrc.sh.j2
dest: "{{ node_config }}/octavia-openrc.sh"
owner: "{{ ansible_user_uid }}"
group: "{{ ansible_user_gid }}"
mode: 0600
# Clear any old environment that may conflict.
for key in $( set | awk '{FS="="} /^OS_/ {print $1}' ); do unset $key ; done
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME={{ octavia_service_auth_project }}
export OS_USERNAME=octavia
export OS_PASSWORD={{ octavia_keystone_password }}
export OS_AUTH_URL={{ keystone_admin_url }}/v3
export OS_INTERFACE=internal
export OS_ENDPOINT_TYPE=internalURL
......@@ -21,7 +21,7 @@ function check_config {
-not -regex .*key \
-not -regex ".*ca-certificates.*" \
-not -path /etc/kolla \
-not -name admin-openrc.sh \
-not -regex .*-openrc.sh \
-not -name globals.yml \
-not -name ceph-ansible.yml \
-not -name header \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment