Fuel plugin which enables OpenStack Manila with MOS controllers deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

deployment_tasks.yaml 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. # Groups
  2. # Manila - Share
  3. - id: manila-share
  4. type: group
  5. version: 2.1.0
  6. role: [manila-share]
  7. tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, firewall, hosts, ntp-client, dns-client, cgroups, manila-hiera, deploy_start]
  8. required_for: [deploy_end]
  9. requires: [deploy_start, primary-controller]
  10. parameters:
  11. strategy:
  12. type: one_by_one
  13. # Manila - Data
  14. - id: manila-data
  15. type: group
  16. version: 2.1.0
  17. role: [manila-data]
  18. tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, firewall, hosts, ntp-client, dns-client, cgroups, manila-hiera, deploy_start]
  19. required_for: [deploy_end]
  20. requires: [deploy_start, primary-controller]
  21. parameters:
  22. strategy:
  23. type: one_by_one
  24. # Tasks
  25. - id: manila-generate_keys
  26. type: shell
  27. groups: [master]
  28. version: 2.1.0
  29. requires: [pre_deployment_start]
  30. required_for: [manila-copy_keys]
  31. parameters:
  32. cmd: sh /var/www/nailgun/plugins/fuel-plugin-manila-1.0/gen_keys.sh {CLUSTER_ID}
  33. timeout: 180
  34. - id: manila-copy_keys
  35. type: copy_files
  36. version: 2.1.0
  37. role: ['/.*/']
  38. required_for: [pre_deployment_end]
  39. requires: [manila-generate_keys]
  40. cross-depends:
  41. - name: manila-generate_keys
  42. role: master
  43. parameters:
  44. files:
  45. - src: /var/lib/fuel/keys/{CLUSTER_ID}/manila/manila.pub
  46. dst: /var/lib/astute/manila/manila.pub
  47. - src: /var/lib/fuel/keys/{CLUSTER_ID}/manila/manila
  48. dst: /var/lib/astute/manila/manila
  49. permissions: '0600'
  50. dir_permissions: '0700'
  51. - id: manila-gen_password
  52. type: shell
  53. groups: [master]
  54. version: 2.1.0
  55. requires: [pre_deployment_start]
  56. required_for: [manila-hiera]
  57. parameters:
  58. cmd: sh /var/www/nailgun/plugins/fuel-plugin-manila-1.0/gen_password.sh {CLUSTER_ID}
  59. timeout: 180
  60. - id: manila-hiera
  61. type: copy_files
  62. version: 2.1.0
  63. role: ['/.*/']
  64. required_for: [manila-keystone]
  65. requires: [manila-gen_password]
  66. cross_depends:
  67. - name: manila-gen_password
  68. role: master
  69. parameters:
  70. files:
  71. - src: /etc/fuel/cluster/{CLUSTER_ID}/fuel-plugin-manila.yaml
  72. dst: /etc/hiera/plugins/fuel-plugin-manila.yaml
  73. permissions: '0600'
  74. dir_permissions: '0700'
  75. - id: manila-keystone
  76. type: puppet
  77. groups: [primary-controller]
  78. version: 2.1.0
  79. requires: [manila-hiera, primary-openstack-controller]
  80. required_for: [manila-db]
  81. cross-depends:
  82. - name: keystone-db
  83. cross-depended-by:
  84. - name: deploy_end
  85. parameters:
  86. puppet_manifest: "puppet/manifests/keystone.pp"
  87. puppet_modules: "puppet/modules:/etc/puppet/modules"
  88. timeout: 3600
  89. - id: manila-db
  90. type: puppet
  91. groups: [primary-controller]
  92. version: 2.1.0
  93. required_for: [manila-main]
  94. requires: [primary-database, database, manila-hiera]
  95. condition:
  96. yaql_exp: >
  97. changedAny($.mysql, $.network_metadata.vips, $.get('database_vip'))
  98. cross-depends:
  99. - name: /^(primary-)?database$/
  100. cross-depended-by:
  101. - name: deploy_end
  102. parameters:
  103. puppet_manifest: "puppet/manifests/db.pp"
  104. puppet_modules: "puppet/modules:/etc/puppet/modules"
  105. timeout: 3600
  106. - id: manila-share-network-common-config
  107. type: puppet
  108. version: 2.1.0
  109. groups: [manila-share]
  110. required_for: [openstack-network-end]
  111. requires: [hosts, firewall]
  112. condition:
  113. yaql_exp: >
  114. changedAny($.get('openstack_network'), $.get('verbose'), $.debug,
  115. $.quantum_settings, $.neutron_advanced_configuration, $.rabbit,
  116. $.ceilometer, $.network_scheme, $.get('use_syslog'),
  117. $.get('use_stderr'), $.get('syslog_log_facility_neutron'),
  118. $.network_metadata.nodes.values().where(
  119. $.node_roles.any($.matches('controller'))).network_roles.select(
  120. $.get('mgmt/messaging')),
  121. $.get('amqp_hosts'), $.get('kombu_compression'))
  122. cross-depends:
  123. - name: /^openstack-network-common-config$/
  124. role: primary-controller
  125. parameters:
  126. puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/openstack-network/common-config.pp
  127. puppet_modules: /etc/puppet/modules
  128. timeout: 1800
  129. - id: manila-share-network-plugins-l2
  130. type: puppet
  131. version: 2.1.0
  132. groups: [manila-share]
  133. required_for: [manila-install]
  134. requires: [manila-share-network-common-config]
  135. refresh_on: [neutron_agent_ovs]
  136. cross-depends:
  137. - name: primary-openstack-network-plugins-l2
  138. role: primary-controller
  139. parameters:
  140. puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/openstack-network/plugins/ml2.pp
  141. puppet_modules: /etc/puppet/modules
  142. timeout: 1800
  143. - id: manila-install
  144. type: puppet
  145. groups: [primary-controller, controller, manila-share, manila-data]
  146. version: 2.1.0
  147. required_for: [manila-main]
  148. requires: [manila-db]
  149. cross-depends:
  150. - name: manila-db
  151. parameters:
  152. puppet_manifest: "puppet/manifests/install.pp"
  153. puppet_modules: "puppet/modules:/etc/puppet/modules"
  154. timeout: 3600
  155. - id: manila-image_upload
  156. type: puppet
  157. groups: [primary-controller]
  158. version: 2.1.0
  159. required_for: [manila-main]
  160. requires: [manila-install]
  161. parameters:
  162. puppet_manifest: "puppet/manifests/image_upload.pp"
  163. puppet_modules: "puppet/modules:/etc/puppet/modules"
  164. timeout: 3600
  165. - id: manila-haproxy
  166. type: puppet
  167. groups: [primary-controller, controller]
  168. version: 2.1.0
  169. requires: [manila-install]
  170. required_for: [manila-main]
  171. parameters:
  172. puppet_manifest: "puppet/manifests/haproxy.pp"
  173. puppet_modules: "puppet/modules:/etc/puppet/modules"
  174. timeout: 3600
  175. - id: manila-main
  176. type: puppet
  177. groups: [primary-controller, controller, manila-share, manila-data]
  178. version: 2.1.0
  179. cross-depends:
  180. - name: manila-db
  181. cross-depended-by:
  182. - name: deploy_end
  183. requires: [manila-install, manila-haproxy, manila-hiera]
  184. parameters:
  185. puppet_manifest: "puppet/manifests/site.pp"
  186. puppet_modules: "puppet/modules:/etc/puppet/modules"
  187. timeout: 3600
  188. - id: manila-db-sync
  189. type: puppet
  190. groups: [primary-controller]
  191. version: 2.1.0
  192. requires: [manila-main, manila-db]
  193. required_for: [manila-controller-start]
  194. parameters:
  195. puppet_manifest: "puppet/manifests/db-sync.pp"
  196. puppet_modules: "puppet/modules:/etc/puppet/modules"
  197. timeout: 3600
  198. - id: manila-controller-start
  199. type: puppet
  200. groups: [primary-controller, controller]
  201. version: 2.1.0
  202. requires: [manila-main]
  203. cross-depends:
  204. - name: manila-db-sync
  205. parameters:
  206. puppet_manifest: "puppet/manifests/start_controller.pp"
  207. puppet_modules: "puppet/modules:/etc/puppet/modules"
  208. timeout: 3600
  209. - id: manila-data-start
  210. type: puppet
  211. groups: [manila-data]
  212. version: 2.1.0
  213. requires: [manila-main]
  214. parameters:
  215. puppet_manifest: "puppet/manifests/start_data.pp"
  216. puppet_modules: "puppet/modules:/etc/puppet/modules"
  217. timeout: 3600
  218. - id: manila-share-start
  219. type: puppet
  220. groups: [manila-share]
  221. version: 2.1.0
  222. requires: [manila-main]
  223. parameters:
  224. puppet_manifest: "puppet/manifests/start_share.pp"
  225. puppet_modules: "puppet/modules:/etc/puppet/modules"
  226. timeout: 3600
  227. - id: manila-ui
  228. type: puppet
  229. groups: [primary-controller, controller]
  230. version: 2.1.0
  231. requires: [manila-main]
  232. parameters:
  233. puppet_manifest: "puppet/manifests/ui.pp"
  234. puppet_modules: "puppet/modules:/etc/puppet/modules"
  235. timeout: 3600
  236. - id: manila-meta
  237. type: puppet
  238. groups: [primary-controller]
  239. version: 2.1.0
  240. requires: [manila-controller-start]
  241. parameters:
  242. puppet_manifest: "puppet/manifests/meta.pp"
  243. puppet_modules: "puppet/modules:/etc/puppet/modules"
  244. timeout: 3600