summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/library
Commit message (Collapse)AuthorAgeFilesLines
* Adding ability to yedit json files.Kenny Woodson2018-02-131-7/+19
|
* Merge pull request #6919 from mfojtik/symlink-kubectl-to-ocOpenShift Merge Robot2018-01-301-1/+1
|\ | | | | | | | | | | | | | | | | 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
| * Symlink kubectl to oc instead of openshiftMichal Fojtik2018-01-291-1/+1
| |
* | docker_creds: decode docker_config for py3 only if its a stringVadim Rutkovsky2018-01-301-1/+3
| |
* | Create swapoff moduleMichael Gugino2018-01-241-0/+137
| | | | | | | | | | Create custome ansible module 'swapoff' to idempotently disable swap in /etc/fstab and also run swapoff.
* | Merge pull request #6682 from giuseppe/fix-registriesMichael Gugino2018-01-231-2/+2
|\ \ | |/ |/| CRI-O, Docker: Use images from the CentOS and Fedora registry
| * docker_creds: fix python3 exceptionGiuseppe Scrivano2018-01-101-1/+1
| | | | | | | | | | | | | | | | Fixes: Object of type 'bytes' is not JSON serializable Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
| * docker_creds: fix python3 exceptionGiuseppe Scrivano2018-01-101-1/+1
| | | | | | | | | | | | | | | | Solves this exception with python3: TypeError: a bytes-like object is required, not 'str Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* | Move more plugins to lib_utilsMichael Gugino2018-01-103-0/+1318
|/ | | | | | | This commit continues moving plugins into lib_utils. This commit does not move any plugins for add-on roles such as logging and metrics.
* Relocate filter plugins to lib_utilsMichael Gugino2017-12-184-0/+560
| | | | | | | | | | | | | | 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.
* Copying upstream fix for ansible 2.4 ec2_group module.Kenny Woodson2017-12-111-0/+903
|
* Alternative method to create docker registry auth credsMichael Gugino2017-11-141-0/+207
| | | | | | | | | | | | | | | 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
* Returning actual results of yedit query. Empty list was returning empty dict.Kenny Woodson2017-09-201-1/+1
|
* add retries to repoquery moduleLuke Meyer2017-09-132-6/+13
|
* First attempt at provisioning.Kenny Woodson2017-08-212-0/+486
|
* Fix python3 error in repoqueryJeff Peeler2017-05-131-1/+1
| | | | | | | Explicitly convert from bytes to string so that splitting the string is successful. This change works with python 2 as well. Closes #4182
* Merge pull request #4065 from ingvagabund/introduce-get-rpm-version-roleJan Chaloupka2017-05-122-2/+29
|\ | | | | Introduce excluder-free rpm version detection role
| * Extend repoquery command (of lib_utils role) to ignore excludersJan Chaloupka2017-05-112-2/+29
| |
* | Fix for yedit custom separatorsMatt Woodson2017-05-101-1/+1
|/
* Fixed a bug in oc_volume.Kenny Woodson2017-03-281-21/+38
|
* Adding a few more test cases. Fixed a bug when key was empty. Safeguard ↵Kenny Woodson2017-03-281-9/+22
| | | | against yedit module being passed an empty key
* Added the ability to do multiple editsKenny Woodson2017-03-281-55/+106
|
* raise exceptions when walking through object pathJoel Diaz2017-02-281-2/+9
| | | | | | | | | | | | | | | | 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)
* fix up ruamel.yaml/pyyaml no-member lint errorsJason DeTiberus2017-02-222-38/+42
|
* Removed unrequired no-members from yedit and generated codeSteve Milner2017-02-221-5/+20
|
* Fix tests on Python 3Rodolfo Carvalho2017-02-191-1/+1
| | | | | | Unlike in Python 2: - `range` doesn't return a list. - `dict.keys` doesn't return a list.
* Pleasing the linting gods.Kenny Woodson2017-02-162-7/+13
|
* Fixed tests for pyyaml vs ruamel. Added import logic. Fixed safe load.Kenny Woodson2017-02-161-2/+2
|
* Adding fallback support for pyyaml.Kenny Woodson2017-02-162-17/+44
|
* Added oc_serviceaccount_secret to lib_openshift.Thomas Wiest2017-02-061-8/+15
|
* Added repoquery to lib_utils.Thomas Wiest2017-01-312-8/+618
|
* Generate the artifacts from fragments.Tim Bielawa2017-01-241-0/+16
|
* Updated the generate.py scripts for tox and virtualenv.Kenny Woodson2017-01-181-0/+6
|
* Adding oc_edit module to lib_openshift.Kenny Woodson2017-01-171-0/+4
|
* lib_openshift modules. This is the first one. oc_route.Kenny Woodson2017-01-131-55/+53
|
* Adding ability to systematically modify yaml from ansible.Kenny Woodson2017-01-111-0/+766