summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
Commit message (Collapse)AuthorAgeFilesLines
* Add docker package for container-engine installSteve Milner2017-05-141-1/+1
| | | | | The package is required so that openshift_facts is able to use the docker client to gain information on the versions.
* Merge pull request #3969 from jarrpa/glusterfs-registry-tooOpenShift Bot2017-05-101-1/+3
|\ | | | | Merged by openshift-bot
| * GlusterFS: Allow swapping an existing registry's backend storageJose A. Rivera2017-05-041-1/+3
| | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | Remove vim configuration from Python filesRodolfo Carvalho2017-05-091-1/+0
| | | | | | | | | | | | | | In a project where contributors are free to use whatever editor they want and we have linting tools that verify the proper formatting of Python files, it should not be required to have a vim-specific line in Python files.
* | Fix 1448368, and some other minors issuesGan Huang2017-05-051-5/+4
|/
* Merge pull request #4049 from ashcrow/system-container-dockerOpenShift Bot2017-05-031-1/+9
|\ | | | | Merged by openshift-bot
| * System container dockerSteve Milner2017-05-031-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows for the use of either the traditional package install of docker OR a system container install of docker. Two new inventory options, openshift_docker_use_system_container and openshift_docker_systemcontainer_image_registry_override, have been added which are be used to install with a system container. By default this option is commented out. One new fact has been added: - docker.service_name: docker by default, container-engine-docker for system container
* | Refactor system fact gathering to avoid dictionary size change during iteration.Andrew Butcher2017-05-021-3/+5
|/
* Standardize all Origin versioning on 3.6Russell Teague2017-04-251-6/+7
|
* Allow for GlusterFS to provide registry storageJose A. Rivera2017-04-101-0/+4
| | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* openshift_facts: Allow examples_content_version to be set to v1.6Jose A. Rivera2017-04-031-1/+3
| | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* Add calico.Dan Osborne2017-03-231-0/+19
|
* Use six from ansible.module_utils for remote hostsJason DeTiberus2017-03-091-2/+2
|
* Preserve order of Docker registriesEric Mountain2017-03-071-2/+7
| | | | | | List of additional/blocked/insecure Docker registries was being converted to a set, thereby dropping the original order. Fixed to preserve order of the registries (this allows prioritising registries).
* Merge pull request #3393 from srampal/contivScott Dodson2017-03-011-0/+19
|\ | | | | Pull request for Contiv Ansible code integration into Openshift Ansible
| * Combined (squashed) commit for all changes related to adding Contiv support ↵Sanjeev Rampal2017-02-271-0/+19
| | | | | | | | into Openshift Ansible. This is the first (beta) release of Contiv with Openshift and is only supported for Openshift Origin + Bare metal deployments at the time of this commit. Please refer to the Openshift and Contiv official documentation for details of the level of support for different features and modes of operation.
* | Prepare for origin moving to OCP version schemeClayton Coleman2017-02-231-1/+1
| | | | | | | | | | | | Origin 1.6 and future releases will be versioned as Origin 3.6+. This unifies a point of inconsistency and brings Origin in line with the full release history. Update version numbers to match that 3.x is preferred.
* | openshift_facts: handle 'latest' versionGiuseppe Scrivano2017-02-201-1/+1
|/ | | | | | | | do not attempt to compare the version using LooseVersion when 'latest' is used. The case openshift_version == None already sets to use the last version, so simply reuse that. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Fix Bug 1419654 Remove legacy config_base fallback to /etc/openshiftScott Dodson2017-02-131-19/+5
| | | | | | | | If a host had /etc/openshift but not /etc/origin we were setting the config_base to /etc/openshift in some places but not all. This code was transitional in order to migrate between 3.0 and 3.1. Given that current playbooks are only supported when moving from the previous version to current version this should no longer be necessary.
* Provisioning of nfs share and PV for logging opsErez Freiberger2017-02-111-0/+19
|
* atomic-openshift: install as a system containerGiuseppe Scrivano2017-02-101-0/+3
| | | | | | | | | | | | | | | Use use_system_containers=true in the inventory file alternatively you can select each component as: use_openvswitch_system_container=true use_node_system_container=true use_master_system_container=true system_images_registry holds the registry from where to fetch system containers. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Support latest for containerized versionGiuseppe Scrivano2017-02-041-1/+2
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Change default docker log driver from json-file to journald.Andrew Butcher2017-02-021-1/+1
|
* Set default GCE hostname to shost instance name.Andrew Butcher2017-01-311-3/+3
|
* Merge pull request #3194 from mtnbikenc/upgrade-3_5-forkRussell Teague2017-01-311-3/+6
|\ | | | | Create v3_5 upgrade playbooks
| * Create v3_5 upgrade playbooksRussell Teague2017-01-301-3/+6
| |
* | GCE deployment fails due to invalid lookupClayton Coleman2017-01-301-1/+1
|/ | | | | Data is only available under ['instance'] and split was in the wrong order. This deploys against GCE for me.
* Correct usage of draining nodesRussell Teague2017-01-261-15/+0
|
* Comma separate no_proxy host list in openshift_facts so that it appears as a ↵Andrew Butcher2017-01-251-1/+1
| | | | string everywhere it is used.
* Remove master_count restriction.Andrew Butcher2017-01-251-9/+1
|
* override nodename for gce with cloudproviderJason DeTiberus2017-01-241-0/+2
|
* Clean up pylint for delete_empty_keys.Andrew Butcher2017-01-241-6/+23
|
* do not set empty proxy env variable defaultsBen Parees2017-01-241-0/+12
|
* Merge pull request #3086 from bparees/build_nodesScott Dodson2017-01-171-15/+49
|\ | | | | add configuration for build default+overrides settings
| * add configuration for build default+overrides settingsBen Parees2017-01-161-15/+49
| |
* | Catch DBus exceptions on class initializationRodolfo Carvalho2017-01-121-3/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | I came across this: Traceback (most recent call last): File "/tmp/ansible_BhXpTE/ansible_module_openshift_facts.py", line 2409, in <module> main() File "/tmp/ansible_BhXpTE/ansible_module_openshift_facts.py", line 2396, in main protected_facts_to_overwrite) File "/tmp/ansible_BhXpTE/ansible_module_openshift_facts.py", line 1855, in __init__ protected_facts_to_overwrite) File "/tmp/ansible_BhXpTE/ansible_module_openshift_facts.py", line 1892, in generate_facts defaults = self.get_defaults(roles, deployment_type, deployment_subtype) File "/tmp/ansible_BhXpTE/ansible_module_openshift_facts.py", line 1989, in get_defaults version_info = get_docker_version_info() File "/tmp/ansible_BhXpTE/ansible_module_openshift_facts.py", line 1290, in get_docker_version_info if is_service_running('docker'): File "/tmp/ansible_BhXpTE/ansible_module_openshift_facts.py", line 1249, in is_service_running bus = SystemBus() File "/usr/lib64/python2.7/site-packages/dbus/_dbus.py", line 194, in __new__ private=private) File "/usr/lib64/python2.7/site-packages/dbus/_dbus.py", line 100, in __new__ bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop) File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 122, in __new__ bus = cls._new_for_bus(address_or_type, mainloop=mainloop) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
* Add a fact to select --evacuate or --drain based on your OCP versionTim Bielawa2017-01-111-0/+15
| | | | Closes #3070
* Merge pull request #3007 from detiber/toxificationScott Dodson2017-01-101-14/+7
|\ | | | | More Toxification
| * More toxificationJason DeTiberus2017-01-101-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | - Move pylint tests to tox - Move yamllint tests to tox - Create separate tox config (and setup.py) for root - bump ansible requirement - unify pylint config - add docs - remove git directory containing old testing tools - install python-six if not present for openshift-facts - add python-six as a dependency for openshift-ansible-utils
* | Workaround for dnf+docker version race conditionSteve Milner2017-01-101-0/+12
|/ | | | | | | | | | | | In some versions of dnf the rpm database can require maintenance after usage. Unfortunately, this trips up get_version_output in the openshift_facts library as the maintenance may interrupt the STDOUT stream. This makes the resulting data returned from get_version_output malformed and unparsable. This change adds an rpm --rebuilddb command before requesting docker version output when the ansible package manager is dnf. This causes the STDOUT maintenance messages to no longer interrupt the expected yaml stream as well as releases locks in the rpm database.
* Add future versions to openshift_factsClayton Coleman2017-01-041-0/+8
|
* python3 support, add tox for better local testing against multiple python ↵Jason DeTiberus2016-12-201-13/+14
| | | | versions
* Fix access_modes initializationLuis Fernandez Alvarez2016-12-131-3/+9
|
* Switch back to using etcd rather than etcd3Scott Dodson2016-12-061-3/+3
|
* Conditionalize master config update for admission_plugin_config.Andrew Butcher2016-12-051-2/+2
|
* Cleanup ovs file and restart docker on every upgrade.Devan Goodwin2016-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | In 3.3 one of our services lays down a systemd drop-in for configuring Docker networking to use lbr0. In 3.4, this has been changed but the file must be cleaned up manually by us. However, after removing the file docker requires a restart. This had big implications particularly in containerized environments where upgrade is a very fragile series of upgrading and service restarts. To avoid double docker restarts, and thus double service restarts in containerized environments, this change does the following: - Skip restart during docker upgrade, if it is required. We will restart on our own later. - Skip containerized service restarts when we upgrade the services themselves. - Clean shutdown of all containerized services. - Restart Docker. (always, previously this only happened if it needed an upgrade) - Ensure all containerized services are restarted. - Restart rpm node services. (always) - Mark node schedulable again. At the end of this process, docker0 should be back on the system.
* refactor handling of scheduler defaultsJason DeTiberus2016-11-291-32/+16
|
* update tests and flake8/pylint fixesJason DeTiberus2016-11-291-73/+117
|
* Merge pull request #2842 from mscherer/check_dbus_moduleScott Dodson2016-11-281-2/+10
|\ | | | | Verify the presence of dbus python binding
| * Verify the presence of dbus python bindingMichael Scherer2016-11-231-2/+10
| | | | | | | | | | | | While the proper fix is to have it installed by default, this commit will also permit to have a better error message in the case the module is not present (as running on python 3)