summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/doc/configmap
blob: 5ca8292c43f262cea38cfdc684303cbc2fdbc228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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
'''