Updated properties
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.
Assuming ansible is already installed then you can setup with the following steps:
mkdir ~/apigee-workspacecd ~/apigee-workspacegit clone git@github.com:carlosfrias/apigee-opdk-playbook-setup-ansible.gitcd apigee-opdk-playbook-setup-ansibleansible-playbook setup.yml~/.apigee-secure/license.txtexport ANSIBLE_CONFIG=~/.ansible/configurations/edge-1701-dc1.cfgcd ~/apigee-workspace/apigee-opdk-playbook-workspace/apigee-opdk-playbook-installation-single-regionansible-galaxy install -r install-edge-requirements.ymlansible-playbook install-edge.yml --become --become-method=pbrun --tags=cache,ds,ms,rmp,qs,orgPlease see the provided Cygwin readme for instructions on installing Ansible on Windows.
We use provide a pip requirements file for pip to install Ansible and its dependencies. This requires the installation of pip on your system. Once pip is installed then the provided requirements file will install Ansible and the necessary dependencies on your system.
It may be necessary to configure pip to work with a repository that is internally managed. This can be accomplished by updating the pip.conf file with the url of your managed repository. To accomplish this please follow these steps:
mkdir ~/.pip
touch ~/.pip/pip.conf
vi ~/.pip/pip.conf
[global]
index-url = {{ pip_index_url }}
Please note that the url can be found in the your ~/apigee-workspace/apigee/custom-properties.yml. Please replace as follows:
{{ pip_index_url }} >> "https://private.repository.com/api/pypi/Pypi-remote/simple"
pip install -U pippip install -r ansible-pip-requirements.txtSet up your a workspace at ~/apigee-workspace/ if you already have git and pip installed:
ansible-playbook setup-base.yml
Requirements are declared in the pip requirements file. The requirements are listed as follows:
This playbook will perform the following activities:
The default workspace folders can be modified by updating workspace-folders.yml.
The github repositories that you include can be modified by updating workspace-github-repos.yml
A description of the how the Inventory File should be setup.
This playbook will create the correct folders for you. Folder location can be modified by updating the workspace-folders.yml.
Sample configuration templates for single and multi-dc planets
Sample configuration inventory template files that model the required group semantics used.
Folder to contain credentials, downloaded logs, configs and maintain the edge license.txt file. The setup-apigee-license.yml playbook will take a specified license file and install it in the correct location for your this workspace.
Starter templates for playbooks. Use these playbooks as accelerators for your own.
Workspace containing the roles used by the playbooks.
Configuring of installation credentials is described in the credentials readme.
Ansible can be configured to make use of the above folders by providing an Ansible configuration file. The Ansible configuration file can be generated in using the setup-ansible-config.yml playbook.
ansible-playbook setup-ansible-config.yml