Calico provides Layer 3 Virtual Networking for Highly Scalable Data Centers
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 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. # Groups
  2. - id: calico-rrs
  3. type: group
  4. version: 2.1.0
  5. role:
  6. - calico-rr
  7. tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, hosts, deploy_start]
  8. requires:
  9. - deploy_start
  10. required_for:
  11. - deploy_end
  12. parameters:
  13. strategy:
  14. type: one_by_one
  15. - id: calico-etcds
  16. type: group
  17. version: 2.1.0
  18. role:
  19. - calico-etcd
  20. tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, hosts, deploy_start]
  21. requires:
  22. - deploy_start
  23. required_for:
  24. - deploy_end
  25. parameters:
  26. strategy:
  27. type: one_by_one
  28. # Plugin tasks
  29. - id: hiera_override
  30. type: puppet
  31. version: 2.1.0
  32. groups: ["/.*/"]
  33. requires:
  34. - hiera
  35. required_for:
  36. - globals
  37. parameters:
  38. puppet_manifest: puppet/manifests/hiera_override.pp
  39. puppet_modules: puppet/modules:/etc/puppet/modules
  40. timeout: 3600
  41. - id: calico-private-gateway-check
  42. groups: ["/.*/"]
  43. version: 2.1.0
  44. requires:
  45. - globals
  46. required_for:
  47. - deploy_end
  48. - netconfig
  49. - hosts
  50. type: puppet
  51. parameters:
  52. timeout: 180
  53. puppet_manifest: puppet/manifests/private_gateway_check.pp
  54. puppet_modules: puppet/modules:/etc/puppet/modules
  55. - id: calico-repo-setup
  56. role:
  57. - calico-rr
  58. - calico-etcd
  59. - primary-controller
  60. - controller
  61. - compute
  62. version: 2.1.0
  63. requires:
  64. - netconfig
  65. - hosts
  66. required_for:
  67. - deploy_end
  68. - openstack-network-start
  69. type: puppet
  70. parameters:
  71. timeout: 180
  72. puppet_manifest: puppet/manifests/repo_setup.pp
  73. puppet_modules: puppet/modules:/etc/puppet/modules
  74. - id: calico-rr
  75. role:
  76. - calico-rr
  77. version: 2.1.0
  78. requires:
  79. - netconfig
  80. - hosts
  81. - firewall
  82. - calico-repo-setup
  83. required_for:
  84. - deploy_end
  85. - openstack-network-start
  86. condition:
  87. yaql_exp: >
  88. changedAny($.configuration, $.debug, $.network_metadata, $.network_scheme, $['fuel-plugin-calico'])
  89. type: puppet
  90. parameters:
  91. timeout: 180
  92. puppet_manifest: puppet/manifests/role_rr.pp
  93. puppet_modules: puppet/modules:/etc/puppet/modules
  94. - id: calico-etcd
  95. role:
  96. - calico-etcd
  97. version: 2.1.0
  98. requires:
  99. - netconfig
  100. - hosts
  101. - firewall
  102. - calico-repo-setup
  103. required_for:
  104. - deploy_end
  105. - openstack-network-start
  106. condition:
  107. yaql_exp: >
  108. changedAny($.configuration, $.debug, $.network_metadata, $.network_scheme, $['fuel-plugin-calico'])
  109. type: puppet
  110. parameters:
  111. timeout: 180
  112. puppet_manifest: puppet/manifests/role_etcd.pp
  113. puppet_modules: puppet/modules:/etc/puppet/modules
  114. - id: calico-etcd-proxy
  115. role:
  116. - primary-controller
  117. - controller
  118. - compute
  119. version: 2.1.0
  120. requires:
  121. - netconfig
  122. - hosts
  123. - firewall
  124. - calico-repo-setup
  125. required_for:
  126. - deploy_end
  127. - openstack-network-start
  128. cross-depends:
  129. - name: primary-calico-etcd
  130. role: ["/(primary-)?calico-etcd/"]
  131. - name: calico-etcd
  132. role: ["/(primary-)?calico-etcd/"]
  133. condition:
  134. yaql_exp: not ('calico-etcd' in $.roles)
  135. type: puppet
  136. parameters:
  137. timeout: 180
  138. puppet_manifest: puppet/manifests/etcd_proxy.pp
  139. puppet_modules: puppet/modules:/etc/puppet/modules
  140. - id: openstack-network-server-config
  141. type: puppet
  142. version: 2.1.0
  143. groups:
  144. - primary-controller
  145. - controller
  146. requires:
  147. - calico-repo-setup
  148. - calico-etcd-proxy
  149. - openstack-network-start
  150. - openstack-network-common-config
  151. required_for:
  152. - openstack-network-end
  153. cross-depends:
  154. - name: /(primary-)?calico-rr/
  155. role: ["/(primary-)?calico-rr/"]
  156. - name: /(primary-)?calico-etcd/
  157. role: ["/(primary-)?calico-etcd/"]
  158. condition:
  159. yaql_exp: >
  160. changedAny($.quantum, $.configuration, $.quantum_settings,
  161. $.get('database_vip'), $.network_metadata.vips, $.nova,
  162. $.get('neutron_primary_controller_roles'),
  163. $.get('neutron_compute_nodes'), $.get('region', 'RegionOne'),
  164. $.get('use_ssl'), $.neutron_advanced_configuration, $.network_scheme)
  165. refresh_on:
  166. - neutron_plugin_ml2
  167. - neutron_config
  168. - neutron_api_config
  169. parameters:
  170. puppet_manifest: puppet/manifests/neutron_server_config.pp
  171. puppet_modules: puppet/modules:/etc/puppet/modules
  172. timeout: 1800
  173. - id: openstack-network-networks
  174. type: puppet
  175. version: 2.1.0
  176. groups:
  177. - primary-controller
  178. requires:
  179. - openstack-network-start
  180. - openstack-network-common-config
  181. - openstack-network-server-config
  182. required_for:
  183. - openstack-network-end
  184. condition:
  185. yaql_exp: "changedAny($.access, $.quantum_settings, $.quantum)"
  186. parameters:
  187. puppet_manifest: puppet/manifests/neutron_networks.pp
  188. puppet_modules: puppet/modules:/etc/puppet/modules
  189. timeout: 1800
  190. - id: calico-compute-bird
  191. role:
  192. - compute
  193. version: 2.1.0
  194. requires:
  195. - netconfig
  196. - hosts
  197. - firewall
  198. - calico-repo-setup
  199. required_for:
  200. - deploy_end
  201. - openstack-network-start
  202. cross-depends:
  203. - name: /(primary-)?calico-rr/
  204. role: ["/(primary-)?calico-rr/"]
  205. condition:
  206. yaql_exp: >
  207. changedAny($.configuration, $.debug, $.network_metadata, $.network_scheme, $['fuel-plugin-calico'])
  208. type: puppet
  209. parameters:
  210. timeout: 180
  211. puppet_manifest: puppet/manifests/compute_bird.pp
  212. puppet_modules: puppet/modules:/etc/puppet/modules
  213. - id: openstack-network-compute-nova
  214. type: puppet
  215. version: 2.1.0
  216. groups: [compute]
  217. requires: [openstack-network-start, calico-etcd-proxy]
  218. required_for: [openstack-network-end]
  219. condition:
  220. yaql_exp: >
  221. changedAny($.network_scheme, $.quantum, $.quantum_settings, $.nova,
  222. $.network_metadata.vips, $.get('region'), $.get('use_ssl'), $['fuel-plugin-calico'])
  223. parameters:
  224. puppet_manifest: puppet/manifests/compute_neutron_nova.pp
  225. puppet_modules: puppet/modules:/etc/puppet/modules
  226. timeout: 1800
  227. - id: calico-compute-metadata-api
  228. type: puppet
  229. version: 2.1.0
  230. groups: [compute]
  231. requires: [openstack-network-end, calico-etcd-proxy, top-role-compute]
  232. required_for: [enable_nova_compute_service]
  233. condition:
  234. yaql_exp: >
  235. changedAny($.quantum, $.configuration, $.debug,
  236. $.neutron_advanced_configuration, $['fuel-plugin-calico'])
  237. parameters:
  238. puppet_manifest: puppet/manifests/compute_metadata_api.pp
  239. puppet_modules: puppet/modules:/etc/puppet/modules
  240. timeout: 1800
  241. - id: calico-compute-alt-gateway
  242. type: puppet
  243. version: 2.1.0
  244. groups: [compute]
  245. requires: [openstack-network-end, calico-etcd-proxy, top-role-compute]
  246. required_for: [enable_nova_compute_service, calico-compute-felix]
  247. condition:
  248. yaql_exp: >
  249. changedAny($.quantum, $.configuration,
  250. $.neutron_advanced_configuration, $['fuel-plugin-calico'])
  251. parameters:
  252. puppet_manifest: puppet/manifests/compute_alt_gateway.pp
  253. puppet_modules: puppet/modules:/etc/puppet/modules
  254. timeout: 1800
  255. - id: calico-compute-felix
  256. type: puppet
  257. version: 2.1.0
  258. groups: [compute]
  259. requires: [openstack-network-end, calico-etcd-proxy, top-role-compute]
  260. required_for: [enable_nova_compute_service]
  261. condition:
  262. yaql_exp: >
  263. changedAny($.quantum, $.configuration, $.debug,
  264. $.neutron_advanced_configuration, $['fuel-plugin-calico'])
  265. parameters:
  266. puppet_manifest: puppet/manifests/compute_felix.pp
  267. puppet_modules: puppet/modules:/etc/puppet/modules
  268. timeout: 1800
  269. - id: openstack-network-agents-dhcp
  270. type: puppet
  271. version: 2.1.0
  272. groups: [compute]
  273. requires: [openstack-network-end, calico-etcd-proxy, calico-compute-felix, top-role-compute]
  274. required_for: [enable_nova_compute_service]
  275. condition:
  276. yaql_exp: >
  277. changedAny($.quantum, $.configuration, $.debug,
  278. $.neutron_advanced_configuration, $['fuel-plugin-calico'])
  279. refresh_on: [neutron_dhcp_agent_config]
  280. parameters:
  281. puppet_manifest: puppet/manifests/compute_dhcp_agent.pp
  282. puppet_modules: puppet/modules:/etc/puppet/modules
  283. timeout: 1800
  284. # Disable Neutron tasks, not required for Calice setup
  285. - id: openstack-network-routers
  286. groups: ["/.*/"]
  287. version: 2.1.0
  288. type: skipped
  289. - id: primary-openstack-network-agents-dhcp
  290. groups: ["/.*/"]
  291. version: 2.1.0
  292. type: skipped
  293. # Task with id:openstack-network-agents-dhcp was redefined above
  294. - id: primary-openstack-network-plugins-l2
  295. groups: ["/.*/"]
  296. version: 2.1.0
  297. type: skipped
  298. - id: openstack-network-plugins-l2
  299. groups: ["/.*/"]
  300. version: 2.1.0
  301. type: skipped
  302. - id: primary-openstack-network-agents-l3
  303. groups: ["/.*/"]
  304. version: 2.1.0
  305. type: skipped
  306. - id: openstack-network-agents-l3
  307. groups: ["/.*/"]
  308. version: 2.1.0
  309. type: skipped
  310. - id: primary-openstack-network-agents-metadata
  311. groups: ["/.*/"]
  312. version: 2.1.0
  313. type: skipped
  314. - id: openstack-network-agents-metadata
  315. groups: ["/.*/"]
  316. version: 2.1.0
  317. type: skipped