forked from UshF/pumphouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-config.yaml
161 lines (157 loc) · 4.92 KB
/
api-config.yaml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
DEBUG: false
SERVER_NAME: 127.0.0.1:5000
BIND_HOST: 127.0.0.1:5000
CLOUDS_RESET: true
LOGGING:
formatters:
default: &default_formatter
format: '%(asctime)s %(levelname)-8s %(name)-15s %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
color:
<<: *default_formatter
(): pumphouse.utils.ColorFormatter
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: color
file:
class: logging.handlers.TimedRotatingFileHandler
level: DEBUG
formatter: default
filename: pumphouse.log
when: D
interval: 1
backupCount: 10
loggers:
iso8601:
level: INFO
taskflow:
level: INFO
root:
level: DEBUG
handlers:
- console
- file
PARAMETERS:
volume_tasks_timeout: 300
PLUGINS:
provision_server: image
cmds:
ping: &ping
cmd: "ping %"
ssh: &ssh
cmd: "echo y | nc % 22"
customerMonitoring: &customerMonitoring
cmd: "curl '$MONITORING_URL/status.cgi?=%'"
simpleWebCheck: &simpleWebCheck
cmd: "curl http://%/$REQUEST_URI"
CLOUDS:
source:
environment: source-env
endpoint:
auth_url: http://127.0.0.1:5000/v2.0
username: admin
password: nomoresecrete
tenant_name: admin
identity:
connection: mysql+mysqlconnector://root:[email protected]/keystone
populate:
num_tenants: 4
num_servers: 3
num_volumes: 2
volume_size: 1
urls:
horizon: http://10.0.0.1/
workloads:
flavors:
- &small
name: pumphouse-flavor-0001-small
ram: 1024
vcpus: 1
disk: 10
- &medium
name: pumphouse-flavor-0001-medium
ram: 4096
vcpus: 2
disk: 40
- &large
name: pumphouse-flavor-0001-large
ram: 8192
vcpus: 4
disk: 80
images:
- &image
name: pumphouse-test-image-0001
url: http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
tenants:
- name: pumphouse-test-0001
description: "pumphouse test tenant 0001"
username: pumphouse-test-user-0001
volumes:
- &volume-1
display_name: pumphouse-volume-1
size: 1
- &volume-2
display_name: pumphouse-volume-2
size: 1
- &volume-3
display_name: pumphouse-volume-3
size: 1
servers:
- name: pumphouse-test-instance-0001
flavor:
<<: *small
image:
<<: *image
volumes:
- <<: *volume-1
- <<: *volume-2
pre-actions: &health_checks
-
- <<: *ping
input:
- public
- private
- <<: *ssh
input:
- public
- private
- <<: *customerMonitoring
env:
MONITORING_URL: "http://monitoring.customer.int/cgi-bin"
- <<: *simpleWebCheck
env:
REQUEST_URI: "/index2.html"
post-actions:
<<: *health_checks
- name: pumphouse-test-instance-0002
flavor:
<<: *medium
image:
<<: *image
volumes:
- <<: *volume-3
- name: pumphouse-test-instance-0003
flavor:
<<: *large
image:
<<: *image
destination:
environment: source-env
endpoint:
auth_url: http://127.0.0.1:5000/v2.0
username: admin
password: secrete
tenant_name: admin
identity:
connection: mysql+mysqlconnector://keystone:[email protected]/keystone
urls:
horizon: http://horizon.endpoint.com/
mos: http://127.0.0.1:8000/
fuel:
endpoint:
host: 172.18.167.155
port: 8000
username: admin
password: admin