forked from gialia/reefer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovisioner.json
48 lines (48 loc) · 978 Bytes
/
provisioner.json
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
{
"variables": {
"home": "{{env `HOME`}}",
"ansible_host": "default",
"ansible_connection": "docker"
},
"builders": [
{
"type": "docker",
"image": "gialia/centos:latest",
"commit": "true",
"pull": "false",
"run_command": [
"-d",
"-i",
"-t",
"--cap-add=SYS_ADMIN",
"--stop-signal=RTMIN+3",
"-v",
"/sys/fs/cgroup:/sys/fs/cgroup:ro",
"--name",
"{{user `ansible_host`}}",
"{{.Image}}",
"/sbin/init"
]
}
],
"provisioners": [
{
"type": "ansible",
"user": "root",
"playbook_file": "./httpd.yaml",
"extra_arguments": [
"--extra-vars",
"ansible_host={{user `ansible_host`}} ansible_connection={{user `ansible_connection`}}"
]
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "gialia/test",
"tag": "latest"
}
]
]
}