fuel-library/deployment/puppet/osnailyfacter/modular/ceph/tasks.yaml
Alexey Shtokolov 5f8a873627 Bump version for all library tasks
According to task-based deployment specification
the validator in nailgun checks all tasks version
New deployment engine can be turned on only if all
tasks have version >= 2.0.0
By this commit we confirm that all core tasks have
all dependencies including cross-node and are
ready to work with task-based deployment engine

Closes-Bug:#1528335
Change-Id: I57e52eb8a27bff5a6843c3297a7c97922b49774f
2015-12-25 12:19:15 +00:00

164 lines
5.0 KiB
YAML

# PRE_DEPLOYMENT Tasks
#
- id: copy_keys_ceph
type: copy_files
version: 2.0.0
role: '*'
required_for: [pre_deployment_end]
requires: [generate_keys_ceph]
cross-depends:
- name: generate_keys_ceph
role: master
parameters:
files:
- src: /var/lib/fuel/keys/{CLUSTER_ID}/ceph/ceph.pub
dst: /var/lib/astute/ceph/ceph.pub
- src: /var/lib/fuel/keys/{CLUSTER_ID}/ceph/ceph
dst: /var/lib/astute/ceph/ceph
permissions: '0600'
dir_permissions: '0700'
- id: generate_keys_ceph
type: shell
version: 2.0.0
role: master
requires: [pre_deployment_start]
required_for: [copy_keys_ceph]
parameters:
cmd: sh /etc/puppet/modules/osnailyfacter/modular/astute/generate_keys.sh -i {CLUSTER_ID} -s 'ceph' -p /var/lib/fuel/keys/
timeout: 180
#
# DEPLOYMENT Tasks
#
- id: top-role-ceph-osd
type: puppet
version: 2.0.0
groups: [ceph-osd]
required_for: [deploy_end]
requires: [hosts, firewall]
cross-depends:
- name: ceph-mon
- name: ceph-radosgw
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/ceph-osd.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
- id: ceph-radosgw
type: puppet
version: 2.0.0
groups: [primary-controller, controller]
required_for: [deploy_end, controller_remaining_tasks]
requires: [apache, ceph-mon, primary-ceph-mon]
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/radosgw.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
test_pre:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/ceph/radosgw_pre.rb
test_post:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/ceph/radosgw_post.rb
- id: primary-ceph-mon
type: puppet
version: 2.0.0
groups: [primary-controller]
required_for: [deploy_end, controller_remaining_tasks]
requires: [openstack-controller]
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/mon.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
- id: ceph-mon
type: puppet
version: 2.0.0
groups: [controller]
required_for: [deploy_end, controller_remaining_tasks]
requires: [openstack-controller]
cross-depends:
- name: primary-ceph-mon
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/mon.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
#
# POST_DEPLOYMENT Tasks
#
- id: ceph-compute
type: puppet
version: 2.0.0
role: [compute]
cross-depends:
- name: ceph_create_pools
requires: [ceph_create_pools]
required_for: [post_deployment_end]
condition: "settings:storage.objects_ceph.value == true or settings:storage.images_ceph.value == true or settings:storage.volumes_ceph.value == true or settings:storage.ephemeral_ceph.value == true"
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/ceph_compute.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
cwd: /
test_post:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/ceph/ceph_compute_post.rb
- id: ceph_create_pools
type: puppet
version: 2.0.0
role: [primary-controller, controller]
requires: [post_deployment_start]
required_for: [ceph_ready_check]
cross-depended-by:
- name: ceph_ready_check
condition: "settings:storage.objects_ceph.value == true or settings:storage.images_ceph.value == true or settings:storage.volumes_ceph.value == true or settings:storage.ephemeral_ceph.value == true"
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/ceph_pools.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
cwd: /
- id: ceph_ready_check
type: shell
version: 2.0.0
role: [primary-controller]
condition: "settings:storage.objects_ceph.value == true or settings:storage.images_ceph.value == true or settings:storage.volumes_ceph.value == true or settings:storage.ephemeral_ceph.value == true"
requires: [post_deployment_start]
required_for: [enable_rados, upload_cirros]
parameters:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/ceph/ceph_ready_check.rb
timeout: 1800
- id: enable_rados
type: puppet
version: 2.0.0
role: [primary-controller, controller]
condition: "settings:storage.objects_ceph.value == true"
requires: [post_deployment_start]
required_for: [upload_cirros, post_deployment_end]
cross-depended-by:
- name: upload_cirros
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/enable_rados.pp
puppet_modules: /etc/puppet/modules
timeout: 180
cwd: /
- id: updatedb
type: puppet
version: 2.0.0
role: [primary-controller, controller, ceph-osd]
condition: "settings:storage.objects_ceph.value == true or settings:storage.images_ceph.value == true or settings:storage.volumes_ceph.value == true or settings:storage.ephemeral_ceph.value == true"
requires: [post_deployment_start]
required_for: [post_deployment_end]
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/ceph/updatedb.pp
puppet_modules: /etc/puppet/modules
timeout: 60
cwd: /