-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask.yml
More file actions
103 lines (88 loc) · 1.7 KB
/
task.yml
File metadata and controls
103 lines (88 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
# CloudConductor Pattern:: wordpress_pattern
# Name:: task.yml
#
# Copyright 2015, TIS Inc.
#
# All rights reserved - Do Not Redistribute
#
#
# Environments
#
environments:
HOME: /root
PATH: $PATH:/usr/local/bin:/usr/bin
ROLE: '{{config.role}}'
CONSUL_SECRET_KEY: '{{config.token}}'
#
# Variables
#
# be defined the key-value map to use in this task.yml file.
#
# variables:
#
# Default
#
# be defined the default value of parameters.
#
default:
timeout: 1800
chef:
attribute_keys:
- cloudconductor
#
# Events
#
events:
setup:
description: Execute setup
task: setup_task
configure:
description: Execute configure
task: configure_task
deploy:
description: Execute deploy
task: deploy_task
backup:
description: Execute backup
task: backup_task
restore:
description: Execute restore
task: restore_task
spec:
description: Execute spec
task: spec_task
#
# Tasks
#
tasks:
setup_task:
description: Execute setup
operations:
- execute:
script: ./scripts/setup_wordpress.sh {{role}}
configure_task:
description: Execute configure
operations:
- execute:
script: ./scripts/configure_wordpress.sh {{role}}
deploy_task:
description: Execute deploy
operations:
- execute:
script: echo "not implemented yet!"
backup_task:
description: Execute backup
operations:
- execute:
script: echo "do nothing"
restore_task:
description: Execute restore
operations:
- execute:
script: echo "do nothing"
spec_task:
description: Execute serverspec
operations:
- execute:
script: ./scripts/spec_wordpress.sh {{role}}