75 lines
2 KiB
Text
75 lines
2 KiB
Text
# ServerDeployPlan Defaults — canonical server deployment step sequence.
|
|
|
|
{
|
|
default_server_deploy_plan | default = {
|
|
name = "default-server-deploy",
|
|
on_failure = 'stop_all,
|
|
steps = [
|
|
{
|
|
id = "check_network",
|
|
name = "Verify network connectivity",
|
|
type = 'check,
|
|
required = true,
|
|
on_fail = 'stop,
|
|
depends_on = [],
|
|
},
|
|
{
|
|
id = "check_ssh_creds",
|
|
name = "Verify SSH credentials",
|
|
type = 'check,
|
|
required = true,
|
|
on_fail = 'stop,
|
|
depends_on = [],
|
|
},
|
|
{
|
|
id = "check_image_exists",
|
|
name = "Verify role image snapshot exists",
|
|
type = 'check,
|
|
required = true,
|
|
on_fail = 'stop,
|
|
depends_on = [],
|
|
},
|
|
{
|
|
id = "check_image_fresh",
|
|
name = "Check role image freshness",
|
|
type = 'check,
|
|
required = false,
|
|
on_fail = 'warn,
|
|
depends_on = [],
|
|
},
|
|
{
|
|
id = "create_server",
|
|
name = "Create server via provider",
|
|
type = 'task,
|
|
required = true,
|
|
on_fail = 'stop,
|
|
depends_on = ["check_network", "check_ssh_creds", "check_image_exists"],
|
|
},
|
|
{
|
|
id = "wait_boot",
|
|
name = "Wait for server boot",
|
|
type = 'task,
|
|
required = true,
|
|
on_fail = 'stop,
|
|
depends_on = ["create_server"],
|
|
timeout_seconds = 300,
|
|
},
|
|
{
|
|
id = "verify_ssh",
|
|
name = "Verify SSH connectivity",
|
|
type = 'task,
|
|
required = true,
|
|
on_fail = 'stop,
|
|
depends_on = ["wait_boot"],
|
|
},
|
|
{
|
|
id = "run_taskservs",
|
|
name = "Run post-boot taskservs",
|
|
type = 'task,
|
|
required = false,
|
|
on_fail = 'warn,
|
|
depends_on = ["verify_ssh"],
|
|
},
|
|
],
|
|
},
|
|
}
|