summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/doc
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-03-24 12:38:47 -0500
committerGitHub <noreply@github.com>2017-03-24 12:38:47 -0500
commit86d56d1aabdff4a4d828a3f22099640f9769f9f4 (patch)
tree2b64a3dda18e00f8d793220de443abff43933b27 /roles/lib_openshift/src/doc
parent4444a6ff2b1885b35a190e1f5e9a0f3a26ad4dfb (diff)
parent3d484dd5e5ac4a8ba0c4b50baba79d6d7e5bba7e (diff)
downloadopenshift-86d56d1aabdff4a4d828a3f22099640f9769f9f4.tar.gz
openshift-86d56d1aabdff4a4d828a3f22099640f9769f9f4.tar.bz2
openshift-86d56d1aabdff4a4d828a3f22099640f9769f9f4.tar.xz
openshift-86d56d1aabdff4a4d828a3f22099640f9769f9f4.zip
Merge pull request #3721 from kwoodson/oc_configmap
Merged by openshift-bot
Diffstat (limited to 'roles/lib_openshift/src/doc')
-rw-r--r--roles/lib_openshift/src/doc/configmap72
1 files changed, 72 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/doc/configmap b/roles/lib_openshift/src/doc/configmap
new file mode 100644
index 000000000..5ca8292c4
--- /dev/null
+++ b/roles/lib_openshift/src/doc/configmap
@@ -0,0 +1,72 @@
+# flake8: noqa
+# pylint: skip-file
+
+DOCUMENTATION = '''
+---
+module: oc_configmap
+short_description: Modify, and idempotently manage openshift configmaps
+description:
+ - Modify openshift configmaps 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 configmap
+ - absent - will remove the configmap
+ 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: True
+ default: None
+ aliases: []
+ namespace:
+ description:
+ - The namespace where the object lives.
+ required: false
+ default: default
+ aliases: []
+ from_file:
+ description:
+ - A dict of key, value pairs representing the configmap key and the value represents the file path.
+ required: false
+ default: None
+ aliases: []
+ from_literal:
+ description:
+ - A dict of key, value pairs representing the configmap key and the value represents the string content
+ required: false
+ default: None
+ aliases: []
+author:
+- "kenny woodson <kwoodson@redhat.com>"
+extends_documentation_fragment: []
+'''
+
+EXAMPLES = '''
+- name: create group
+ oc_configmap:
+ state: present
+ name: testmap
+ from_file:
+ secret: /path/to/secret
+ from_literal:
+ title: systemadmin
+ register: configout
+'''