summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/doc
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2017-01-27 20:39:06 +0000
committerKenny Woodson <kwoodson@redhat.com>2017-02-01 15:08:32 -0500
commitb5de5357042c146a930097d52c3920808af89c42 (patch)
treeb35d132b049f8a9c05e48b98b7603ea7d996455d /roles/lib_openshift/src/doc
parent287282e3a1c36ea2c7bc9eb14e463fd347c7d95a (diff)
downloadopenshift-b5de5357042c146a930097d52c3920808af89c42.tar.gz
openshift-b5de5357042c146a930097d52c3920808af89c42.tar.bz2
openshift-b5de5357042c146a930097d52c3920808af89c42.tar.xz
openshift-b5de5357042c146a930097d52c3920808af89c42.zip
oc_label ansible module
used for adding/removing labels on various OpenShift objects
Diffstat (limited to 'roles/lib_openshift/src/doc')
-rw-r--r--roles/lib_openshift/src/doc/label65
1 files changed, 65 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/doc/label b/roles/lib_openshift/src/doc/label
new file mode 100644
index 000000000..8122bd4b0
--- /dev/null
+++ b/roles/lib_openshift/src/doc/label
@@ -0,0 +1,65 @@
+# flake8: noqa
+# pylint: skip-file
+
+DOCUMENTATION = '''
+---
+module: oc_label
+short_description: Create, modify, and idempotently manage openshift object labels.
+description:
+ - Modify openshift labels programmatically.
+options:
+ state:
+ description:
+ - State represents whether to create, modify, delete, or list
+ required: true
+ default: present
+ choices: ["present", "absent", "list", "add"]
+ 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: []
+ kind:
+ description:
+ - The kind of object that can be managed.
+ required: false
+ default: None
+ choices:
+ - node
+ - pod
+ aliases: []
+ labels:
+ description:
+ - The labels to add to the resource.
+ required: false
+ default: None
+ aliases: []
+ selector:
+ description:
+ - The selector to apply to the query
+ required: false
+ default: None
+ aliases: []
+author:
+- "Joel Diaz <jdiaz@redhat.com>"
+extends_documentation_fragment: []
+'''
+
+EXAMPLES = '''
+- name: Add label to node
+ oc_label:
+ name: ip-172-31-5-23.ec2.internal
+ state: add
+ kind: node
+ labels:
+ - key: logging-infra-fluentd
+ value: 'true'
+'''