Skip to content

Instantly share code, notes, and snippets.

@msavy msavy/gist:795277
Created Jan 25, 2011

Embed
What would you like to do?
name: fedora-14-base
summary: F14 base appl file
os:
name: fedora
version: 14
hardware:
partitions:
"/":
size: 3
packages:
includes:
- @base
- @core
post:
base:
- "/bin/echo 'worked!' > /base-boxgrinder-test"
ec2:
- "/bin/echo 'worked!' > /ec2-boxgrinder-test"
vmware:
- "/bin/echo 'worked!' > /vmware-boxgrinder-test"
virtualbox:
- "/bin/echo 'worked!' > /virtualbox-boxgrinder-test"
========
name: fedora-14-basic
summary: Inherit base, then create additional partition, include and exclude some packages, set pw, test post functions
spec:
- fedora-14-base
hardware:
partitions:
"/home":
size: 1
packages:
includes:
- httpd
- squid
- openssh-server
- nano
post:
base:
- "/usr/bin/which httpd && /bin/echo '0' || /bin/echo '1' > /pkg-httpd-test"
# Perl is a dependency that squid should pull in
- "/usr/bin/which perl && /bin/echo '0' || /bin/echo '1' > /pkg-squid-dep-test"
# Check that /home was created is there
- "/bin/echo 'Directory is present' > /home/dirtest"
ec2:
- "/bin/echo 'worked!' > /ec2-boxgrinder-test"
vmware:
- "/bin/echo 'worked!' > /vmware-boxgrinder-test"
virtualbox:
- "echo 'worked!' > /virtualbox-boxgrinder-test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.