Skip to content

Commit

Permalink
Create role to export vexxhost openrc to shell environment to avoid p…
Browse files Browse the repository at this point in the history
…otential security risks
  • Loading branch information
zhuli committed Apr 3, 2018
1 parent 75364f9 commit fdd4ad9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions roles/export-vexxhost-openrc/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- name: Set fact for vexxhost openrc
set_fact:
vexxhost_openrc:
OS_AUTH_TYPE: '{{ vexxhost_credentials.auth_type }}'
OS_IDENTITY_API_VERSION: '{{ vexxhost_credentials.identity_api_version }}'
OS_VOLUME_API_VERSION: '{{ vexxhost_credentials.volume_api_version }}'
OS_INTERFACE: '{{ vexxhost_credentials.interface }}'
OS_AUTH_URL: '{{ vexxhost_credentials.auth_url }}'
OS_PROJECT_ID: '{{ vexxhost_credentials.project_id }}'
OS_PROJECT_NAME: '{{ vexxhost_credentials.project_name }}'
OS_USER_DOMAIN_NAME: '{{ vexxhost_credentials.user_domain_name }}'
OS_PROJECT_DOMAIN_ID: '{{ vexxhost_credentials.project_domain_id }}'
OS_USERNAME: '{{ vexxhost_credentials.username }}'
OS_PASSWORD: '{{ vexxhost_credentials.password }}'
OS_REGION_NAME: '{{ vexxhost_credentials.region_name }}'

0 comments on commit fdd4ad9

Please sign in to comment.