# 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:
    - State controls the action that will be taken with resource
    - 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
'''
