OpenShift Merge Robot c9ceb5f69c Merge pull request #8576 from spolti/RHPAM-859 %!s(int64=6) %!d(string=hai) anos
..
defaults 0ba7d01c3b Use consistent image references and split out node sync %!s(int64=7) %!d(string=hai) anos
files c9ceb5f69c Merge pull request #8576 from spolti/RHPAM-859 %!s(int64=6) %!d(string=hai) anos
meta 3a86475473 Ensure openshift_client_binary is set %!s(int64=7) %!d(string=hai) anos
tasks 4b06eaf83e Chmod temp dirs created on localhost %!s(int64=7) %!d(string=hai) anos
README.md 4b8f66c37b Cleanup old deployment types %!s(int64=7) %!d(string=hai) anos
examples-sync.sh f84ef61fe3 [RHPAM-859] - Include RHPAM templates in OpenShift release %!s(int64=6) %!d(string=hai) anos

README.md

OpenShift Examples

Installs example image streams, db-templates, and quickstart-templates by copying examples from this module to your first master and importing them with oc create -n into the openshift namespace

The examples-sync.sh script can be used to pull the latest content from github and stage it for updating the ansible repo. This script is not used directly by ansible.

Requirements

Facts

Name Default Value Description
openshift_install_examples true Runs the role with the below variables

Role Variables

Name Default value
openshift_examples_load_centos true when openshift_deployment_type not 'openshift-enterprise' Load centos image streams
openshift_examples_load_rhel true if openshift_deployment_type is 'openshift-enterprise' Load rhel image streams
openshift_examples_load_db_templates true Loads database templates
openshift_examples_load_quickstarts true Loads quickstarts ie: nodejs, rails, etc
openshift_examples_load_xpaas false Loads xpass streams and templates

Dependencies

Example Playbook

TODO

Currently we use oc create -f against various files and we accept non zero return code as a success if (and only if) stderr also contains the string 'already exists'. This means that if one object in the file exists already but others fail to create you won't be aware of the failure. This also means that we do not currently support updating existing objects.

We should add the ability to compare existing image streams against those we're being asked to load and update if necessary.

License

Apache License, Version 2.0

Author Information

Scott Dodson (sdodson@redhat.com)