-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-config.yml
131 lines (112 loc) · 2.96 KB
/
sample-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
# Place list of actions to complete, they will be done in order
# Each action will need at least one valid section
# Sections in each action will be done in a random order
# Each section can have a list of items that will be created in order
- user:
name: 'arya'
password: 'joffrey_sucks'
email: None
- project:
name: 'winterfell'
description: 'winter is coming'
# Add user with roles
role: 'admin'
user: 'arya'
- flavor:
name: 'kraken'
ram: 4096
vcpus: 4
disk: 0
- nova_quota:
# Will find tenant by name
# Any valid arg can be used here
# All keys (besides tenant name) passed directly into the query
tenant_name: 'winterfell'
instances: 20
ram: 5120000
cores: 80
- cinder_quota:
# Will find tenant by name
# Any valid arg can be used here
# All keys (besides tenant name) passed directly into the query
tenant_name: 'winterfell'
volumes: 20
gigabytes: 1000000
- security_group:
name: 'ssh port'
description: Simply ssh port group
rules:
- from_port: 22
to_port: 22
ip_protocol: 'tcp'
cidr: '0.0.0.0/0'
- keypair:
name: 'my-public-key'
file: '/home/user/.ssh/id_rsa.pub'
os_username: 'arya'
os_password: 'joffrey_sucks'
os_tenant_name: 'winterfell'
- network :
name: 'the-north'
tenant_name: 'winterfell'
shared: True
- subnet:
name: 'moat cailin'
network: 'the-north'
tenant_name: 'winterfell'
cidr: '192.168.0.0/24'
ip_version: '4'
- router:
name: 'the kingsroad'
tenant_name: 'winterfell'
external_network: 'external'
internal_subnet: 'moat cailin'
- source_file:
tenant_name: 'winterfell'
file: '/home/user/arya_openrc.sh'
user: 'arya'
- image:
# Whether 'file' (uploaded from local file) or 'copy_from' (copied from URL) can be set
name: 'test-image'
copy_from: 'http://www.change-me.org/debian-7.3.img'
# file: '/home/user/images/debian-7.3.img'
container_format: 'bare'
disk_format: 'qcow2'
is_public: False
# Wait until image is active
wait: True
timeout: 1200
- volume:
name: 'weirwood'
size: 20
wait: True
timeout: 3600
- server:
name: 'ice'
flavor_name: 'kraken'
image_name: 'test-image'
wait: True
timeout: 1200
nics:
- network_name: 'the-north'
# create volume from image
- volume:
name: 'weirdwood2'
size: 20
wait: False
image_name: 'test-image'
# create server from bootable volume
- server:
name: 'ice'
flavor_name: 'kraken'
image_name: 'test-image'
wait: True
timeout: 1200
nics:
- network_name: 'the-north'
volumes:
- volume_name: 'weirdwood2'
device_name: 'vda'
# whether to delete the volume when you delete the instance
terminate_on_delete: False