|
@@ -24,6 +24,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
'''
|
|
|
OpenShiftCLI class that wraps the oc commands in a subprocess
|
|
|
'''
|
|
@@ -40,6 +42,10 @@ import subprocess
|
|
|
import ruamel.yaml as yaml
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
DOCUMENTATION = '''
|
|
|
---
|
|
|
module: oc_route
|
|
@@ -157,6 +163,10 @@ EXAMPLES = '''
|
|
|
tls_termination: reencrypt
|
|
|
run_once: true
|
|
|
'''
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -721,6 +731,10 @@ class Yedit(object):
|
|
|
'state': "present"}
|
|
|
|
|
|
return {'failed': True, 'msg': 'Unkown state passed'}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1241,6 +1255,10 @@ class OpenShiftCLIConfig(object):
|
|
|
|
|
|
return rval
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1363,6 +1381,10 @@ class Route(Yedit):
|
|
|
''' return wildcardPolicy '''
|
|
|
return self.get(Route.wildcard_policy)
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
class OCRoute(OpenShiftCLI):
|
|
@@ -1531,6 +1553,10 @@ class OCRoute(OpenShiftCLI):
|
|
|
|
|
|
return {'failed': True, 'msg': "Unknown State passed"}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
def get_cert_data(path, content):
|
|
|
'''get the data for a particular value'''
|
|
@@ -1612,3 +1638,5 @@ def main():
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
main()
|
|
|
+
|
|
|
+
|