Added new repos
1 file changed
tree: 31b0db0b9f339b953ef14c3181d69a2eef24ffce
  1. configuration/
  2. resources/
  3. .gitignore
  4. control-server.yml
  5. inventory.md
  6. LICENSE
  7. pip-requirements.txt
  8. README.md
  9. setup-apigee-license.yml
  10. setup-base.yml
  11. setup-ec2.yml
  12. setup.yml
README.md

Apigee OPDK Ansible Setup Playbook

The purpose of this project is to help configure Ansible for the use of Apigee OPDK roles. The Apigee OPDK roles follow conventions in the naming of files and where those files are located. This project sets up those locations and performs the git clone to setup your environment with the templates that should be customized for your use.

Requirements

  • Ansible 2.1 or greater
  • Linux control server version 6 or greater
  • Access to github.com

Overview: Minimum Setup

This playbook will perform the following activities:

  1. Scaffold required folders

  2. Git clone of Ansible configuration file templates

  3. Git clone of inventory file templates. [Updating your Inventory File] (inventory.md)

  4. Create credentials.yml template file

Inventory Semantics

A full description of inventory semantics.

Scaffold required folders

This playbook will create the following folders for you:

  • ~/.ansible/configurations

  • ~/.ansible/inventory

  • ~/.apigee

Usage: Minimum Setup

Set up your environment for working with Apigee OPDK roles with:

ansible-playbook setup-base.yml

Overview: EC2 Managed Setup

The minimum setup must be completed prior to configuring the EC2 managed setup. The EC2 managed setup will update perform the following activities:

  • Update ~/.bashrc to export AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY values you provide.
  • Update ~/.bashrc to export EC2_INI_PATH.
  • Create a template .boto file and place it your home directory
  • Create a template ec2.ini and place it in your ~/.ansible folders
  • Provide a copy of the ec2.py script that must be included with any AWS managed inventory file.

Usage: Setup for EC2 Managed Images

Please follow the usage instructions:

ansible-playbook setup-ec2.yml \
    -e secure_aws_region={{ secure_aws_region }} \
    -e aws_access_key_id={{ aws_access_key_id }} \
    -e aws_secret_access_key={{ aws_secret_access_key }}

Variables Used

Variable NameDescription
secure_aws_regionPlease provide your ec2_region.
aws_access_key_idPlease provide your AWS Access Key ID.
aws_secret_access_keyPlease provide your AWS Secret Access Key.