-
Start a new machine instance that will serve as that management machine. Use an Ubuntu 12.04 64bit Server edition image.
-
Clone this repository in your local machine (not the management machine).
git clone https://github.com/CloudifySource/cosmo-mezzanine-example.git
cd cosmo-mezzanine-example
-
edit
cosmo-mezzanine-example/env.sh
so that:host
is set to the management machine public ip.workdir
points to the root directory of this repository.user
is the username to use on the management machine.userhome
isuser
's home directorymanagement_key_path
is a path to the ssh key used to connect to the management machine.
-
Place the ssh key that will be used for the client vm instances in the
cosmo-mezzanine-example
dir and name itid_rsa
. (in themezzanine
example, this will be the key belonging to the key pair that goes by the namehead
) -
edit
cosmo-mezzanine-example/keystone_config.json
with the appropriate details. -
edit
cosmo-mezzanine-example/mezzanine-app/mezzanine_blueprint.yaml
so thatnova_config
is properly configured (2 places) -
edit
cosmo-mezzanine-example/mezaanine-app/definitions/mezzanine_types.yaml
so that:- The chef configuration + key matches your chef server configuration
- the
user
property underworker_config
matches the user of the image you picked innova_config
-
From the terminal, execute the following:
source env.sh
./copy-files-to-management.sh
ssh -i $management_key_path $user@$host
./cosmo-install-manager.sh
cd cosmo-work
./cosmo.sh --dsl=$HOME/mezzanine-app/mezzanine_blueprint.yaml
- If you wish to cleanup the chef server and terminate the instaces started, update
cleanup-cloud-server.py
with the appropriate details and configure your.chef/knife.rb
so thatknife
commands work properly from within the repository directory. Then, execute./cleanup.sh
from your local machine.