community.kubernetes.openshift – OpenShift inventory source¶
Note
This plugin is part of the community.kubernetes collection (version 1.1.1).
To install it use: ansible-galaxy collection install community.kubernetes
.
To use it in a playbook, specify: community.kubernetes.openshift
.
Synopsis¶
Fetch containers, services and routes for one or more clusters
Groups by cluster name, namespace, namespace_services, namespace_pods, namespace_routes, and labels
Uses openshift.(yml|yaml) YAML configuration file to set parameter values.
Requirements¶
The below requirements are needed on the local controller node that executes this inventory.
python >= 2.7
openshift >= 0.6
PyYAML >= 3.11
Parameters¶
Examples¶
# File must be named openshift.yaml or openshift.yml
# Authenticate with token, and return all pods and services for all namespaces
plugin: community.kubernetes.openshift
connections:
- host: https://192.168.64.4:8443
api_key: xxxxxxxxxxxxxxxx
verify_ssl: false
# Use default config (~/.kube/config) file and active context, and return objects for a specific namespace
plugin: community.kubernetes.openshift
connections:
- namespaces:
- testing
# Use a custom config file, and a specific context.
plugin: community.kubernetes.openshift
connections:
- kubeconfig: /path/to/config
context: 'awx/192-168-64-4:8443/developer'
Authors¶
Chris Houseknecht <@chouseknecht>