Fuel plugin for Cinder and NetApp integration
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 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # The task modifies hiera data to add new cinder-types
  2. - id: netapp_hiera_override
  3. type: puppet
  4. version: 2.1.0
  5. groups: [primary-controller]
  6. requires: [hiera]
  7. required_for: [globals, create-cinder-types]
  8. parameters:
  9. puppet_manifest: puppet/manifests/hiera_override.pp
  10. puppet_modules: puppet/modules:/etc/puppet/modules
  11. timeout: 360
  12. # Execute on controllers only if ceph used for volumes.
  13. # For LCM inherit condition from openstack-cinder
  14. # otherwise enabled_backends will be overwritten.
  15. # https://bugs.launchpad.net/puppet-cinder/+bug/1598094
  16. - id: netapp_cinder_controller
  17. type: puppet
  18. version: 2.1.0
  19. groups: [primary-controller, controller]
  20. requires: [openstack-cinder]
  21. required_for: [deploy_end]
  22. condition:
  23. yaql_exp: >
  24. $.storage.volumes_ceph and
  25. changedAny($.cinder_netapp, $.network_scheme, $.cinder, $.network_metadata.vips,
  26. $.get('cinder_volume_group'), $.storage, $.ceilometer, $.sahara,
  27. $.rabbit, $.get('region', 'RegionOne'), $.get('use_ssl'),
  28. ('primary-controller' in $.roles), $.get('proxy_port'),
  29. $.get('kombu_compression'), $.get('keystone_endpoint'),
  30. $.get('glance_endpoint'), $.get('glance_api_servers'),
  31. $.get('use_syslog'), $.get('use_stderr'), $.get('verbose'), $.debug,
  32. $.network_metadata.nodes.values().where(
  33. $.node_roles.any($.matches('controller'))).network_roles.select(
  34. $.get('mgmt/messaging')),
  35. $.get('amqp_hosts'), $.get('syslog_log_facility_cinder'),
  36. $.get('cinder_rate_limits'),
  37. $.configuration.get('cinder_api_paste_ini'), $.configuration.get('cinder'))
  38. parameters:
  39. puppet_manifest: puppet/manifests/site.pp
  40. puppet_modules: puppet/modules:/etc/puppet/modules
  41. timeout: 360
  42. # For LCM inherit condition from top-role-cinder
  43. # otherwise enabled_backends will be overwritten.
  44. # https://bugs.launchpad.net/puppet-cinder/+bug/1598094
  45. - id: netapp_cinder
  46. type: puppet
  47. version: 2.1.0
  48. groups: [cinder]
  49. requires: [top-role-cinder]
  50. required_for: [deploy_end]
  51. condition:
  52. yaql_exp: >
  53. changedAny($.cinder_netapp, $.cinder, $.get('cinder_volume_group'),
  54. $.network_metadata.nodes.get(concat("node-", $.uid)).network_roles.get('cinder/iscsi'),
  55. $.network_metadata.vips, $.debug, $.node_volumes, $.storage, $.rabbit, $.ceilometer,
  56. $.get('use_stderr'), $.get('use_syslog'), $.get('syslog_log_facility_cinder'),
  57. $.get('syslog_log_facility_ceph'), $.get('proxy_port'), $.get('kombu_compression'),
  58. $.get('use_ssl'), $.get('service_endpoint'), $.get('glance_api_servers'),
  59. $.get('amqp_hosts'),
  60. $.network_metadata.nodes.values().where(
  61. $.node_roles.any($.matches('controller'))).network_roles.select(
  62. $.get('mgmt/messaging')))
  63. parameters:
  64. puppet_manifest: puppet/manifests/site.pp
  65. puppet_modules: puppet/modules:/etc/puppet/modules
  66. timeout: 360
  67. - id: netapp_compute
  68. type: puppet
  69. version: 2.1.0
  70. groups: [compute]
  71. requires: [top-role-compute]
  72. required_for: [deploy_end]
  73. condition:
  74. yaql_exp: "changed($.cinder_netapp)"
  75. parameters:
  76. puppet_manifest: puppet/manifests/compute.pp
  77. puppet_modules: puppet/modules:/etc/puppet/modules
  78. timeout: 360
  79. # Fix hot pluggability.
  80. # Override create-cinder-types task with
  81. # additional dependency on "cinder_netapp".
  82. - id: create-cinder-types
  83. type: puppet
  84. version: 2.1.0
  85. groups: [primary-controller]
  86. requires: [openstack-cinder]
  87. required_for: [deploy_end]
  88. condition:
  89. yaql_exp: "changedAny($.storage, $.cinder_netapp)"
  90. parameters:
  91. puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/openstack-cinder/create_cinder_types.pp
  92. puppet_modules: /etc/puppet/modules
  93. timeout: 1200