Remove unnecessary code for now with some cleanup

This commit is contained in:
Dmitry Shulyak 2015-07-01 09:29:50 +03:00
parent 04b7e0bb06
commit 1caac31ffe
6 changed files with 295 additions and 0 deletions

View File

@ -0,0 +1,143 @@
name: example_py
tasks:
- uid: rabbitmq_service1
parameters:
type: solar_resource
args: [rabbitmq_service1, run]
- uid: openstack_vhost
parameters:
type: solar_resource
args: [openstack_vhost, run]
after: [rabbitmq_service1]
- uid: openstack_rabbitmq_user
parameters:
type: solar_resource
args: [openstack_rabbitmq_user, run]
after: [rabbitmq_service1]
- uid: mariadb_service1
parameters:
type: solar_resource
args: [mariadb_service1, run]
- uid: keystone_db
parameters:
type: solar_resource
args: [keystone_db, run]
after: [mariadb_service1]
- uid: keystone_db_user
parameters:
type: solar_resource
args: [keystone_db_user, run]
after: [keystone_db]
- uid: keystone_config1
parameters:
type: solar_resource
args: [keystone_config1, run]
- uid: keystone_config2
parameters:
type: solar_resource
args: [keystone_config2, run]
- uid: keystone_service1
parameters:
type: solar_resource
args: [keystone_service1, run]
after: [keystone_config1, keystone_db_user]
- uid: keystone_service2
parameters:
type: solar_resource
args: [keystone_service2, run]
after: [keystone_config2, keystone_db_user]
- uid: haproxy_config
parameters:
type: solar_resource
args: [haproxy_config, run]
after: [keystone_service1, keystone_service2]
- uid: haproxy_service
parameters:
type: solar_resource
args: [haproxy_service, run]
after: [haproxy_config]
- uid: admin_tenant
parameters:
type: solar_resource
args: [admin_tenant, run]
after: [haproxy_service]
- uid: admin_role
parameters:
type: solar_resource
args: [admin_user, run]
after: [admin_tenant]
- uid: admin_user
parameters:
type: solar_resource
args: [admin_user, run]
after: [admin_role]
- uid: keystone_service_endpoint
parameters:
type: solar_resource
args: [keystone_service_endpoint, run]
after: [admin_user]
- uid: services_tenant
parameters:
type: solar_resource
args: [glance_keystone_tenant, run]
after: [keystone_service_endpoint]
- uid: glance_keystone_user
parameters:
type: solar_resource
args: [glance_keystone_user, run]
after: [keystone_service_endpoint]
- uid: glance_keystone_role
parameters:
type: solar_resource
args: [glance_keystone_role, run]
after: [keystone_service_endpoint]
- uid: glance_db
parameters:
type: solar_resource
args: [glance_db, run]
after: [mariadb_service1]
- uid: glance_db_user
parameters:
type: solar_resource
args: [glance_db_user, run]
after: [glance_db]
- uid: glance_config
parameters:
type: solar_resource
args: [glance_config, run]
- uid: glance_api_container
parameters:
type: solar_resource
args: [glance_api_container, run]
after: [glance_config, glance_db_user, glance_keystone_user, openstack_rabbitmq_user]
- uid: glance_registry_container
parameters:
type: solar_resource
args: [glance_registry_container, run]
after: [glance_config, glance_db_user, glance_keystone_user, openstack_rabbitmq_user]
- uid: glance_api_endpoint
parameters:
type: solar_resource
args: [glance_api_endpoint, run]
after: [glance_api_container]
- uid: haproxy_service_update1_rem
parameters:
type: solar_resource
args: [haproxy_service, remove]
after: [glance_api_endpoint]
- uid: haproxy_service_update1_run
parameters:
type: solar_resource
args: [haproxy_service, run]
after: [haproxy_service_update1_rem]

View File

@ -0,0 +1,11 @@
name: for_stop
tasks:
- uid: sleep_some_time
parameters:
type: sleep
args: [20]
before: [sleep_again]
- uid: sleep_again
parameters:
type: sleep
args: [20]

63
examples/orch/multi.yaml Normal file
View File

@ -0,0 +1,63 @@
name: multi
tasks:
- uid: rabbitmq_cluster1.create
parameters:
type: cmd
args: ['echo rabbitmq_cluster1.create']
before: [amqp_cluster_configured]
- uid: rabbitmq_cluster2.join
parameters:
type: cmd
args: ['echo rabbitmq_cluster2.join']
after: [rabbitmq_cluster1.create]
before: [amqp_cluster_configured]
- uid: rabbitmq_cluster3.join
parameters:
type: cmd
args: ['echo rabbitmq_cluster3.join']
after: [rabbitmq_cluster1.create]
before: [amqp_cluster_configured]
- uid: amqp_cluster_configured
parameters:
type: fault_tolerance
args: [100]
- uid: compute1
parameters:
type: echo
args: [compute1]
before: [compute_ready]
after: [amqp_cluster_configured]
- uid: compute2
parameters:
type: echo
args: [compute2]
before: [compute_ready]
after: [amqp_cluster_configured]
- uid: compute3
parameters:
type: echo
args: [compute3]
before: [compute_ready]
after: [amqp_cluster_configured]
- uid: compute4
parameters:
type: error
args: [compute4]
before: [compute_ready]
after: [amqp_cluster_configured]
- uid: compute5
parameters:
type: error
args: [compute5]
before: [compute_ready]
after: [amqp_cluster_configured]
- uid: compute_ready
parameters:
type: fault_tolerance
args: [60]

10
examples/orch/simple.yaml Normal file
View File

@ -0,0 +1,10 @@
name: simple
tasks:
- uid: echo_stuff
parameters:
type: echo
args: [10]
- uid: just_fail
parameters:
type: error
args: ['message']

View File

@ -0,0 +1,34 @@
name: errors
tasks:
- uid: compute1
parameters:
type: echo
args: [compute1]
before: [compute_ready]
- uid: compute2
parameters:
type: echo
args: [compute2]
before: [compute_ready]
- uid: compute3
parameters:
type: echo
args: [compute3]
before: [compute_ready]
- uid: compute4
parameters:
type: error
args: [compute4]
before: [compute_ready]
- uid: compute5
parameters:
type: error
args: [compute5]
before: [compute_ready]
- uid: compute_ready
parameters:
type: fault_tolerance
args: [80]

View File

@ -0,0 +1,34 @@
name: errors
tasks:
- uid: compute1
parameters:
type: echo
args: [compute1]
before: [compute_ready]
- uid: compute2
parameters:
type: echo
args: [compute2]
before: [compute_ready]
- uid: compute3
parameters:
type: echo
args: [compute3]
before: [compute_ready]
- uid: compute4
parameters:
type: echo
args: [compute4]
before: [compute_ready]
- uid: compute5
parameters:
type: error
args: [compute5]
before: [compute_ready]
- uid: compute_ready
parameters:
type: fault_tolerance
args: [80]