summaryrefslogtreecommitdiff
path: root/deployment_tasks.yaml
blob: 9f56f3000c01a53fd55b6be08b663dac7f70795d (plain)
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# Groups

# Manila - Share
- id: manila-share
  type: group
  version: 2.1.0
  role: [manila-share]
  tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, firewall, hosts, ntp-client, dns-client, cgroups, manila-hiera, deploy_start]
  required_for: [deploy_end]
  requires: [deploy_start, primary-controller]
  parameters:
    strategy:
      type: one_by_one

# Manila - Data

- id: manila-data
  type: group
  version: 2.1.0
  role: [manila-data]
  tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, firewall, hosts, ntp-client, dns-client, cgroups, manila-hiera, deploy_start]
  required_for: [deploy_end]
  requires: [deploy_start, primary-controller]
  parameters:
    strategy:
      type: one_by_one

# Tasks

- id: manila-generate_keys
  type: shell
  groups: [master]
  version: 2.1.0
  requires: [pre_deployment_start]
  required_for: [manila-copy_keys]
  parameters:
    cmd: sh /var/www/nailgun/plugins/fuel-plugin-manila-1.0/gen_keys.sh {CLUSTER_ID}
    timeout: 180

- id: manila-copy_keys
  type: copy_files
  version: 2.1.0
  role: ['/.*/']
  required_for: [pre_deployment_end]
  requires: [manila-generate_keys]
  cross-depends:
      - name: manila-generate_keys
        role: master
  parameters:
    files:
      - src: /var/lib/fuel/keys/{CLUSTER_ID}/manila/manila.pub
        dst: /var/lib/astute/manila/manila.pub
      - src: /var/lib/fuel/keys/{CLUSTER_ID}/manila/manila
        dst: /var/lib/astute/manila/manila
    permissions: '0600'
    dir_permissions: '0700'

- id: manila-gen_password
  type: shell
  groups: [master]
  version: 2.1.0
  requires: [pre_deployment_start]
  required_for: [manila-hiera]
  parameters:
    cmd: sh /var/www/nailgun/plugins/fuel-plugin-manila-1.0/gen_password.sh {CLUSTER_ID}
    timeout: 180

- id: manila-hiera
  type: copy_files
  version: 2.1.0
  role: ['/.*/']
  required_for: [manila-keystone]
  requires: [manila-gen_password]
  cross_depends:
    - name: manila-gen_password
      role: master
  parameters:
    files:
      - src: /etc/fuel/cluster/{CLUSTER_ID}/fuel-plugin-manila.yaml
        dst: /etc/hiera/plugins/fuel-plugin-manila.yaml
    permissions: '0600'
    dir_permissions: '0700'

- id: manila-keystone
  type: puppet
  groups: [primary-controller]
  version: 2.1.0
  requires: [manila-hiera, primary-openstack-controller]
  required_for: [manila-db]
  cross-depends:
    - name: keystone-db
  cross-depended-by:
    - name: deploy_end
  parameters:
    puppet_manifest: "puppet/manifests/keystone.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-db
  type: puppet
  groups: [primary-controller]
  version: 2.1.0
  required_for: [manila-main]
  requires: [primary-database, database, manila-hiera]
  condition:
    yaql_exp: >
      changedAny($.mysql, $.network_metadata.vips, $.get('database_vip'))
  cross-depends:
    - name: /^(primary-)?database$/
  cross-depended-by:
    - name: deploy_end
  parameters:
    puppet_manifest: "puppet/manifests/db.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-share-network-common-config
  type: puppet
  version: 2.1.0
  groups: [manila-share]
  required_for: [openstack-network-end]
  requires: [hosts, firewall]
  condition:
    yaql_exp: >
      changedAny($.get('openstack_network'), $.get('verbose'), $.debug,
      $.quantum_settings, $.neutron_advanced_configuration, $.rabbit,
      $.ceilometer, $.network_scheme, $.get('use_syslog'),
      $.get('use_stderr'), $.get('syslog_log_facility_neutron'),
      $.network_metadata.nodes.values().where(
        $.node_roles.any($.matches('controller'))).network_roles.select(
          $.get('mgmt/messaging')),
      $.get('amqp_hosts'), $.get('kombu_compression'))
  cross-depends:
    - name: /^openstack-network-common-config$/
      role: primary-controller
  parameters:
    puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/openstack-network/common-config.pp
    puppet_modules: /etc/puppet/modules
    timeout: 1800

- id: manila-share-network-plugins-l2
  type: puppet
  version: 2.1.0
  groups: [manila-share]
  required_for: [manila-install]
  requires: [manila-share-network-common-config]
  refresh_on: [neutron_agent_ovs]
  cross-depends:
    - name: primary-openstack-network-plugins-l2
      role: primary-controller
  parameters:
    puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/openstack-network/plugins/ml2.pp
    puppet_modules: /etc/puppet/modules
    timeout: 1800

- id: manila-install
  type: puppet
  groups: [primary-controller, controller, manila-share, manila-data]
  version: 2.1.0
  required_for: [manila-main]
  requires: [manila-db]
  cross-depends:
     - name: manila-db
  parameters:
    puppet_manifest: "puppet/manifests/install.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-image_upload
  type: puppet
  groups: [primary-controller]
  version: 2.1.0
  required_for: [manila-main]
  requires: [manila-install]
  parameters:
    puppet_manifest: "puppet/manifests/image_upload.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-haproxy
  type: puppet
  groups: [primary-controller, controller]
  version: 2.1.0
  requires: [manila-install]
  required_for: [manila-main]
  parameters:
    puppet_manifest: "puppet/manifests/haproxy.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-main
  type: puppet
  groups: [primary-controller, controller, manila-share, manila-data]
  version: 2.1.0
  cross-depends:
    - name: manila-db
  cross-depended-by:
    - name: deploy_end
  requires: [manila-install, manila-haproxy, manila-hiera]
  parameters:
    puppet_manifest: "puppet/manifests/site.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-db-sync
  type: puppet
  groups: [primary-controller]
  version: 2.1.0
  requires: [manila-main, manila-db]
  required_for: [manila-controller-start]
  parameters:
    puppet_manifest: "puppet/manifests/db-sync.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-controller-start
  type: puppet
  groups: [primary-controller, controller]
  version: 2.1.0
  requires: [manila-main]
  cross-depends:
    - name: manila-db-sync
  parameters:
    puppet_manifest: "puppet/manifests/start_controller.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-data-start
  type: puppet
  groups: [manila-data]
  version: 2.1.0
  requires: [manila-main]
  parameters:
    puppet_manifest: "puppet/manifests/start_data.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-share-start
  type: puppet
  groups: [manila-share]
  version: 2.1.0
  requires: [manila-main]
  parameters:
    puppet_manifest: "puppet/manifests/start_share.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600


- id: manila-ui
  type: puppet
  groups: [primary-controller, controller]
  version: 2.1.0
  requires: [manila-main]
  parameters:
    puppet_manifest: "puppet/manifests/ui.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600

- id: manila-meta
  type: puppet
  groups: [primary-controller]
  version: 2.1.0
  requires: [manila-controller-start]
  parameters:
    puppet_manifest: "puppet/manifests/meta.pp"
    puppet_modules: "puppet/modules:/etc/puppet/modules"
    timeout: 3600