Skip to content

Commit 05a6443

Browse files
committed
Cloudkitty.yml example file.
1 parent 0fa6619 commit 05a6443

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

examples/cloudkitty.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+

0 commit comments

Comments
 (0)