-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcentos-7-puppet4-ruby.json
89 lines (89 loc) · 2.52 KB
/
centos-7-puppet4-ruby.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "./packer-centos-7-puppet4-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"
]
]
},
{
"type": "vmware-vmx",
"source_path": "./packer-centos-7-puppet4-vmware/packer-vmware-vmx.vmx",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
"http_directory": "http",
"output_directory": "packer-{{user `template`}}-vmware",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"output": "builds/{{user `box_basename`}}.{{.Provider}}.box",
"type": "vagrant",
"keep_input_artifact": true
}
],
"provisioners": [
{
"type": "file",
"source": "puppet/ruby/ruby.pp",
"destination": "/tmp/ruby.pp"
},
{
"environment_vars": [
"FACTER_ruby_version={{user `ruby_version`}}",
"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/prereq.sh",
"scripts/centos/tools.sh",
"scripts/centos/7/ruby.sh",
"scripts/centos/7/cleanup-ruby.sh",
"scripts/common/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"box_basename": "centos-7-puppet4-ruby",
"build_timestamp": "{{isotime \"20060102150403\"}}",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"name": "centos-7-puppet4-ruby",
"no_proxy": "{{env `no_proxy`}}",
"ruby_version": "{{env `RUBY_VERSION`}}",
"template": "centos-7-puppet4-ruby",
"version": "0.0.TIMESTAMP"
}
}