diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-02-13 11:55:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 11:55:22 -0500 |
commit | 5780b4a0df57af000ed4b357a85a394f2ce99a57 (patch) | |
tree | a4f6b37423446ca2ba8cf83017f0429a0474dd04 /roles/lib_openshift/src/doc | |
parent | 97a7b64a370514759b22229d72aa3f1f85d46e17 (diff) | |
parent | 45c57201d4601d24e6131bf80800cb7f49d21af7 (diff) | |
download | openshift-5780b4a0df57af000ed4b357a85a394f2ce99a57.tar.gz openshift-5780b4a0df57af000ed4b357a85a394f2ce99a57.tar.bz2 openshift-5780b4a0df57af000ed4b357a85a394f2ce99a57.tar.xz openshift-5780b4a0df57af000ed4b357a85a394f2ce99a57.zip |
Merge pull request #3299 from kwoodson/oc_env
Adding oc_env to lib_openshift.
Diffstat (limited to 'roles/lib_openshift/src/doc')
-rw-r--r-- | roles/lib_openshift/src/doc/env | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/doc/env b/roles/lib_openshift/src/doc/env new file mode 100644 index 000000000..36edcd211 --- /dev/null +++ b/roles/lib_openshift/src/doc/env @@ -0,0 +1,83 @@ +# flake8: noqa +# pylint: skip-file + +DOCUMENTATION = ''' +--- +module: oc_env +short_description: Modify, and idempotently manage openshift environment variables on pods, deploymentconfigs, and replication controllers. +description: + - Modify openshift environment variables programmatically. +options: + state: + description: + - Supported states, present, absent, list + - present - will ensure object is created or updated to the value specified + - list - will return a list of environment variables + - absent - will remove the environment varibale from the object + required: False + default: present + choices: ["present", 'absent', 'list'] + aliases: [] + kubeconfig: + description: + - The path for the kubeconfig file to use for authentication + required: false + default: /etc/origin/master/admin.kubeconfig + aliases: [] + debug: + description: + - Turn on debug output. + required: false + default: False + aliases: [] + name: + description: + - Name of the object that is being queried. + required: false + default: None + aliases: [] + namespace: + description: + - The namespace where the object lives. + required: false + default: str + aliases: [] + kind: + description: + - The kind attribute of the object. + required: False + default: dc + choices: + - rc + - dc + - pods + aliases: [] + env_vars: + description: + - The environment variables to insert. The format is a dict of value pairs. + - e.g. {key1: value1, key2: value2}) + required: False + default: None + aliases: [] +author: +- "Kenny Woodson <kwoodson@redhat.com>" +extends_documentation_fragment: [] +''' + +EXAMPLES = ''' +- name: query a list of env vars on dc + oc_env: + kind: dc + name: myawesomedc + namespace: phpapp + +- name: Set the following variables. + oc_env: + kind: dc + name: myawesomedc + namespace: phpapp + env_vars: + SUPER_TURBO_MODE: 'true' + ENABLE_PORTS: 'false' + SERVICE_PORT: 9999 +''' |