-
-
Save wacko/5677809 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository ppa:juju/pkgs | |
sudo apt-get update | |
sudo apt-get -y install lxc apt-cacher-ng libzookeeper-java zookeeper juju git | |
# create a SSH authorized/public key | |
ssh-keygen -t rsa | |
# set AWS credentials | |
export AWS_ACCESS_KEY_ID=XXXXXXXX | |
export AWS_SECRET_ACCESS_KEY=YYYYYYYY | |
# edit `~/.juju/environments.yaml` (if it doesn't exists, run `juju bootstrap` to create it and ignore the error you'll get) | |
# add `type: local` and `data-dir` | |
environments: | |
cf-test: | |
type: local | |
control-bucket: juju-a14dfae3830142d9ac23c499315c2785998 | |
admin-secret: 6608267bbd6b447b8c90934167b1a294998 | |
data-dir: /home/your_user/some_dir | |
default-series: precise | |
access-key: XXXXXXXX | |
secret-key: YYYYYYYY | |
juju bootstrap | |
juju status # => running |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For local deployment:
To deploy on AWS:
Or you can create two different environments on the same file (
cf-local
&cf-amazon
) and set the environment as an argument: