okozachenko | 0c48e9c | 2022-05-19 01:57:57 +1000 | [diff] [blame] | 1 | # Copyright (c) 2022 VEXXHOST, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | - name: Generate OpenStack-Helm endpoints |
| 16 | ansible.builtin.include_role: |
| 17 | name: openstack_helm_endpoints |
| 18 | vars: |
| 19 | openstack_helm_endpoints_list: ["identity"] |
| 20 | |
| 21 | - name: Install openstacksdk |
| 22 | ansible.builtin.pip: |
Mohammed Naser | d73d869 | 2022-05-20 16:52:59 -0400 | [diff] [blame] | 23 | name: openstacksdk==0.61.0 |
okozachenko | 0c48e9c | 2022-05-19 01:57:57 +1000 | [diff] [blame] | 24 | |
| 25 | - name: Create openstack config directory |
| 26 | become: true |
| 27 | ansible.builtin.file: |
| 28 | path: /etc/openstack |
| 29 | state: directory |
| 30 | owner: root |
| 31 | group: root |
Mohammed Naser | c8e1a45 | 2022-08-11 16:16:13 -0400 | [diff] [blame] | 32 | mode: "0600" |
okozachenko | 0c48e9c | 2022-05-19 01:57:57 +1000 | [diff] [blame] | 33 | |
| 34 | - name: Generate cloud config file |
| 35 | become: true |
| 36 | ansible.builtin.template: |
| 37 | src: clouds.yaml.j2 |
| 38 | dest: /etc/openstack/clouds.yaml |
| 39 | owner: root |
| 40 | group: root |
| 41 | mode: '0600' |