forked from openshift/openshift-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openshift#16 from twiest/pr
doc update
- Loading branch information
Showing
3 changed files
with
78 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
openshift-online-ansible | ||
======================== | ||
|
||
This repo houses ansible code used in OpenShift Online. | ||
|
||
Setup | ||
----- | ||
- Install base dependencies: | ||
- Fedora: | ||
``` | ||
yum install ansible rubygem-parseconfig | ||
``` | ||
|
||
- Setup for a specific cloud: | ||
- [AWS](../blob/master/README_AWS.md) | ||
- [GCE](../blob/master/README_GCE.md) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
AWS Setup Instructions | ||
====================== | ||
|
||
Get AWS API credentials | ||
----------------------- | ||
1. [AWS credentials documentation](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html) | ||
|
||
|
||
Create a credentials file | ||
------------------------- | ||
1. Create a credentials file (eg ~/.aws_creds) that looks something like this (variables must have have these exact names). | ||
``` | ||
export AWS_ACCESS_KEY_ID='AKIASTUFF' | ||
export AWS_SECRET_ACCESS_KEY='STUFF' | ||
``` | ||
|
||
1. source this file | ||
``` | ||
source ~/.aws_creds | ||
``` | ||
|
||
1. Note: You must source this file in each shell that you want to run cloud.rb | ||
|
||
|
||
Install Dependencies | ||
-------------------- | ||
1. Ansible requires python-boto for aws operations: | ||
``` | ||
yum install -y ansible python-boto | ||
``` | ||
|
||
|
||
Test The Setup | ||
-------------- | ||
1. cd openshift-online-ansible | ||
1. Try to list all instances: | ||
``` | ||
./cloud.rb aws list | ||
``` |
This file contains 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