Skip to content

Commit 996bd62

Browse files
committed
Fix Robot 1.3.2.1 .
1 parent a59afd1 commit 996bd62

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

example/Wordpress/forms.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
create_site:
2-
- parameter: instance_private_network
2+
- parameter: private_network
33
forms: ChoiceField
44
label: Network
55
# TODO We need to define general syntex on YAML for network
@@ -8,7 +8,7 @@ create_site:
88
attrs:
99
- class: form-control
1010
- required: required
11-
- parameter: instance_image
11+
- parameter: image
1212
forms: ChoiceField
1313
label: VM Image
1414
choices:
@@ -17,7 +17,7 @@ create_site:
1717
forms: Select
1818
attrs:
1919
- class: form-control
20-
- parameter: instance_flavor
20+
- parameter: flavor
2121
forms: ChoiceField
2222
label: Server Size
2323
choices:

example/Wordpress/site.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,40 @@ parameters:
55
type: number
66
instance_site_name:
77
type: string
8-
instance_account:
8+
account:
99
type: string
1010
instance_number:
1111
type: number
1212
constraints:
1313
- range: {min: 1, max: 10}
14-
instance_keypair:
14+
keypair:
1515
type: string
1616
constraints:
1717
- custom_constraint: nova.keypair
18-
instance_flavor:
18+
flavor:
1919
type: string
2020
description:
2121
- allowed_values:
2222
- 1core2GBmemory20GBdisk
2323
constraints:
2424
- custom_constraint: nova.flavor
25-
instance_image:
25+
image:
2626
type: string
2727
description:
2828
- allowed_values:
2929
- Wordpress
3030
constraints:
3131
- custom_constraint: glance.image
32-
instance_image_size:
32+
image_size:
3333
type: number
3434
constraints:
3535
- range:
3636
min: 10
37-
instance_public_network:
37+
public_network:
3838
type: string
3939
constraints:
4040
- custom_constraint: neutron.network
41-
instance_private_network:
41+
private_network:
4242
type: string
4343
constraints:
4444
- custom_constraint: neutron.network
@@ -63,7 +63,7 @@ parameters:
6363
alarm_period:
6464
type: number
6565
default: 60
66-
alarm_evaluation_periods:
66+
evaluation_periods:
6767
type: number
6868
default: 1
6969
scale_max_size:
@@ -103,13 +103,13 @@ resources:
103103
my_site_name: {get_param: instance_site_name}
104104
my_site_id: {get_param: instance_site_id}
105105
my_index: '%index%'
106-
my_account: {get_param: instance_account}
107-
my_keypair: {get_param: instance_keypair}
108-
my_flavor: {get_param: instance_flavor}
109-
my_image: {get_param: instance_image}
110-
my_image_size: {get_param: instance_image_size}
111-
my_public_network: {get_param: instance_public_network}
112-
my_private_network: {get_param: instance_private_network}
106+
my_account: {get_param: account}
107+
my_keypair: {get_param: keypair}
108+
my_flavor: {get_param: flavor}
109+
my_image: {get_param: image}
110+
my_image_size: {get_param: image_size}
111+
my_public_network: {get_param: public_network}
112+
my_private_network: {get_param: private_network}
113113
my_security_group: {get_resource: instance_security_group}
114114
my_availability_zone: {get_param: availability_zone}
115115
metadata: {"metering.stack": {get_param: 'OS::stack_id'}}
@@ -127,13 +127,13 @@ resources:
127127
#TODO need to generate different index
128128
# or change the way of salt registration
129129
my_index: 65536
130-
my_account: {get_param: instance_account}
131-
my_keypair: {get_param: instance_keypair}
132-
my_flavor: {get_param: instance_flavor}
133-
my_image: {get_param: instance_image}
134-
my_image_size: {get_param: instance_image_size}
135-
my_public_network: {get_param: instance_public_network}
136-
my_private_network: {get_param: instance_private_network}
130+
my_account: {get_param: account}
131+
my_keypair: {get_param: keypair}
132+
my_flavor: {get_param: flavor}
133+
my_image: {get_param: image}
134+
my_image_size: {get_param: image_size}
135+
my_public_network: {get_param: public_network}
136+
my_private_network: {get_param: private_network}
137137
my_security_group: {get_resource: instance_security_group}
138138
my_availability_zone: {get_param: availability_zone}
139139
metadata: {"metering.stack": {get_param: 'OS::stack_id'}}
@@ -161,7 +161,7 @@ resources:
161161
meter_name: {get_param: meter_name}
162162
statistic: {get_param: alarm_statistic}
163163
period: {get_param: alarm_period}
164-
evaluation_periods: {get_param: alarm_evaluation_periods}
164+
evaluation_periods: {get_param: evaluation_periods}
165165
threshold: {get_param: scaleup_threshold}
166166
alarm_actions:
167167
- {get_attr: [scaleup_policy, alarm_url]}
@@ -175,7 +175,7 @@ resources:
175175
meter_name: {get_param: meter_name}
176176
statistic: {get_param: alarm_statistic}
177177
period: {get_param: alarm_period}
178-
evaluation_periods: {get_param: alarm_evaluation_periods}
178+
evaluation_periods: {get_param: evaluation_periods}
179179
threshold: {get_param: scaledown_threshold}
180180
alarm_actions:
181181
- {get_attr: [scaledown_policy, alarm_url]}
12 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)