Preparing the build env for Packer Enterprise

This commit is contained in:
Moritz Heiber 2017-04-26 06:46:04 +02:00
parent 4a85989bd3
commit 18b4a8d8b2
3 changed files with 22 additions and 5 deletions

View File

@ -5,6 +5,18 @@
"atlas_token": ""
},
"provisioners": [
{
"type": "shell-local",
"command": "sudo apt-get update -qq"
},
{
"type": "shell-local",
"command": "sudo apt-get install -y ansible git-core"
},
{
"type": "shell-local",
"command": "git submodule init ansible"
},
{ "type": "shell",
"inline": [
"install -m0700 -o {{user `user`}} -g {{user `user`}} -d /home/{{user `user`}}/.ssh",
@ -102,8 +114,12 @@
"created_at": "{{timestamp}}",
"description": "A Vagrant image for Mastodon development",
"provider": "virtualbox-iso",
"version": "{{isotime \"20060102T15_04_05\"}}"
"version": "{{isotime \"20060102T15_04_05\"}}.0"
}
}
]
],
"push": {
"name": "mastodon/ubuntu-xenial64",
"vcs": true
}
}

View File

@ -15,6 +15,7 @@
"inline": [
"mount -o loop ${HOME}/VBoxGuestAdditions.iso /mnt",
"/mnt/VBoxLinuxAdditions.run install",
"ln -sf /usr/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf",
"umount /mnt",
"rm ${HOME}/VBoxGuestAdditions.iso"
]
@ -52,13 +53,13 @@
" console-setup/layoutcode=us ",
" console-setup/modelcode=pc105 ",
" debconf/frontend=noninteractive ",
" debian-installer=en_US ",
" debian-installer=en_US.UTF-8 ",
" fb=false ",
" initrd=/install/initrd.gz ",
" kbd-chooser/method=us ",
" keyboard-configuration/layout=USA ",
" keyboard-configuration/variant=USA ",
" locale=en_US ",
" locale=en_US.UTF-8 ",
" netcfg/get_domain=vm ",
" netcfg/get_hostname=vagrant ",
" grub-installer/bootdev=/dev/sda ",

View File

@ -26,7 +26,7 @@ tasksel tasksel/first multiselect standard, ubuntu-server
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/modelcode string pc105
d-i debian-installer/locale string en_US
d-i debian-installer/locale string en_US.UTF-8
# Set the root password
d-i passwd/root-login boolean true