Skip to content

Commit

Permalink
Merge pull request #31 from ChrisLoer/master
Browse files Browse the repository at this point in the history
Update Packer build script
  • Loading branch information
amcgee committed Apr 3, 2014
2 parents 8d5482e + 67cdf8d commit ca0849c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packer/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ usage: $0 [options] <builder>
Builds a WellDone MoMo Server basebox using Packer.
<builder>:
virtualbox
virtualbox-iso
digitalocean
amazon-ebs (untested)
Expand Down Expand Up @@ -62,8 +62,8 @@ shift $(($OPTIND - 1))

BUILDER=$1
case "$BUILDER" in
virtualbox)
VAGRANT_BOX_FILE="./packer_virtualbox_virtualbox.box"
virtualbox-iso)
VAGRANT_BOX_FILE="./packer_virtualbox-iso_virtualbox.box"
;;
digitalocean)
VAGRANT_BOX_FILE="./packer_digitalocean_digitalocean.box"
Expand Down
8 changes: 4 additions & 4 deletions packer/server_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"image_id": 1505447
},
{
"type": "virtualbox",
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",

"vboxmanage": [
Expand All @@ -34,8 +34,8 @@

"disk_size" : 10000,

"iso_url": "http://releases.ubuntu.com/precise/ubuntu-12.04.3-server-amd64.iso",
"iso_checksum": "2cbe868812a871242cdcdd8f2fd6feb9",
"iso_url": "http://releases.ubuntu.com/precise/ubuntu-12.04.4-server-amd64.iso",
"iso_checksum": "e83adb9af4ec0a039e6a5c6e145a34de",
"iso_checksum_type": "md5",

"http_directory" : ".",
Expand Down Expand Up @@ -82,7 +82,7 @@
"sudo chmod 0440 /etc/sudoers.d/{{user `ssh_name`}}"
]
},
"virtualbox": {
"virtualbox-iso": {
"inline": [
"echo Setting up password-less sudo...",
"echo wdadminpass | sudo -S sh -c 'echo \"{{user `ssh_name`}} ALL=(ALL)NOPASSWD:ALL\" > /etc/sudoers.d/{{user `ssh_name`}}'",
Expand Down

0 comments on commit ca0849c

Please sign in to comment.