Skip to content

Commit

Permalink
Merge pull request #20 from stackhpc/convert-ans-coll
Browse files Browse the repository at this point in the history
Convert to use ansible-collection-openstack
  • Loading branch information
markgoddard authored Mar 4, 2024
2 parents 8429a57 + 51c5608 commit fbe04a0
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 22 deletions.
7 changes: 1 addition & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,12 @@ packages. For example:
$ virtualenv venv
$ source venv/bin/activate
$ pip install -U pip
$ python -m pip install --upgrade pip
$ pip install -r requirements.txt
Install Ansible role and collection dependencies from Ansible Galaxy:

.. code-block::
$ ansible-galaxy role install \
-p ansible/roles \
-r requirements.yml
$ ansible-galaxy collection install \
-p ansible/collections \
-r requirements.yml
Expand Down
2 changes: 1 addition & 1 deletion ansible/openstack-container-clusters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
tags:
- container-clusters-templates
roles:
- role: stackhpc.os-container-clusters
- role: stackhpc.openstack.os_container_clusters
os_container_clusters_venv: "{{ openstack_venv }}"
os_container_clusters_auth_type: "{{ openstack_auth_type }}"
os_container_clusters_auth: "{{ openstack_auth }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/openstack-flavors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
tags:
- flavors
roles:
- role: stackhpc.os-flavors
- role: stackhpc.openstack.os_flavors
os_flavors_venv: "{{ openstack_venv }}"
os_flavors_auth_type: "{{ openstack_auth_type }}"
os_flavors_auth: "{{ openstack_auth }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/openstack-host-aggregates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
tags:
- host_aggregates
roles:
- role: stackhpc.os_host_aggregates
- role: stackhpc.openstack.os_host_aggregates
os_host_aggregates_venv: "{{ openstack_venv }}"
os_host_aggregates_auth_type: "{{ openstack_auth_type }}"
os_host_aggregates_auth: "{{ openstack_auth }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/openstack-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
tags:
- images
roles:
- role: stackhpc.os-images
- role: stackhpc.openstack.os_images
os_images_venv: "{{ openstack_venv }}"
os_images_cache: "{{ ansible_env.PWD }}/openstack-config-image-cache"
os_images_auth_type: "{{ openstack_auth_type }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/openstack-networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
tags:
- networks
roles:
- role: stackhpc.os-networks
- role: stackhpc.openstack.os_networks
os_networks_venv: "{{ openstack_venv }}"
os_networks_auth_type: "{{ openstack_auth_type }}"
os_networks_auth: "{{ openstack_auth }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/openstack-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
tags:
- project
roles:
- role: stackhpc.os-projects
- role: stackhpc.openstack.os_projects
os_projects_venv: "{{ openstack_venv }}"
os_projects_auth_type: "{{ openstack_auth_type }}"
os_projects_admin_auth: "{{ openstack_auth }}"
Expand Down
Empty file removed ansible/roles/.keep
Empty file.
1 change: 0 additions & 1 deletion examples/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ openstack_unlimited_quotas:
backup_gigabytes: -1
backups: -1
cores: -1
fixed_ips: -1
floatingip: -1
gigabytes: -1
injected_file_size: -1
Expand Down
12 changes: 3 additions & 9 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
---
roles:
- name: stackhpc.os-flavors
- name: stackhpc.os-images
- name: stackhpc.os-networks
- name: stackhpc.os-projects
- name: stackhpc.os_host_aggregates
- name: stackhpc.os-container-clusters

collections:
- name: openstack.cloud
version: '<2'
version: 2.1.0
- name: stackhpc.openstack
version: 0.1.0

0 comments on commit fbe04a0

Please sign in to comment.