Last active
December 20, 2015 13:09
-
-
Save cwolferh/6137070 to your computer and use it in GitHub Desktop.
attempting a tripleo dev env on fedora 19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| setenforce 0 | |
| service firewalld stop | |
| yum -y install busybox | |
| TRIPLEO_ROOT=${TRIPLE_ROOT:=~/tripleo-fedora-`date +%Y-%m-%d`} | |
| export PATH=$PATH:$TRIPLEO_ROOT/incubator/scripts | |
| export ELEMENTS_PATH=$TRIPLEO_ROOT/tripleo-image-elements/elements | |
| # probably shouldn't be necessary, but make sure we have a pub key | |
| if [ ! -f ~/.ssh/id_rsa.pub ]; then | |
| ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa ; fi | |
| mkdir $TRIPLEO_ROOT | |
| export PATH=$PATH:$TRIPLEO_ROOT/incubator/scripts | |
| cd $TRIPLEO_ROOT | |
| git clone https://github.com/openstack/tripleo-incubator incubator | |
| git clone https://github.com/tripleo/bm_poseur.git | |
| git clone https://github.com/stackforge/diskimage-builder.git | |
| git clone https://github.com/stackforge/tripleo-image-elements.git | |
| git clone https://github.com/stackforge/tripleo-heat-templates.git | |
| install-dependencies | |
| sleep 60 | |
| setup-network | |
| sleep 60 | |
| service libvirtd restart | |
| sleep 60 | |
| #$TRIPLEO_ROOT/diskimage-builder/bin/ramdisk-image-create -a i386 \ | |
| # ubuntu deploy -o deploy-ramdisk | |
| # Alternatively, could build a fedora deploy image: | |
| $TRIPLEO_ROOT/diskimage-builder/bin/ramdisk-image-create -a amd64 \ | |
| fedora deploy -o deploy-ramdisk | |
| cd $TRIPLEO_ROOT/tripleo-image-elements/elements/seed-stack-config | |
| sed -i "s/\"user\": \"stack\",/\"user\": \"`whoami`\",/" config.json | |
| cd $TRIPLEO_ROOT/incubator/ | |
| EXTRA_ELEMENTS="fedora selinux-permissive" boot-seed-vm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment