Remove unnecessary code for now with some cleanup
This commit is contained in:
parent
04b7e0bb06
commit
1caac31ffe
143
examples/orch/example_py.yml
Normal file
143
examples/orch/example_py.yml
Normal 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]
|
11
examples/orch/for_stop.yaml
Normal file
11
examples/orch/for_stop.yaml
Normal 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
63
examples/orch/multi.yaml
Normal 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
10
examples/orch/simple.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
name: simple
|
||||
tasks:
|
||||
- uid: echo_stuff
|
||||
parameters:
|
||||
type: echo
|
||||
args: [10]
|
||||
- uid: just_fail
|
||||
parameters:
|
||||
type: error
|
||||
args: ['message']
|
34
examples/orch/test_errors.yml
Normal file
34
examples/orch/test_errors.yml
Normal 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]
|
||||
|
34
examples/orch/upd_test_errors.yml
Normal file
34
examples/orch/upd_test_errors.yml
Normal 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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user