Skip to content

Instantly share code, notes, and snippets.

@jasonnerothin
Last active August 29, 2015 14:23
Show Gist options
  • Save jasonnerothin/0ad350ac6f848252d189 to your computer and use it in GitHub Desktop.
Save jasonnerothin/0ad350ac6f848252d189 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
sudo aptitude install -y python-dev
sudo aptitude install -y python-virtualenv
sudo aptitude install -y wget zip unzip
virtualenv myenv
source myenv/bin/activate
pip install cloudify
# cfy -h
cfy init -r
sed -i 's/info/debug/' .cloudify/config.yaml
wget https://raw.githubusercontent.com/cloudify-cosmo/cloudify-manager-blueprints/3.2-build/simple/simple-manager-blueprint.yaml
wget https://raw.githubusercontent.com/cloudify-cosmo/cloudify-manager-blueprints/3.2-build/simple/inputs.yaml.template
mkdir empty-directory
mv simple-manager-blueprint.yaml empty-directory
mv inputs.yaml.template inputs.yaml
# edit inputs.yaml
# edit the tasks file to make --privileged=True instead of parameterized
# find . -type f -name tasks.py | grep bootstrap | xargs vi
# copy cfykey.pem into ~/.ssh
cfy bootstrap --install-plugins -p empty-directory/simple-manager-blueprint.yaml --verbose -i inputs.yaml | tee output.log # >> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment