Skip to content

Commit 71c5913

Browse files
committed
Pointing to the now merged CloudKitty Ansible role.
1 parent 5f39695 commit 71c5913

File tree

5 files changed

+24
-78
lines changed

5 files changed

+24
-78
lines changed

ansible/group_vars/all/openstack

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,23 @@ openstack_image_elements: []
4848

4949
# List of diskimage-builder element git repos to pull
5050
openstack_image_git_elements: []
51+
5152
###############################################################################
52-
# Configuration variables for a CloudKitty ratings service deployment.
53+
# Configuration of nova host aggregates for OpenStack.
5354

54-
# File path or URL containing Python upper constraints.
55-
#
56-
openstack_ratings_upper_constraints_file: []
55+
# List of host aggregates in the openstack project.
56+
# Format is as required by the stackhpc.os_host_aggregates role.
57+
openstack_host_aggregates: []
5758

58-
# Environment variables for the OpenStack CLI. By default this is left empty.
59-
#
60-
openstack_ratings_environment: []
59+
###############################################################################
60+
# Configuration of container clusters templates for OpenStack.
61+
62+
# List of clusters templates in the openstack project. Format is as required by the
63+
# stackhpc.os-container-clusters role.
64+
openstack_container_clusters_templates: []
65+
66+
###############################################################################
67+
# Configuration variables for a CloudKitty ratings service deployment.
6168

6269
# A list where each item is a dictionary mapping the associated fields,
6370
# with the 'mappings' field also being a list of dictionaries.
@@ -70,17 +77,3 @@ openstack_ratings_hashmap_field_mappings: []
7077
# dictionaries, however these are not associated with a field.
7178
#
7279
openstack_ratings_hashmap_service_mappings: []
73-
74-
###############################################################################
75-
# Configuration of nova host aggregates for OpenStack.
76-
77-
# List of host aggregates in the openstack project.
78-
# Format is as required by the stackhpc.os_host_aggregates role.
79-
openstack_host_aggregates: []
80-
81-
###############################################################################
82-
# Configuration of container clusters templates for OpenStack.
83-
84-
# List of clusters templates in the openstack project. Format is as required by the
85-
# stackhpc.os-container-clusters role.
86-
openstack_container_clusters_templates: []

ansible/openstack-ratings.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@
88
os_ratings_hashmap_field_mappings: "{{ openstack_ratings_hashmap_field_mappings }}"
99
os_ratings_hashmap_service_mappings: "{{ openstack_ratings_hashmap_service_mappings }}"
1010
os_ratings_venv: "{{ openstack_venv }}"
11-
os_ratings_upper_constraints_file: "{{ openstack_ratings_upper_constraints_file }}"
12-
os_ratings_environment: "{{ openstack_ratings_environment }}"

etc/openstack-config/openstack-config.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,38 +105,29 @@
105105
# # # # # # # MORE INFO CAN BE FOUND IN THE README.md
106106
# # ### # ##### 'stackhpc-kayobe-config' DOCS.
107107

108-
# File path or URL containing Python upper constraints.
109-
####### THIS IS NOT NECCESSARY TO CONFIGURE ###########
110-
#openstack_ratings_upper_constraints_file: /path/to/upper_constraints_file
111-
112-
# Environment variables for the OpenStack CLI. By default this is left empty.
113-
################### THIS IS NOT NECCESSARY TO CONFIGURE #####################
114-
#openstack_ratings_environment:
115-
# - name: ENV_VAR_NAME
116-
# value: ENV_VAR_VALUE
117108

118109
# A list where each item is a dictionary mapping the associated fields,
119-
# with the 'mappings' field also being a list of dictionaries.
120-
# Example of the mappings and their fields can be found below,
121-
# however for more information please refer to the README.md file.
110+
# with the 'mappings' field also being a list of dictionaries. Example
111+
# of the mappings and their fields can be found below, however for more
112+
# information please refer to the stackhpc.openstack.os_ratings role docs.
122113
#
123114
#openstack_ratings_hashmap_field_mappings:
124115
# - service: SERVICE_NAME
125-
# name: FIELD_NAME
126-
# mappings:
116+
# name: FIELD_NAME
117+
# mappings:
127118
# - value: MAPPING_VALUE
128119
# cost: MAPPING_COST
129-
# group: MAPPING_GROUP
130120
# type: MAPPING_TYPE
121+
# group: MAPPING_GROUP <---THIS IS OPTIONAL---
131122

132123
# Much like the field mappings above, the service mappings are a list of
133124
# dictionaries, however these are not associated with a field.
134125
#
135126
#openstack_ratings_hashmap_service_mappings:
136127
# - service: SERVICE_NAME
137128
# cost: MAPPING_COST
138-
# group: MAPPING_GROUP
139129
# type: MAPPING_TYPE
130+
# group: MAPPING_GROUP <---THIS IS OPTIONAL---
140131

141132
###############################################################################
142133
# Dummy variable to allow Ansible to accept this file.

examples/ratings.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -43,40 +43,7 @@ openstack_ratings_hashmap_service_mappings:
4343

4444
# # ### ####### ##### THIS CONFIGURATION FILE ONLY WORKS IF
4545
# # # # # # # 'cloudkitty.conf' & 'metrics.yml' ARE
46-
# # # # # # ### CONFIGURED AS SHOWN BELOW. MORE INFO CAN
46+
# # # # # # ### CONFIGURED CORRECTLY. MORE INFO CAN
4747
# # # # # # # BE FOUND IN THE 'stackhpc-kayobe-config'
4848
# # ### # ##### DOCS.
4949

50-
51-
# CORRESPONDING cloudkitty.conf
52-
#
53-
# [collect]
54-
# period = 120
55-
# scope_key = tenant_id
56-
57-
# CORRESPONDING metrics.yml
58-
#
59-
# metrics:
60-
# openstack_nova_server_status:
61-
# alt_name: instance
62-
# unit: instance
63-
# mutate: MAP
64-
# mutate_map:
65-
# 0.0: 1.0 # ACTIVE
66-
# 11.0: 1.0 # SHUTOFF
67-
# 12.0: 1.0 # SUSPENDED
68-
# 16.0: 1.0 # PAUSED
69-
# groupby:
70-
# - user_id
71-
# - tenant_id
72-
# - uuid
73-
# metadata:
74-
# - flavor_id
75-
# - name
76-
# openstack_glance_image_bytes:
77-
# alt_name: image.size
78-
# factor: 1/1073741824 # image.size measurements are in B
79-
# unit: GiB
80-
# groupby:
81-
# - resource_id
82-
# - project_id

requirements.yml

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

0 commit comments

Comments
 (0)