Preparing the build env for Packer Enterprise
This commit is contained in:
parent
4a85989bd3
commit
18b4a8d8b2
|
@ -5,6 +5,18 @@
|
||||||
"atlas_token": ""
|
"atlas_token": ""
|
||||||
},
|
},
|
||||||
"provisioners": [
|
"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",
|
{ "type": "shell",
|
||||||
"inline": [
|
"inline": [
|
||||||
"install -m0700 -o {{user `user`}} -g {{user `user`}} -d /home/{{user `user`}}/.ssh",
|
"install -m0700 -o {{user `user`}} -g {{user `user`}} -d /home/{{user `user`}}/.ssh",
|
||||||
|
@ -102,8 +114,12 @@
|
||||||
"created_at": "{{timestamp}}",
|
"created_at": "{{timestamp}}",
|
||||||
"description": "A Vagrant image for Mastodon development",
|
"description": "A Vagrant image for Mastodon development",
|
||||||
"provider": "virtualbox-iso",
|
"provider": "virtualbox-iso",
|
||||||
"version": "{{isotime \"20060102T15_04_05\"}}"
|
"version": "{{isotime \"20060102T15_04_05\"}}.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"push": {
|
||||||
|
"name": "mastodon/ubuntu-xenial64",
|
||||||
|
"vcs": true
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,7 @@
|
||||||
"inline": [
|
"inline": [
|
||||||
"mount -o loop ${HOME}/VBoxGuestAdditions.iso /mnt",
|
"mount -o loop ${HOME}/VBoxGuestAdditions.iso /mnt",
|
||||||
"/mnt/VBoxLinuxAdditions.run install",
|
"/mnt/VBoxLinuxAdditions.run install",
|
||||||
|
"ln -sf /usr/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf",
|
||||||
"umount /mnt",
|
"umount /mnt",
|
||||||
"rm ${HOME}/VBoxGuestAdditions.iso"
|
"rm ${HOME}/VBoxGuestAdditions.iso"
|
||||||
]
|
]
|
||||||
|
@ -52,13 +53,13 @@
|
||||||
" console-setup/layoutcode=us ",
|
" console-setup/layoutcode=us ",
|
||||||
" console-setup/modelcode=pc105 ",
|
" console-setup/modelcode=pc105 ",
|
||||||
" debconf/frontend=noninteractive ",
|
" debconf/frontend=noninteractive ",
|
||||||
" debian-installer=en_US ",
|
" debian-installer=en_US.UTF-8 ",
|
||||||
" fb=false ",
|
" fb=false ",
|
||||||
" initrd=/install/initrd.gz ",
|
" initrd=/install/initrd.gz ",
|
||||||
" kbd-chooser/method=us ",
|
" kbd-chooser/method=us ",
|
||||||
" keyboard-configuration/layout=USA ",
|
" keyboard-configuration/layout=USA ",
|
||||||
" keyboard-configuration/variant=USA ",
|
" keyboard-configuration/variant=USA ",
|
||||||
" locale=en_US ",
|
" locale=en_US.UTF-8 ",
|
||||||
" netcfg/get_domain=vm ",
|
" netcfg/get_domain=vm ",
|
||||||
" netcfg/get_hostname=vagrant ",
|
" netcfg/get_hostname=vagrant ",
|
||||||
" grub-installer/bootdev=/dev/sda ",
|
" grub-installer/bootdev=/dev/sda ",
|
||||||
|
|
|
@ -26,7 +26,7 @@ tasksel tasksel/first multiselect standard, ubuntu-server
|
||||||
d-i console-setup/ask_detect boolean false
|
d-i console-setup/ask_detect boolean false
|
||||||
d-i keyboard-configuration/layoutcode string us
|
d-i keyboard-configuration/layoutcode string us
|
||||||
d-i keyboard-configuration/modelcode string pc105
|
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
|
# Set the root password
|
||||||
d-i passwd/root-login boolean true
|
d-i passwd/root-login boolean true
|
||||||
|
|
Loading…
Reference in New Issue