-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrhel-7-rhn-puppet4.json
90 lines (90 loc) · 2.56 KB
/
rhel-7-rhn-puppet4.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
90
{
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "./packer-rhel-7-rhn-virtualbox/packer-virtualbox-ovf.ovf",
"boot_wait": "10s",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"ssh_pty": "true",
"http_directory": "http",
"output_directory": "packer-{{user `template`}}-virtualbox",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
},
{
"type": "vmware-vmx",
"source_path": "./packer-rhel-7-rhn-vmware/packer-vmware-vmx.vmx",
"boot_wait": "10s",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"ssh_pty": "true",
"http_directory": "http",
"output_directory": "packer-{{user `template`}}-vmware",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
"numvcpus": "1",
"ethernet0.virtualDev": "vmxnet3",
"virtualHW.version": "11"
}
}
],
"post-processors": [
{
"output": "builds/{{user `box_basename`}}.{{.Provider}}.box",
"keep_input_artifact": true,
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"DISABLE_RHN={{user `DISABLE_RHN`}}",
"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/7/puppet4.sh",
"scripts/centos/tools.sh",
"scripts/centos/7/cleanup-devtools.sh",
"scripts/common/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"box_basename": "rhel-7-rhn-puppet4",
"build_timestamp": "{{isotime \"20060102150403\"}}",
"DISABLE_RHN": "{{env `DISABLE_RHN`}}",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"name": "rhel-7-rhn-puppet4",
"no_proxy": "{{env `no_proxy`}}",
"template": "rhel-7-rhn-puppet4",
"version": "0.0.TIMESTAMP"
}
}