File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # ##############################################################################
3
+ # Configuration of cloudkitty for openstack.
4
+
5
+ # Example playbook for configuring and registering Cloudkitty fields.
6
+ # Included is registration for two different Nova flavor mappings and
7
+ # a service mapping based on the stored image size in Glance.
8
+
9
+ - name : Ensure Cloudkitty ratings are registered
10
+ hosts : controllers[0]
11
+ tasks :
12
+ - import_role :
13
+ name : stackhpc.openstack.os_ratings
14
+ vars :
15
+ os_ratings_venv : " ~/os-ratings-venv"
16
+ os_ratings_environment :
17
+ OS_AUTH_URL : " {{ lookup('env', 'OS_AUTH_URL') }}"
18
+ os_ratings_hashmap_field_mappings :
19
+ - service : instance
20
+ name : flavor_id
21
+ mappings :
22
+ - value : small
23
+ cost : 1.0
24
+ group : instance_uptime_flavor_id
25
+ type : flat
26
+ - value : large
27
+ cost : 2.0
28
+ group : instance_uptime_flavor_id
29
+ type : flat
30
+ os_ratings_hashmap_service_mappings :
31
+ - service : image.size
32
+ cost : 0.1
33
+ group : volume_ceph
34
+ type : flat
35
+
You can’t perform that action at this time.
0 commit comments