Skip to content

Commit 375183b

Browse files
committed
Added ratings role config and example. Changed requirements.
1 parent 05a6443 commit 375183b

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

ansible/openstack-ratings.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- name: Generate OpenStack software ratings
3+
hosts: controllers[0]
4+
tags:
5+
- ratings
6+
roles:
7+
- role: stackhpc.openstack.os_ratings
8+
os_ratings_hashmap_field_mappings: "{{ ratings_hashmap_field_mappings }}"
9+
os_ratings_hashmap_service_mappings: "{{ ratings_hashmap_service_mappings }}"
10+
os_ratings_venv: "{{ ratings_venv }}"
11+
os_ratings_upper_constraints_file: "{{ ratings_upper_constraints_file }}"
12+
os_ratings_environment: "{{ ratings_environment }}"

ansible/openstack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
- import_playbook: openstack-images.yml
77
- import_playbook: openstack-host-aggregates.yml
88
- import_playbook: openstack-container-clusters.yml
9+
- import_playbook: openstack-ratings.yml

etc/openstack-config/openstack-config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@
101101

102102
# Path to where a virtual environment directory will be created.
103103
#
104-
#os_ratings_venv: /path/to/venv/directory
104+
#ratings_venv: /path/to/venv/directory
105105

106106
# File path or URL containing Python upper constraints.
107107
#
108-
#os_ratings_upper_constraints_file: /path/to/upper_constraints_file
108+
#ratings_upper_constraints_file: /path/to/upper_constraints_file
109109

110110
# Environment variables for the OpenStack CLI. By default this is left empty.
111111
#
112-
#os_ratings_environment:
112+
#ratings_environment:
113113
# - name: ENV_VAR_NAME
114114
# value: ENV_VAR_VALUE
115115

@@ -118,7 +118,7 @@
118118
# Example of the mappings and their fields can be found below,
119119
# however for more information please refer to the README.md file.
120120
#
121-
#os_ratings_hashmap_field_mappings:
121+
#ratings_hashmap_field_mappings:
122122
# - service: SERVICE_NAME
123123
# name: FIELD_NAME
124124
# mappings:
@@ -130,7 +130,7 @@
130130
# Much like the field mappings above, the service mappings are a list of
131131
# dictionaries, however these are not associated with a field.
132132
#
133-
#os_ratings_hashmap_service_mappings:
133+
#ratings_hashmap_service_mappings:
134134
# - service: SERVICE_NAME
135135
# cost: MAPPING_COST
136136
# group: MAPPING_GROUP

examples/cloudkitty.yml renamed to examples/ratings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# a service mapping based on the stored image size in Glance.
88

99
- name: Ensure Cloudkitty ratings are registered
10-
hosts: controllers[0]
10+
hosts: localhost
1111
tasks:
1212
- import_role:
1313
name: stackhpc.openstack.os_ratings

requirements.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
collections:
33
- name: openstack.cloud
44
version: 2.1.0
5-
- name: stackhpc.openstack
6-
version: 0.1.1
5+
- name: https://github.com/stackhpc/ansible-collection-openstack.git
6+
version: cloudkitty
7+
# - name: stackhpc.openstack
8+
# version: 0.1.1

0 commit comments

Comments
 (0)