fuel-library/deployment/puppet/openstack_tasks/examples/heat/tasks.yaml

114 lines
3.8 KiB
YAML

- id: primary-heat
type: puppet
version: 2.1.0
groups: [primary-controller]
required_for: [deploy_end]
requires: [primary-openstack-controller, openstack-controller]
condition:
yaql_exp: &heat_enabled >
changedAny($.network_scheme, $.heat, $.sahara, $.rabbit, $.ceilometer,
$.get('max_retries'), $.get('max_pool_size'), $.get('max_overflow'),
$.get('idle_timeout'), $.network_metadata.vips, $.public_ssl,
$.get('use_ssl'), ('primary-controller' in $.roles),
$.get('kombu_compression'), $.get('heat_endpoint'), $.debug,
$.get('verbose'), $.get('use_stderr'), $.get('use_syslog'),
$.get('syslog_log_facility_heat'), $.deployment_mode,
$.get('region', 'RegionOne'), $.get('external_lb'),
$.get('database_vip'), $.get('heat_db_name'), $.storage,
$.network_metadata.nodes.values().where(
$.node_roles.any($.matches('(controller|rabbitmq)'))).network_roles.select(
$.get('mgmt/messaging')), $.get('amqp_hosts'),
$.configuration.get('heat'), $.configuration.get('heat_api_paste_ini'),
$.get('heat_ha_engine'))
cross-depends:
- name: /^(primary-)?rabbitmq$/
- name: heat-db
- name: heat-keystone
- name: memcached
parameters:
puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/heat/heat.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
test_pre:
cmd: ruby /etc/puppet/modules/openstack_tasks/examples/heat/heat_pre.rb
test_post:
cmd: ruby /etc/puppet/modules/openstack_tasks/examples/heat/heat_post.rb
- id: heat
type: puppet
version: 2.1.0
groups: [controller]
required_for: [deploy_end]
requires: [primary-openstack-controller, openstack-controller]
condition:
yaql_exp: *heat_enabled
cross-depends:
- name: /^(primary-)?rabbitmq$/
- name: primary-heat
parameters:
puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/heat/heat.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
test_pre:
cmd: ruby /etc/puppet/modules/openstack_tasks/examples/heat/heat_pre.rb
test_post:
cmd: ruby /etc/puppet/modules/openstack_tasks/examples/heat/heat_post.rb
- id: heat-db
type: puppet
version: 2.2.0
tags: [primary-database]
required_for: [primary-heat, heat]
requires: [primary-database, database]
cross-depends:
- name: /^(primary-)?database$/
cross-depended-by:
- name: /^(primary-)?heat$/
condition:
yaql_exp: >
changedAny($.heat, $.mysql,
$.network_metadata.get('vips',{}).get('management'),
$.get('database_vip'), $.get('mysql_custom_setup_class'))
cross-depends:
- name: /^(primary-)?database$/
parameters:
puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/heat/db.pp
puppet_modules: /etc/puppet/modules
timeout: 1800
- id: heat-keystone
type: puppet
version: 2.2.0
tags: [primary-keystone]
required_for: [heat, primary-heat]
requires: [primary-keystone, keystone]
cross-depends:
- name: /^(primary-)?keystone$/
cross-depended-by:
- name: /^(primary-)?heat$/
condition:
yaql_exp: >
changedAny($.heat, $.network_metadata.vips,
$.get('region', 'RegionOne'), $.public_ssl, $.get('use_ssl'),
$.get('heat_endpoint'))
parameters:
puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/heat/keystone.pp
puppet_modules: /etc/puppet/modules
timeout: 1800
- id: heat-cfn-keystone
type: puppet
version: 2.2.0
tags: [primary-keystone]
required_for: [heat, primary-heat]
requires: [primary-keystone, keystone]
cross-depends:
- name: /^(primary-)?keystone$/
role: self
cross-depended-by:
- name: /^(primary-)?heat$/
parameters:
puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/heat/cfn_keystone.pp
puppet_modules: /etc/puppet/modules
timeout: 1800