Skip to content

yaronp68/cosmo-mezzanine-example

Repository files navigation

Mezzanine Example

Setup

  1. Start a new machine instance that will serve as that management machine. Use an Ubuntu 12.04 64bit Server edition image.

  2. 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
  1. 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 is user's home directory
    • management_key_path is a path to the ssh key used to connect to the management machine.
  2. Place the ssh key that will be used for the client vm instances in the cosmo-mezzanine-example dir and name it id_rsa. (in the mezzanine example, this will be the key belonging to the key pair that goes by the name head)

  3. edit cosmo-mezzanine-example/keystone_config.json with the appropriate details.

  4. edit cosmo-mezzanine-example/mezzanine-app/mezzanine_blueprint.yaml so that nova_config is properly configured (2 places)

  5. edit cosmo-mezzanine-example/mezaanine-app/definitions/mezzanine_types.yaml so that:

    • The chef configuration + key matches your chef server configuration
    • the user property under worker_config matches the user of the image you picked in nova_config
  6. 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
  1. 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 that knife commands work properly from within the repository directory. Then, execute ./cleanup.sh from your local machine.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published