-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebian9.1-puppet5.json
89 lines (84 loc) · 2.73 KB
/
debian9.1-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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"variables": {
"template": "debian9.1-puppet5",
"access_token": "{{env `VAGRANT_CLOUD_TOKEN`}}"
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Debian_64",
"disk_size": "8192",
"hard_drive_interface": "sata",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"headless": "false",
"http_directory": "http",
"output_directory": "packer-{{user `template`}}",
"iso_checksum": "c9e070074de83aa22e141f59a423e5210a5019b369ef1efe61a2afd44ba8f371",
"iso_checksum_type": "sha256",
"iso_url": "http://www.linorg.usp.br/cdimage/release/9.1.0/amd64/iso-cd/debian-9.1.0-amd64-netinst.iso",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/shutdown -hP now",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
],
"boot_command": [
"<esc><wait>",
"install <wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg <wait>",
"debian-installer=en_US.UTF-8 <wait>",
"auto <wait>",
"locale=en_US.UTF-8 <wait>",
"kbd-chooser/method=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"netcfg/get_hostname={{ .Name }} <wait>",
"netcfg/get_domain=vagrantup.com <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"grub-installer/bootdev=/dev/sda <wait>",
"<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": "Debian 9.1 with Puppet Agent latest version"
}
]
],
"provisioners": [
{
"type": "shell",
"environment_vars": [
"HOME_DIR=/home/vagrant"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"scripts": [
"scripts/debian/update.sh",
"scripts/common/sshd.sh",
"scripts/debian/networking.sh",
"scripts/debian/sudoers.sh",
"scripts/common/vagrant.sh",
"scripts/debian/systemd.sh",
"scripts/common/virtualbox.sh",
"scripts/debian/puppet-agent5.sh",
"scripts/debian/cleanup.sh",
"scripts/common/minimize.sh"
]
}
]
}