-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcentos7.4-puppet5.json
71 lines (66 loc) · 2.02 KB
/
centos7.4-puppet5.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
{
"variables": {
"template": "centos7.4-puppet5",
"access_token": "{{env `VAGRANT_CLOUD_TOKEN`}}"
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"disk_size": "8192",
"hard_drive_interface": "sata",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"headless": "false",
"http_directory": "http",
"output_directory": "output-{{user `template`}}",
"iso_checksum": "ec7500d4b006702af6af023b1f8f1b890b6c7ee54400bb98cef968b883cd6546",
"iso_checksum_type": "sha256",
"iso_url": "http://www.linorg.usp.br/CentOS/7.4.1708/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_wait_timeout": "40m",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
],
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/kickstart/ks.cfg<enter><wait>"
]
}
],
"post-processors": [
[
{
"type": "vagrant",
"output": "builds/{{user `template`}}.box",
"keep_input_artifact": false
},
{
"type": "vagrant-cloud",
"box_tag": "viniciusxavier/{{user `template`}}",
"access_token": "{{user `access_token`}}",
"version": "1.0.0",
"version_description": "CentOS 7.4.1708 with Puppet Agent 5.2.0"
}
]
],
"provisioners": [
{
"type": "shell",
"environment_vars": [
"HOME_DIR=/home/vagrant"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"scripts": [
"scripts/common/sshd.sh",
"scripts/centos/networking.sh",
"scripts/common/vagrant.sh",
"scripts/common/virtualbox.sh",
"scripts/centos/puppet-agent5.sh",
"scripts/centos/cleanup.sh",
"scripts/common/minimize.sh"
]
}
]
}