AllPlayers Charms for Juju
Shell Perl
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead of christianchristensen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
precise
scripts
templates
.gitignore
README.md

README.md

Test Charms for deployment across different environments {EC2, MAAS} using Juju

Some links of note:

Provisioning AllPlayers stack as a single instance

(sandbox) juju deploy --constraints "mem=4G" --repository=. local:precise/sandbox

Provisioning AllPlayers stack as interconnected units

(staging / prod)

juju deploy --constraints "instance-type=m1.large" --repository=. local:precise/frontend
juju deploy --constraints "instance-type=m2.2xlarge" --repository=. local:precise/www
# juju deploy --constraints "instance-type=m2.2xlarge" --repository=. local:precise/www
juju deploy --constraints "instance-type=hi1.4xlarge" --repository=. local:precise/db-master

juju add-relation frontend www
juju add-relation www db-master
juju expose frontend

Development

Match charm name to enforcer role.

Puppet local dev copy to charms: ./scripts/mv_puppet_to_charms.sh Templates for hooks shared across all charms: ./scripts/cp_hook_templates.sh

TODO: Puppet $name needs to be replaced with something explicit?

Template replacement vars

  • ENVIRONMENTNAME :: JUJU_ENV_UUID
  • base_url:.* :: unit-get private-address

Juju environment definition (~/.juju/environments.yaml)

default: apci-dev
environments:
  apci-dev:
    type: ec2
    access-key: <ACCESS KEY>
    secret-key: <SECRET KEY>
    control-bucket: juju-0b294901ace34a4192b0ed8bdeadbeef
    admin-secret: bcec21eaf5da472e9657e472deadbeef
    ssl-hostname-verification: true
    juju-origin: ppa
    default-series: precise