diff options
Diffstat (limited to 'jessie.json')
-rw-r--r-- | jessie.json | 65 |
1 files changed, 57 insertions, 8 deletions
diff --git a/jessie.json b/jessie.json index 3cc6090..142d503 100644 --- a/jessie.json +++ b/jessie.json @@ -11,10 +11,28 @@ "user": "vagrant", "hostname": "leap-jessie", "domain": "local", - "boxversion": "1.1.0" + "boxversion": "1.2.5" }, "provisioners": [ { + "type": "file", + "source": "files/leap-archive.gpg", + "destination": "/tmp/leap-archive.gpg" + }, + { + "type": "file", + "source": "files/leap-experimental-archive.gpg", + "destination": "/tmp/leap-experimental-archive.gpg" + }, + { + "type": "shell", + "inline": [ + "echo {{user `password`}} | sudo -S cp /tmp/leap-archive.gpg /etc/apt/trusted.gpg.d/leap-archive.gpg", + "sudo cp /tmp/leap-experimental-archive.gpg /etc/apt/trusted.gpg.d/leap-experimental-archive.gpg", + "sudo chown root:root /etc/apt/trusted.gpg.d/leap-archive.gpg /etc/apt/trusted.gpg.d/leap-experimental-archive.gpg" + ] + }, + { "type": "shell", "scripts": [ "scripts/base.sh", @@ -22,8 +40,7 @@ "scripts/virtualbox.sh", "scripts/vagrant.sh", "scripts/dep.sh", - "scripts/cleanup.sh", - "scripts/zerodisk.sh" + "scripts/cleanup.sh" ], "override": { "qemu": { @@ -33,10 +50,25 @@ "execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'" } } + }, + { + "type": "shell", + "scripts": [ "scripts/zerodisk.sh" ], + "except": ["lxc"] } ], "builders": [ { + "type": "lxc", + "config_file": "lxc/debian", + "template_name": "debian", + "template_environment_vars": [ + "MIRROR=http://deb.debian.org/debian/", + "SUITE=jessie" + ], + "target_runlevel": 3 + }, + { "type": "qemu", "accelerator": "kvm", "boot_command": [ @@ -61,9 +93,9 @@ "format": "qcow2", "headless": "true", "http_directory": "http", - "iso_checksum": "dd25bcdde3c6ea5703cc0f313cde621b13d42ff7d252e2538a11663c93bf8654", + "iso_checksum": "9479c5c2df72ae3878116c43fb42eefae53d1fe363ce514a6afc8289064b9f5f", "iso_checksum_type": "sha256", - "iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.3.0-amd64-netinst.iso", + "iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.6.0-amd64-netinst.iso", "net_device": "virtio-net", "qemuargs": [ [ "-m", "1024M" ] @@ -95,9 +127,9 @@ "disk_size": "{{ user `disk_size`}}", "guest_os_type": "Debian_64", "http_directory": "http", - "iso_checksum": "dd25bcdde3c6ea5703cc0f313cde621b13d42ff7d252e2538a11663c93bf8654", + "iso_checksum": "9479c5c2df72ae3878116c43fb42eefae53d1fe363ce514a6afc8289064b9f5f", "iso_checksum_type": "sha256", - "iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.3.0-amd64-netinst.iso", + "iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.6.0-amd64-netinst.iso", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, @@ -110,7 +142,24 @@ "post-processors": [ [{ "type": "vagrant", - "keep_input_artifact": false + "keep_input_artifact": false, + "except": ["lxc"] + }, + { + "type": "compress", + "output": "output-vagrant/jessie64-lxc.box", + "only": ["lxc"] + }, + { + "type": "atlas", + "only": ["lxc"], + "artifact": "{{user `atlas_username`}}/{{user `atlas_name`}}", + "artifact_type": "vagrant.box", + "metadata": { + "provider": "lxc", + "created_at": "{{timestamp}}", + "version": "{{user `boxversion`}}" + } }, { "type": "atlas", |