summaryrefslogtreecommitdiffstats
path: root/builder/versions/template.sh
blob: f78b02cfdd2c781b977ad8ed9c08afe47fc33a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# to use this script, from its parent dir, run: ./versions/<script>.sh <target>
# you'll want to edit the below bash variables to match your use cases :)
# eg: ./versions/centos-6.sh upload
# to make your own base image and upload it to your own server somewhere.

VERSION='centos-6'		# pick from the output of virt-builder -l
SERVER='user@host.example.org'	# connect over ssh (add your public key first)
REMOTE_PATH='public_html/vagrant'	# make a $VERSION directory in this dir

make VERSION=$VERSION SERVER=$SERVER REMOTE_PATH=$REMOTE_PATH $@