This repo contains OpenShift Ansible code.
-
Install base dependencies:
- Fedora:
yum install -y ansible rubygem-thor rubygem-parseconfig util-linux
- OSX:
# Install ansible and python 2 brew install ansible python # Required ruby gems gem install thor parseconfig
-
Setup for a specific cloud:
-
Directory Structure:
- cloud.rb - light wrapper around Ansible
- bin/cluster - python script to easily create OpenShift 3 clusters
- filter_plugins/ - custom filters used to manipulate data in Ansible
- inventory/ - houses Ansible dynamic inventory scripts
- lib/ - library components of cloud.rb
- playbooks/ - houses host-type Ansible playbooks (launch, config, destroy, vars)
- roles/ - shareable Ansible tasks