summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixing file write issue.Kenny Woodson2018-01-311-1/+1
|
* Bug 1512793- Fix idempotence issues in ASB deployFabian von Feilitzsch2017-11-281-0/+5
| | | | | | | - Add support for annotations in oc_service - Use oc_service instead of oc_obj - Use oc_pvc instead of oc_obj - Work around lack of idempotency for oc_obj DeploymentConfig
* Merge pull request #5314 from fabianvf/asb-config-updateOpenShift Merge Robot2017-10-042-1/+9
|\ | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Update broker configuration to track current broker Broker configuration has been drifting from this installer, updated configuration and deployment methods a bit to make it work with the new upstream broker. Note: This will not work well when deploying openshift-enterprise, to deploy openshift-enterprise you will need to use an older checkout of openshift-ansible, or specify the upstream broker + catalog and use a registry other than the RHCC. This is because the configuration for the current upstream broker is incompatible with the downstream broker.
| * Update ansible-service-broker config to track latest brokerFabian von Feilitzsch2017-10-022-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | bring ansible service broker up to date with bearer token changes etcd -> 0.0.0.0 add auth information to broker resource in catalog add sandbox role to config simplify defaults add labels to oc_route use new oc_route label field Fix parameter ordering add port back Fix secret syntax
* | lib/base: Allow for empty option valueJose A. Rivera2017-09-291-1/+1
|/ | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* add dnf support to roles/openshift_health_checker/library/aos_version.pyAdam Miller2017-08-161-5/+4
| | | | Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
* Merge pull request #4879 from jcantrill/oc_pvcOpenShift Bot2017-07-281-2/+52
|\ | | | | Merged by openshift-bot
| * add selector and storage class name to oc_pvc moduleJeff Cantrill2017-07-271-2/+52
| |
* | Remove default provisioner.Kenny Woodson2017-07-241-5/+2
|/
* Fixed spacing and lint errors.Kenny Woodson2017-07-171-1/+2
|
* Fixing needs_update comparison. Added a small pause for race conditions. ↵Kenny Woodson2017-07-141-3/+6
| | | | Fixed doc. Fix kind to storageclass
* Adding storageclass support to lib_openshift.Kenny Woodson2017-07-141-0/+72
|
* lib/base: allow for results parsing on non-zero return codeJose A. Rivera2017-06-081-28/+16
| | | | | | | | | | | | On an 'oc get' in particular, the command may return a non-zero error code while still having found valid resources. Thus, we should parse the valid output while still reporting the error. oc_obj.get(), for instance, takes care of determining if the return code should be reset to 0 in some error cases. Also do a bit of logic cleanup and output sanitizing. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* oc_secret: allow for specifying secret typeJose A. Rivera2017-05-311-1/+4
| | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* add support for oc_service for labels, externalIPsRich Megginson2017-05-302-11/+75
| | | | | | | | | | | | Add support for `labels` and `externalIPs` in Services This also adds support for the `labels` parameter of `oadm registry` and `oadm router` to be a `dict` of values. This also converts `labels` dict values in the router and registry classes into a comma delimited list of `key=value` pairs. The list of `--labels` is sorted for consistency in key pair positioning in the output (and for consistency in testing) - otherwise, the order of the list is not guarantee and has actually been observed to be different from run to run.
* lib/base: Allow for more complex template paramsJose A. Rivera2017-05-191-1/+1
| | | | | | | This change allows for the specification of JSON objects like lists as parameters to templates. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* Allow oc_ modules to pass unicode resultsRussell Teague2017-05-031-1/+1
|
* Removing resource version to remove object conflicts caused by race conditions.Kenny Woodson2017-04-211-0/+7
|
* Adding module calls instead of command for idempotency.Kenny Woodson2017-04-191-4/+4
|
* Adding ability to delete by selector.Kenny Woodson2017-04-051-17/+21
|
* Fixed spacing.Kenny Woodson2017-03-291-3/+3
|
* Fixed docs. Fixed add_resource.Kenny Woodson2017-03-292-5/+6
|
* Adding clusterrole to the toolbox.Kenny Woodson2017-03-282-0/+211
|
* Merge pull request #3345 from joelddiaz/oc_userOpenShift Bot2017-03-271-0/+37
|\ | | | | Merged by openshift-bot
| * add oc_user ansible moduleJoel Diaz2017-03-211-0/+37
| | | | | | | | module to manipulate OpenShift users, and assign group membership to users
* | Merge pull request #3698 from kwoodson/oc_pvcOpenShift Bot2017-03-231-0/+167
|\ \ | | | | | | Merged by openshift-bot
| * | Adding a pvc create test case.Kenny Woodson2017-03-201-0/+167
| |/
* | Adding configmap support.Kenny Woodson2017-03-211-1/+1
| |
* | Adding configmap support and adding tests.Kenny Woodson2017-03-211-8/+11
| |
* | Adding oc_volume to lib_openshift.Kenny Woodson2017-03-211-6/+8
|/
* Adding oc_group to lib_openshiftKenny Woodson2017-03-201-0/+36
|
* Fixing variable naming for 35 scoping.Kenny Woodson2017-03-161-3/+3
|
* Removing ordereddict. Replaced with sorted keys.Kenny Woodson2017-03-082-4/+4
|
* Fix to OpenshiftCLIConfig to support an ordereddict. This was breaking test ↵Kenny Woodson2017-03-072-1/+2
| | | | cases.
* Fixed docs. Added check for delete failures. Updated namespace to None.Kenny Woodson2017-03-061-7/+8
|
* Fixing lintersKenny Woodson2017-03-061-0/+2
|
* Adding oc_project to lib_openshift.Kenny Woodson2017-03-061-0/+82
|
* oadm_policy_group/adm_policy_user modulejupierce2017-03-021-0/+218
|
* Merge pull request #3493 from kwoodson/registry_reencyrpt_routeScott Dodson2017-03-012-2/+7
|\ | | | | Adding support for a route with reencrypt and certificates.
| * Modified base debug statements. Fixed oc_secret debug/verbose flag. Added ↵Kenny Woodson2017-02-282-2/+7
| | | | | | | | reencrypt for route.
* | Add 'persistentVolumeClaim' to volume_info typeRussell Teague2017-02-281-4/+5
|/
* [oc_obj] Move namespace argument to end of command.Andrew Butcher2017-02-271-2/+2
|
* Fixed indentationKenny Woodson2017-02-241-1/+1
|
* Adding get_env_var to deploymentconfig.Kenny Woodson2017-02-241-12/+12
|
* Fixed default variables. Added a fix to generated secret in env var.Kenny Woodson2017-02-241-0/+12
|
* Merge pull request #3416 from detiber/combinedTestScott Dodson2017-02-231-5/+34
|\ | | | | lib_openshift - handle cases where oc binary is not in path
| * lib_openshift oc file lookup improvementsJason DeTiberus2017-02-212-14/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move binary file search to separate method called from constructor - Use six.PY3 instaed of sys.version_info - Combine additional paths with the paths from the environment - For py3 pass the combined paths to shutil.which - For py2 explictly search for existance of file from combined paths instead of using distutils.spawn.find_executable and falling back - Use 'oc adm' instead of 'oadm' - Fix generate_validation test issue - fix tests for oc binary location - add tests for file lookup
| * roles/lib_openshift: Handle /usr/local/bin/oc with sudoColin Walters2017-02-212-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | The real changes here are in `src/lib/{base,import}.py` remember, the rest is committed to git rather than built for some reason. This is tested on CentOS AH (python2), I haven't yet tested the Python 3 path here. I tried the suggestion in the PR for using Ansible's `module` but AFAICS that would require passing down the `module` variable pretty far down into this code. This implementation seems OK too. Closes: https://github.com/openshift/openshift-ansible/issues/3410
* | fix up ruamel.yaml/pyyaml no-member lint errorsJason DeTiberus2017-02-222-2/+0
| |
* | Removed unrequired no-members from yedit and generated codeSteve Milner2017-02-221-0/+2
|/