summaryrefslogtreecommitdiff
path: root/roles/lib_utils/library
AgeCommit message (Collapse)Author
2018-02-13Adding ability to yedit json files.Kenny Woodson
2018-01-30Merge pull request #6919 from mfojtik/symlink-kubectl-to-ocOpenShift Merge Robot
Automatic merge from submit-queue. Symlink kubectl to oc instead of openshift Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1538933 @sdodson @juanvallejo FYI
2018-01-30docker_creds: decode docker_config for py3 only if its a stringVadim Rutkovsky
2018-01-29Symlink kubectl to oc instead of openshiftMichal Fojtik
2018-01-24Create swapoff moduleMichael Gugino
Create custome ansible module 'swapoff' to idempotently disable swap in /etc/fstab and also run swapoff.
2018-01-23Merge pull request #6682 from giuseppe/fix-registriesMichael Gugino
CRI-O, Docker: Use images from the CentOS and Fedora registry
2018-01-10Move more plugins to lib_utilsMichael Gugino
This commit continues moving plugins into lib_utils. This commit does not move any plugins for add-on roles such as logging and metrics.
2018-01-10docker_creds: fix python3 exceptionGiuseppe Scrivano
Fixes: Object of type 'bytes' is not JSON serializable Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-01-10docker_creds: fix python3 exceptionGiuseppe Scrivano
Solves this exception with python3: TypeError: a bytes-like object is required, not 'str Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-12-18Relocate filter plugins to lib_utilsMichael Gugino
This commit relocates filter_plugings to lib_utils, changes the namespacing to prevent unintended use of older versions that may be present in filter_plugins/ directory on existing installs. Add lib_utils to meta depends for roles Also consolidate some plugins into lib_utils from various other areas. Update rpm spec, obsolete plugin rpms.
2017-12-11Copying upstream fix for ansible 2.4 ec2_group module.Kenny Woodson
2017-11-14Alternative method to create docker registry auth credsMichael Gugino
Currently, the command 'docker login' is run when using oreg with authentication. On some hosts, such as hosts configured to use system containers, the docker service is not running. 'docker login' will fail without the docker service running. This commit adds a module to idempotently add credentials to the registry credentials file without the use of 'docker login' Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
2017-09-20Returning actual results of yedit query. Empty list was returning empty dict.Kenny Woodson
2017-09-13add retries to repoquery moduleLuke Meyer
2017-08-21First attempt at provisioning.Kenny Woodson
2017-05-13Fix python3 error in repoqueryJeff Peeler
Explicitly convert from bytes to string so that splitting the string is successful. This change works with python 2 as well. Closes #4182
2017-05-12Merge pull request #4065 from ingvagabund/introduce-get-rpm-version-roleJan Chaloupka
Introduce excluder-free rpm version detection role
2017-05-11Extend repoquery command (of lib_utils role) to ignore excludersJan Chaloupka
2017-05-10Fix for yedit custom separatorsMatt Woodson
2017-03-28Fixed a bug in oc_volume.Kenny Woodson
2017-03-28Adding a few more test cases. Fixed a bug when key was empty. Safeguard ↵Kenny Woodson
against yedit module being passed an empty key
2017-03-28Added the ability to do multiple editsKenny Woodson
2017-02-28raise exceptions when walking through object pathJoel Diaz
if we're given path a.b.c and the existing object is: a: b: - item1 raise an exception due to unexpected objects found while traversing the path (ie. b is a list, not a dict) also, add_entry assumes new dicts for each sub element when creating elements besides the final assignment value. doing something like a.b.c[0] = 12 where 'c' doesn't exist raises an exception add test cases to cover: access path that differs from existing object create new objects with an embedded list in the path create new object with a list at the end (define the end list in the passed in 'value' to avoid this exception)
2017-02-22fix up ruamel.yaml/pyyaml no-member lint errorsJason DeTiberus
2017-02-22Removed unrequired no-members from yedit and generated codeSteve Milner
2017-02-19Fix tests on Python 3Rodolfo Carvalho
Unlike in Python 2: - `range` doesn't return a list. - `dict.keys` doesn't return a list.
2017-02-16Pleasing the linting gods.Kenny Woodson
2017-02-16Fixed tests for pyyaml vs ruamel. Added import logic. Fixed safe load.Kenny Woodson
2017-02-16Adding fallback support for pyyaml.Kenny Woodson
2017-02-06Added oc_serviceaccount_secret to lib_openshift.Thomas Wiest
2017-01-31Added repoquery to lib_utils.Thomas Wiest
2017-01-24Generate the artifacts from fragments.Tim Bielawa
2017-01-18Updated the generate.py scripts for tox and virtualenv.Kenny Woodson
2017-01-17Adding oc_edit module to lib_openshift.Kenny Woodson
2017-01-13lib_openshift modules. This is the first one. oc_route.Kenny Woodson
2017-01-11Adding ability to systematically modify yaml from ansible.Kenny Woodson