Commit graph

130 commits

Author SHA1 Message Date
Nicolas Iooss
ff89a8ec99
Create vagrant user in vagrant group
The Vagrant documentation for option "group" in syncing folders states
(in https://www.vagrantup.com/docs/synced-folders/basic_usage.html#group):
"By default this will be the SSH user". Vagrant indeed tries to change
the owner and group of synchronized files to vagrant:vagrant (not
vagrant:users). It outputs:

    The following SSH command responded with a non-zero exit status.
    Vagrant assumes that this means the command failed!

    find /vagrant '!' -type l -a '(' ! -user vagrant -or ! -group vagrant
    ')' -exec chown vagrant:vagrant '{}' +

    Stdout from the command:

    Stderr from the command:

    find: 'vagrant' is not the name of an existing group

Fix this by using --user-group instead of --gid users in the useradd
command which creates user vagrant.
2016-11-13 15:56:47 +01:00
Tom Swartz
8f208034ed Rename SSH Setup Script
Change name of SSH setup script to reflect actions
Remove unnecessary SSH key setup in pre-install environment
2016-11-07 17:53:19 -08:00
Tom Swartz
455dc90842 Move Provisioning to STDOUT
Previously, there was an issue with mkfs failing due to a missing
options flag; this error was difficult to catch, as it was only output
in the provisioned OS's virtual machine file.

This change moves the base installation steps to be more in line with
the other provisioning steps, and allows for any errors, issues, or
output to be cached in the logs of the interface running the Packer
build.
2016-11-07 17:53:19 -08:00
Aaron Bull Schaefer
3e29bceab3 Fix missed date reference in the iso_url update 2016-11-07 15:09:35 -08:00
Aaron Bull Schaefer
31d34f357e Update to November 2016 ISO 2016-11-07 14:34:07 -08:00
Aaron Bull Schaefer
aed4423b97 Fix ISO checksum URL override in wrapper script
Resolves #52
2016-11-07 14:22:34 -08:00
Tom Swartz
5dd890c2fa Update to October 2016 ISO
Happy Hacktoberfest
2016-10-17 10:47:55 -04:00
Tom Swartz
8dde72a376 Update to September 2016 ISO 2016-09-14 14:40:51 -04:00
Tom Swartz
a7ff9f2e78 Update to Aug 2016 ISO and fix EXT4 issue
Version 1.43 of e2fsprogs changes mkfs to default 64bit.
This doesn't play nicely with Syslinux, so disable it.

We wouldn't need 64bit filesystems unless we're working with 16TiB
filesystems.
2016-08-10 11:13:27 -04:00
Tom Swartz
e5ef00c926 Merge pull request #50 from elasticdog/fix-issue-49
Revert "Update to August 2016 ISO"
2016-08-03 09:26:28 -04:00
Hiroshi Hatake
8fefaf8b0d Revert "Update to August 2016 ISO"
This reverts commit d93e04754a.

August 2016 ISO image could not boot with `Failed to load ldlinux.c32`
message.
We should revert this change.

Fixes #49.
2016-08-03 13:22:22 +09:00
Hiroshi Hatake
d93e04754a Update to August 2016 ISO 2016-08-02 10:55:02 +09:00
Hiroshi Hatake
6a0928d78c Update to July 2016 ISO 2016-07-04 13:16:22 +09:00
Tom Swartz
36dad6dca7 Update to June 2016 ISO 2016-06-06 11:01:31 -04:00
Aaron Bull Schaefer
adb5b07a82 Merge pull request #48 from tomswartz07/master
Use `checksum_url` to simplify monthly updates
2016-05-02 07:46:51 -07:00
Tom Swartz
71039a406b Use checksum_url to simplify monthly updates
Arch publishes the checksums of the ISO urls and Packer has an option to
read these files directly from the source.

This commit will automatically load the ISO checksums from the provided
URL, making it such that each month only 1 line must be changed.
2016-05-02 08:49:48 -04:00
Tom Swartz
ea342155d8 Update to May 2016 ISO 2016-05-02 08:31:47 -04:00
Tomas Papan
c00e2aff2c Add a headless option in arch-template 2016-04-17 11:28:50 -07:00
Tom Swartz
9c14206b34 Update to April 2016 ISO URL 2016-04-08 10:37:01 -04:00
Tom Swartz
5f104b2e30 Update ISO URL for March 2016 2016-03-08 13:54:31 -05:00
Aaron Bull Schaefer
266dd4ea6c Remove duplicated pacman cleanup step
This gets run as the final step with all builders after the machine
reboots, so no need to do that twice.
2016-02-12 07:40:18 -08:00
Aaron Bull Schaefer
f00a3026f4 Optimize the pacman database before zeroing the drive 2016-02-11 09:08:28 -08:00
Aaron Bull Schaefer
6c589e733a Remove the conditional on cleanup.sh
This should be desireable to run on any of the builders.
2016-02-11 08:00:09 -08:00
Aaron Bull Schaefer
9b662bdf95 Merge pull request #46 from appleby/improve-disk-compaction
Improve disk compaction
2016-02-11 07:55:03 -08:00
Mike Appleby
004b694ef6 Set the execute bit on cleanup.sh.
This isn't strictly necessary.  Done for consistency with the other
files in ./scripts.
2016-02-10 13:49:42 -06:00
Mike Appleby
fd57a360b7 Add a cleanup script.
Do a final clean of the pacman cache, then write zeros to disk and
unlink the file.  Packer will compact the disk as part of the build,
resulting in a smaller final image.
2016-02-09 20:53:33 -06:00
Aaron Bull Schaefer
5c6cc818ad Merge pull request #44 from elasticdog/install-base
Remove duplication in installation scripts
2016-02-09 07:08:59 -08:00
Aaron Bull Schaefer
eb597e91cd Add spaces around all interpolated variables
This is just for clarity when reading, and it seems to be the style that
the upstream documentation has finally settled on. No functional changes
here.
2016-02-08 09:27:41 -08:00
Aaron Bull Schaefer
df4eeb4c29 Update link to the open-vm-tools GitHub page
The upstream project is no longer hosted on SourceForge.
2016-02-08 09:27:41 -08:00
Aaron Bull Schaefer
d5adbc3f10 Remove duplication in installation scripts
Instead of having mostly duplicate scripts for the entire installation
process, we can split them up into the base installation steps and then
run shell provisioners for anything specific to each of the types after
the machine has rebooted.

This structure will mean less chance of error when making changes to
machines, and will also allow for expansion of the scripts to be run at
the end, such as adding a minimization script to remove history and
clear out space on the drive before compression.
2016-02-08 09:27:41 -08:00
Aaron Bull Schaefer
ccb4986b83 Use secure URLs when applicable and bump license dates 2016-02-07 21:01:30 -08:00
Aaron Bull Schaefer
d8f83caa85 Merge pull request #43 from elasticdog/srv-directory
Move the HTTP server files into a dedicated directory
2016-02-07 20:51:00 -08:00
Aaron Bull Schaefer
fe1a5f6f5b Merge pull request #42 from elasticdog/output-directory
Store the output *.box files in a dedicated directory
2016-02-07 20:50:16 -08:00
Aaron Bull Schaefer
f12cd0ad29 Move the HTTP server files into a dedicated directory
Again, this is to tidy up the top-level directory in preparation for
de-duplicating the script functionality.
2016-02-07 20:44:27 -08:00
Aaron Bull Schaefer
4a5b06ed89 Store the output *.box files in a dedicated directory
Tidy things up a bit by not polluting the top-level directory.
2016-02-07 20:34:12 -08:00
Tom Swartz
4f7928d421 Update ISO
Feb 2016 ISO
2016-02-02 15:44:29 -05:00
Aaron Bull Schaefer
5f260621b7 Ensure the help documentation matches available options
Minor reorganization here so the --dry-run option is listed at the end,
and we document that the --timeout option takes an argument. I had also
missed showing the `[-d]` option on the usage message previously.
2016-01-03 11:03:59 -08:00
Aaron Bull Schaefer
20d7048975 Ensure we actually use a 20m timeout as the default
I also slightly re-organized how the default was set, so it will always
rely on the status of the $timeout variable and also the final variable
name matches the name of the Packer option.
2016-01-03 11:02:42 -08:00
Hiroshi Hatake
aa59366282 Update ISO URL
Update ISO url for January 2016
2016-01-01 23:04:46 +09:00
Hiroshi Hatake
2464bd2c31 Add timeout option to specify ssh_timeout via wrapacker
Closes #40
Fixes #8
2016-01-01 11:10:59 +09:00
Aaron Bull Schaefer
03abd01c9a Use the correct binary if running Packer from Arch Linux
Resolves #39
2015-12-30 13:58:28 -08:00
Aaron Bull Schaefer
305ab6eda5 Set the VALID_COUNTRIES constant to be read-only 2015-12-30 13:55:10 -08:00
Aaron Bull Schaefer
28fd41e134 Quote the rhs of == in [[ ]] to prevent glob matching.
[SC2053]
2015-12-30 13:51:36 -08:00
Tom Swartz
df402d4ade Update ISO URL
Update ISO url for December 2015
2015-12-02 08:43:02 -05:00
Tom Swartz
297898f4ed Update ISO
Use November 2015 Image
2015-11-02 08:58:49 -05:00
Alexander Sobolevskiy
104f1952e3 Update install-parallels.sh 2015-10-27 07:54:10 -07:00
Alexander Sobolevskiy
09409cd049 Update install-vmware.sh 2015-10-27 07:53:57 -07:00
Alexander Sobolevskiy
f2856ffd88 Fix clean
pacman -Scc

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N]

Flag --nokonfirm sets the default value so the value will be given N
2015-10-27 07:53:41 -07:00
Aaron Bull Schaefer
1bb5b7bf36 Bump the copyright date range in the README 2015-10-18 11:21:55 -07:00
Aaron Bull Schaefer
86c22941de Add wrapacker usage details to the README 2015-10-18 11:12:59 -07:00