/ddbnz-rax

DDB NZ Rackspace environment

Primary LanguageShell

ddbnz-rax

Bootstrap scripts and configurations for creating a seamless, autoscaling cloud environment. Private information such as user logins and API keys has been stripped and replaced with "XXXX"

Steps required to make this work:

  1. Seed the required files with the right information for API Keys, usernames and other variables. The files that need to be seeded are
auth_token.json
bootstrap/cloudinit/default/cloudconfig.yaml
bootstrap/cloudinit/default/userscript.sh
bootstrap/cloudinit/nodejs/cloudconfig.yaml
bootstrap/cloudinit/nodejs/userscript.sh
bootstrap/cloudinit/redis/cloudconfig.yaml
bootstrap/cloudinit/redis/userscript.sh
bootstrap/personality/ddbnz-warehouse
bootstrap/personality/raxrc
nova.boot.sh
  1. Install httpie to make life much easier
  2. To create servers, use the nova.boot.sh script and copy-paste the relevant bits
  3. To modify the Autoscaling groups, first generate a token:
http POST https://identity.api.rackspacecloud.com/v2.0/tokens < auth_token.json
# save token:
export TOKEN=^^token (copy-paste with mouse)
  1. To modify existing things, use the API through httpie:
# Create AS group:
http POST https://syd.autoscale.api.rackspacecloud.com/v1.0/${OS_TENANT_NAME}/groups/ X-Auth-Token:$TOKEN < example.policy.json