Skip to content

Commit 5f39695

Browse files
committed
Tidy up group_vars
Tidy up.
1 parent 97f6f05 commit 5f39695

File tree

5 files changed

+26
-40
lines changed

5 files changed

+26
-40
lines changed

ansible/group_vars/all/openstack

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,41 +49,27 @@ openstack_image_elements: []
4949
# List of diskimage-builder element git repos to pull
5050
openstack_image_git_elements: []
5151
###############################################################################
52-
# Configuration variables for a Cloudkitty ratings service deployment.
52+
# Configuration variables for a CloudKitty ratings service deployment.
5353

5454
# File path or URL containing Python upper constraints.
5555
#
56-
ratings_upper_constraints_file: []
56+
openstack_ratings_upper_constraints_file: []
5757

5858
# Environment variables for the OpenStack CLI. By default this is left empty.
5959
#
60-
ratings_environment: []
61-
# - name: ENV_VAR_NAME
62-
# value: ENV_VAR_VALUE
60+
openstack_ratings_environment: []
6361

6462
# A list where each item is a dictionary mapping the associated fields,
6563
# with the 'mappings' field also being a list of dictionaries.
6664
# Example of the mappings and their fields can be found below,
6765
# however for more information please refer to the README.md file.
6866
#
69-
ratings_hashmap_field_mappings: []
70-
# - service: SERVICE_NAME
71-
# name: FIELD_NAME
72-
# mappings:
73-
# - value: MAPPING_VALUE
74-
# cost: MAPPING_COST
75-
# group: MAPPING_GROUP
76-
# type: MAPPING_TYPE
67+
openstack_ratings_hashmap_field_mappings: []
7768

7869
# Much like the field mappings above, the service mappings are a list of
7970
# dictionaries, however these are not associated with a field.
8071
#
81-
ratings_hashmap_service_mappings: []
82-
# - service: SERVICE_NAME
83-
# cost: MAPPING_COST
84-
# group: MAPPING_GROUP
85-
# type: MAPPING_TYPE
86-
72+
openstack_ratings_hashmap_service_mappings: []
8773

8874
###############################################################################
8975
# Configuration of nova host aggregates for OpenStack.

ansible/openstack-ratings.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
- ratings
66
roles:
77
- 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 }}"
8+
os_ratings_hashmap_field_mappings: "{{ openstack_ratings_hashmap_field_mappings }}"
9+
os_ratings_hashmap_service_mappings: "{{ openstack_ratings_hashmap_service_mappings }}"
1010
os_ratings_venv: "{{ openstack_venv }}"
11-
os_ratings_upper_constraints_file: "{{ ratings_upper_constraints_file }}"
12-
os_ratings_environment: "{{ ratings_environment }}"
11+
os_ratings_upper_constraints_file: "{{ openstack_ratings_upper_constraints_file }}"
12+
os_ratings_environment: "{{ openstack_ratings_environment }}"

ansible/openstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +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
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
@@ -97,7 +97,7 @@
9797
# magnum_cluster_templates_public:
9898

9999
###############################################################################
100-
# Configuration variables for a Cloudkitty ratings service deployment.
100+
# Configuration variables for a CloudKitty ratings service deployment.
101101

102102
# # ### ####### ##### IN ORDER TO SUCCESSFULLY DEPLOY CLOUDKITTY
103103
# # # # # # # 'cloudkitty.conf' & 'metrics.yml' MUST BE
@@ -107,11 +107,11 @@
107107

108108
# File path or URL containing Python upper constraints.
109109
####### THIS IS NOT NECCESSARY TO CONFIGURE ###########
110-
#ratings_upper_constraints_file: /path/to/upper_constraints_file
110+
#openstack_ratings_upper_constraints_file: /path/to/upper_constraints_file
111111

112112
# Environment variables for the OpenStack CLI. By default this is left empty.
113113
################### THIS IS NOT NECCESSARY TO CONFIGURE #####################
114-
#ratings_environment:
114+
#openstack_ratings_environment:
115115
# - name: ENV_VAR_NAME
116116
# value: ENV_VAR_VALUE
117117

@@ -120,7 +120,7 @@
120120
# Example of the mappings and their fields can be found below,
121121
# however for more information please refer to the README.md file.
122122
#
123-
#ratings_hashmap_field_mappings:
123+
#openstack_ratings_hashmap_field_mappings:
124124
# - service: SERVICE_NAME
125125
# name: FIELD_NAME
126126
# mappings:
@@ -132,7 +132,7 @@
132132
# Much like the field mappings above, the service mappings are a list of
133133
# dictionaries, however these are not associated with a field.
134134
#
135-
#ratings_hashmap_service_mappings:
135+
#openstack_ratings_hashmap_service_mappings:
136136
# - service: SERVICE_NAME
137137
# cost: MAPPING_COST
138138
# group: MAPPING_GROUP

examples/ratings.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
---
22
###############################################################################
3-
# Configuration of cloudkitty for openstack.
3+
# Configuration of CloudKitty for openstack.
44

5-
# Example configuration for registering Cloudkitty fields.
5+
# Example configuration for registering CloudKitty fields.
66
# Included is mapping for various different compute flavors &
77
# a service mapping based on the stored image size in Glance.
88

9-
ratings_hashmap_field_mappings:
9+
openstack_ratings_hashmap_field_mappings:
1010
- service: instance
1111
name: flavor_id
1212
mappings:
13-
- value: '1' #tiny
13+
- value: '1' #tiny compute flavour with an OpenStack flavor ID of 1
1414
cost: 1.0
1515
group: instance_uptime_flavor_id
1616
type: flat
17-
- value: '2' #small
17+
- value: '2' #small compute flavour with an OpenStack flavor ID of 2
1818
cost: 2.0
1919
group: instance_uptime_flavor_id
2020
type: flat
21-
- value: '3' #medium
21+
- value: '3' #medium compute flavour with an OpenStack flavor ID of 3
2222
cost: 3.0
2323
group: instance_uptime_flavor_id
2424
type: flat
25-
- value: '4' #large
25+
- value: '4' #large compute flavour with an OpenStack flavor ID of 4
2626
cost: 4.0
2727
group: instance_uptime_flavor_id
2828
type: flat
29-
- value: '5' #xlarge
29+
- value: '5' #xlarge compute flavour with an OpenStack flavor ID of 5
3030
cost: 5.0
3131
group: instance_uptime_flavor_id
3232
type: flat
33-
- value: '6' #tiny 2
33+
- value: '6' #tiny 2 compute flavour with an OpenStack flavor ID of 6
3434
cost: 2.0
3535
group: instance_uptime_flavor_id
3636
type: flat
3737

38-
ratings_hashmap_service_mappings:
38+
openstack_ratings_hashmap_service_mappings:
3939
- service: image.size
4040
cost: 0.1
4141
group: image_size
@@ -79,4 +79,4 @@ ratings_hashmap_service_mappings:
7979
# unit: GiB
8080
# groupby:
8181
# - resource_id
82-
# - project_id
82+
# - project_id

0 commit comments

Comments
 (0)