Skip to content

Instantly share code, notes, and snippets.

View dmorel's full-sized avatar

David Morel dmorel

  • Seenons
  • Amsterdam
  • 09:50 (UTC +02:00)
View GitHub Profile
#!/bin/bash
# Get the target folder and date from command-line arguments
TARGET_FOLDER="$1"
TARGET_DATE="$2"
# Check that both arguments were provided
if [ $# -ne 2 ]; then
echo "Usage: $0 folder date"
exit 1

Starting to play with packer and vagrant

The bottom line is I want Packer to build Centos 7 boxes from scratch and configure and use them thanks to Vagrant as a throwaway Hadoop cluster for dev. I want all of this to (ultimately) not rely on the network so I have full control of what goes in, and I can do this when offline. There is still a long way to go to that end, but here are the first steps. We don't want to depend on images downloaded from the Internet but only on the original ISO from Centos, and the Cloudera rpms.