~paulcz/charms/precise/elasticsearch/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Luis Arias
  • Date: 2012-05-03 16:37:56 UTC
  • Revision ID: luis@balsamiq.com-20120503163756-fzpp9texw04gwqwi
Finally don't need the cluster peer relation because juju ec2 instances have the appropriate settings to communicate with each other.  Added a region config parameter which defaults to us-east.  Necessary for discovery to work in regions other than us-east.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
CLUSTER_NAME=$(config-get cluster-name)
6
6
ACCESS_KEY=$(config-get access-key)
7
7
SECRET_KEY=$(config-get secret-key)
 
8
REGION=$(config-get region)
8
9
 
9
10
apt-get update && apt-get -y upgrade
10
11
 
48
49
  aws:
49
50
    access_key: $ACCESS_KEY
50
51
    secret_key: $SECRET_KEY
 
52
cloud.aws.region: $REGION
51
53
 
52
54
discovery:
53
55
  type: ec2