-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcentos-7-puppet-jenkins.json
71 lines (71 loc) · 1.91 KB
/
centos-7-puppet-jenkins.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "packer-centos-7-puppet-virtualbox/packer-virtualbox-ovf.ovf",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
"http_directory": "http",
"output_directory": "packer-{{user `template`}}-virtualbox",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
}
],
"post-processors": [
{
"output": "builds/{{user `box_basename`}}.{{.Provider}}.box",
"type": "vagrant",
"keep_input_artifact": true
}
],
"provisioners": [
{
"type": "file",
"source": "puppet/jenkins/jenkins.pp",
"destination": "/tmp/jenkins.pp"
},
{
"environment_vars": [
"HOME_DIR=/home/vagrant",
"HTTP_PROXY={{user `http_proxy`}}",
"HTTPS_PROXY={{user `https_proxy`}}",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"no_proxy={{user `no_proxy`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"scripts": [
"scripts/centos/jenkins_prereq.sh",
"scripts/common/jenkins.sh",
"scripts/common/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"box_basename": "centos-7-puppet-jenkins",
"build_timestamp": "{{isotime \"20060102150403\"}}",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"name": "centos-7-puppet-jenkins",
"no_proxy": "{{env `no_proxy`}}",
"template": "centos-7-puppet-jenkins",
"version": "0.0.TIMESTAMP"
}
}