-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy_web.json
More file actions
69 lines (68 loc) · 1.48 KB
/
deploy_web.json
File metadata and controls
69 lines (68 loc) · 1.48 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
{
"name": "Deploy Web",
"description": "Deploys a server, php interpreter, and content",
"version": "0.0.1",
"contact": "Greg Buehler <gregory.r.buehler@gmail.com>",
"actions": [
{
"description": "ensure web server is present",
"module": "package",
"options": {
"state": "present",
"packages": [
"apache2"
]
}
},
{
"description": "ensure php is present",
"module": "package",
"options": {
"state": "present",
"packages": [
"php5",
"libapache2-mod-php5"
]
}
},
{
"description": "ensure web server is started",
"module": "service",
"options": {
"state": "start",
"name": "apache2"
}
},
{
"description": "ensure user is created",
"module": "user",
"options": {
"state": "present",
"name": "qwerty"
}
},
{
"description": "default index.html page does not exist",
"module": "file",
"options": {
"group": "foo",
"user": "foo",
"permissions": "664",
"state": "absent",
"file": "/var/www/html/index.html"
}
},
{
"description": "our index.php is current",
"module": "file",
"options": {
"group": "foo",
"user": "foo",
"permissions": "664",
"state": "sync",
"file": "/var/www/html/index.php",
"source": "index.php"
}
}
]
}