This repository has been archived by the owner on May 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
packer_rancheros.json
82 lines (82 loc) · 2.77 KB
/
packer_rancheros.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
{
"variables": {
"iso_md5_checksum": "0c13ace5c4b2d18aca1337c2bddde568",
"version_prerelease_suffix": "",
"vm_description": "A simplified Linux distribution built from containers, for containers",
"vm_version": "1.0.1"
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Linux26_64",
"iso_url": "https://releases.rancher.com/os/v{{ user `vm_version` }}/rancheros.iso",
"iso_checksum": "{{user `iso_md5_checksum` }}",
"iso_checksum_type": "md5",
"guest_additions_mode": "disable",
"ssh_private_key_file": "./keys/vagrant",
"ssh_username": "rancher",
"ssh_wait_timeout": "360s",
"hard_drive_interface": "sata",
"hard_drive_nonrotational": true,
"iso_interface": "sata",
"vm_name": "rancherOS",
"disk_size": "24000",
"boot_wait": "30s",
"boot_command": [
"echo \"#cloud-config\" >> cloud-config.yml<enter>",
"echo \"ssh_authorized_keys:\" >> cloud-config.yml<enter>",
"echo \" - ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key\" >> cloud-config.yml<enter>",
"sudo ros install -c cloud-config.yml -d /dev/sda<enter>",
"y<enter>",
"<wait5>",
"y<enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10>"
],
"shutdown_command": "sudo shutdown -h now",
"export_opts": [
"--manifest",
"--vsys", "0",
"--description", "{{user `vm_description`}}",
"--version", "{{user `vm_version`}}{{user `version_prerelease_suffix` }}"
],
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1024"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
}
],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 9,
"keep_input_artifact": false,
"output":"RancherOS_{{user `vm_version`}}.box",
"vagrantfile_template": "./Vagrantfile"
},
{
"type": "atlas",
"only": ["virtualbox-iso"],
"artifact": "MatthewHartstonge/RancherOS",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "virtualbox",
"version": "{{user `vm_version`}}{{user `version_prerelease_suffix`}}"
}
}
]
],
"push": {
"name": "MatthewHartstonge/RancherOS"
}
}