Fuel plugin to collect Logging Monitoring and Alerting metrics
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 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # Tasks definitions for the deployment
  2. # ####################################
  3. # The OCF script should exist before any nodes try to configure the
  4. # collector services with Pacemaker.
  5. - id: install-ocf-script
  6. type: puppet
  7. version: 2.0.0
  8. groups: ["/(primary-)?(controller|standalone-database|standalone-rabbitmq)/"]
  9. requires: [fuel_pkgs]
  10. # Required for the cluster tasks when the environment is scaled up
  11. required_for: [primary-cluster, cluster]
  12. parameters:
  13. puppet_manifest: puppet/manifests/install_ocf_script.pp
  14. puppet_modules: puppet/modules:/etc/puppet/modules
  15. timeout: 120
  16. # Tasks definitions for the post-deployment
  17. # #########################################
  18. # The Hiera data needs to be populated first so that other plugins (eg LMA
  19. # Infrastructure Alerting) can use it.
  20. - id: lma-hiera-override
  21. type: puppet
  22. version: 2.0.0
  23. requires: [post_deployment_start]
  24. required_for: [post_deployment_end]
  25. role: '*'
  26. parameters:
  27. puppet_manifest: puppet/manifests/hiera_override.pp
  28. puppet_modules: puppet/modules:/etc/puppet/modules
  29. timeout: 600
  30. reexecute_on:
  31. - deploy_changes
  32. - id: lma-configure-apt
  33. type: puppet
  34. version: 2.0.0
  35. # We use upload_nodes_info as an anchor to order the post-deployment tasks executed
  36. # by this plugin and the InfluxDB & Elasticsearch plugins. The dependency chain is:
  37. # Other plugins tasks -> upload_nodes_info -> (LMA collector tasks)
  38. requires: [post_deployment_start, upload_nodes_info, lma-hiera-override]
  39. required_for: [post_deployment_end]
  40. role: '*'
  41. parameters:
  42. puppet_manifest: puppet/manifests/configure_apt.pp
  43. puppet_modules: puppet/modules:/etc/puppet/modules
  44. timeout: 600
  45. reexecute_on:
  46. - deploy_changes
  47. - id: lma-base
  48. type: puppet
  49. version: 2.0.0
  50. requires: [lma-configure-apt]
  51. required_for: [post_deployment_end]
  52. role: '*'
  53. parameters:
  54. puppet_manifest: puppet/manifests/base.pp
  55. puppet_modules: puppet/modules:/etc/puppet/modules
  56. timeout: 600
  57. reexecute_on:
  58. - deploy_changes
  59. - id: lma-collectd
  60. type: puppet
  61. version: 2.0.0
  62. requires: [lma-base]
  63. required_for: [post_deployment_end]
  64. role: '*'
  65. parameters:
  66. puppet_manifest: puppet/manifests/collectd.pp
  67. puppet_modules: puppet/modules:/etc/puppet/modules
  68. timeout: 600
  69. reexecute_on:
  70. - deploy_changes
  71. # All tasks lma-main-* must be executed before lma-aggregator. So we don't
  72. # need to add a requirement to post_deployment_end because it is implied
  73. # by the one to lma-aggregator.
  74. - id: lma-main-controller
  75. type: puppet
  76. version: 2.0.0
  77. requires: [lma-base, lma-collectd]
  78. required_for: [lma-aggregator]
  79. role: [controller, primary-controller]
  80. parameters:
  81. puppet_manifest: puppet/manifests/controller.pp
  82. puppet_modules: puppet/modules:/etc/puppet/modules
  83. timeout: 600
  84. reexecute_on:
  85. - deploy_changes
  86. - id: lma-main-compute
  87. type: puppet
  88. version: 2.0.0
  89. requires: [lma-base, lma-collectd]
  90. required_for: [lma-aggregator]
  91. role: [compute]
  92. parameters:
  93. puppet_manifest: puppet/manifests/compute.pp
  94. puppet_modules: puppet/modules:/etc/puppet/modules
  95. timeout: 600
  96. reexecute_on:
  97. - deploy_changes
  98. - id: lma-main-cinder
  99. type: puppet
  100. version: 2.0.0
  101. requires: [lma-base, lma-collectd]
  102. required_for: [lma-aggregator]
  103. role: [cinder]
  104. parameters:
  105. puppet_manifest: puppet/manifests/cinder.pp
  106. puppet_modules: puppet/modules:/etc/puppet/modules
  107. timeout: 600
  108. reexecute_on:
  109. - deploy_changes
  110. - id: lma-aggregator
  111. type: puppet
  112. version: 2.0.0
  113. requires: [lma-base, lma-collectd]
  114. required_for: [post_deployment_end]
  115. role: '*'
  116. parameters:
  117. puppet_manifest: puppet/manifests/aggregator.pp
  118. puppet_modules: puppet/modules:/etc/puppet/modules
  119. timeout: 600
  120. reexecute_on:
  121. - deploy_changes
  122. - id: lma-configure-afd-filters
  123. type: puppet
  124. version: 2.0.0
  125. requires: [lma-aggregator]
  126. # Required for post_deployment_end is induced by lma-cleanup-apt-config
  127. required_for: [lma-cleanup-apt-config]
  128. role: '*'
  129. # The AFD filters shouldn't send data before the aggregator service is
  130. # configured on all the controllers, hence the cross-depends parameter that
  131. # is required when running in a task-based deployment mode.
  132. cross-depends:
  133. - name: lma-aggregator
  134. role: [primary-controller, controller]
  135. parameters:
  136. puppet_manifest: puppet/manifests/configure_afd_filters.pp
  137. puppet_modules: puppet/modules:/etc/puppet/modules
  138. timeout: 600
  139. reexecute_on:
  140. - deploy_changes
  141. # This task must be executed at the very end of the deployment.
  142. - id: lma-cleanup-apt-config
  143. type: puppet
  144. version: 2.0.0
  145. # We use update_hosts as an anchor to order the post-deployment tasks
  146. # executed by the LMA infrastructure plugin. The dependency chain is:
  147. # LMA collector tasks -> update_hosts -> (LMA Infrastructure Alerting tasks)
  148. required_for: [post_deployment_end, update_hosts]
  149. role: '*'
  150. parameters:
  151. puppet_manifest: puppet/manifests/cleanup_apt_config.pp
  152. puppet_modules: puppet/modules:/etc/puppet/modules
  153. timeout: 600
  154. reexecute_on:
  155. - deploy_changes