summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
Commit message (Collapse)AuthorAgeFilesLines
...
* Scaffold out the entire build defaults hashTim Bielawa2017-09-131-2/+4
| | | | | Some functions called later may expect sub-keys to exist which will not with the current default empty-dict.
* Remove openshift-commonMichael Gugino2017-09-061-117/+3
| | | | | | | | | Most of this role's purpose was to set facts. The vast majority of these facts were simply redefining user-supplied variables. This commit also removes various artifacts leftover from previous versions, as well as variables that seem to be entirely unused.
* Remove meta depends from clockMichael Gugino2017-08-291-8/+0
| | | | This role removes openshift_fact meta depends from clock role.
* Add hostname/nodename length checkMichael Gugino2017-08-161-1/+3
| | | | | | | | | OpenShift will not allow nodes to register if the nodename is > 63 chars. This commit verifies that nodename is not set to a potential hostname that is greater than 63 characters. This commit also updates logic to check `openshift_hostname` to check for > 63 chars. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1467790
* Default gte_3_7 to falseScott Dodson2017-08-031-1/+1
|
* Update version checks to tolerate 3.7Steve Kuznetsov2017-08-031-1/+7
| | | | Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
* Refactor openshift_facts BIOS vendor discoveryRussell Teague2017-07-261-5/+1
| | | | | | | | | | | | | In Ansible 2.4, `get_file_content` is moving from ansible.module_utils.facts to ansible.module_utils.facts.utils However, the method is no longer needed as the BIOS vendor fact can be retrieved from a standard Ansible fact, `ansible_system_vendor`. i.e.: "ansible_system_vendor": "Google",
* If proxy in effect, add etcd host IP addresses to NO_PROXY list on mastersTim Bielawa2017-07-211-0/+7
| | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1466783
* Hopefully finally fix the no_proxy settingsTim Bielawa2017-07-191-69/+14
| | | | | | | | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1467776 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1466783 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1472244 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1468424 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1470165 Some of there were 'fixed' before but that commit was merged too soon. This actually fixes the needful.
* Other playbooks maybe expecting this to be at least an empty string. I think ↵Tim Bielawa2017-07-171-0/+1
| | | | they default it to an empty list if its not found.
* Fix NO_PROXY environment variable settingTim Bielawa2017-07-171-32/+68
|
* Only add entries to NO_PROXY settings if a NO_PROXY value is setTim Bielawa2017-07-071-8/+9
| | | | | | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1468424 Incorrect indentation caused base svc/cluster.local/hostname entries to be added to the NO_PROXY settings regardless of if the user was configuring NO_PROXY or not.
* Fix missing service domain .svc in NO_PROXY settingsTim Bielawa2017-07-051-1/+3
| | | | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1467776 Adds the tld '.svc' to the docker NO_PROXY list
* Always convert no_proxy from string into a listScott Dodson2017-07-031-18/+27
| | | | | | | Always add dns_domain, hostname to no_proxy list Fixes BZ1414748 Fixes BZ1414749
* Correct version comparisons to ensure proper evaluationRussell Teague2017-06-291-6/+6
| | | | | | | When a user supplies the openshift_image_tag inventory fact as '3.5', the evaluation of `version >= LooseVersion('3.5.0')` will return False. Changing the evaluation against only the X.X release will properly return True.
* Picking change from sdodsonewolinetz2017-06-231-0/+1
|
* Adding volume fact for etcd for openshift ansible service brokerewolinetz2017-06-231-1/+24
|
* Push to the registry via dnsScott Dodson2017-06-181-0/+1
| | | | | | Configures OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc Adds 'cluster.local' to dns search on nodes via dispatcher script Adds '.svc' to NO_PROXY defaults
* Do not attempt to override openstack nodenameJason DeTiberus2017-06-011-5/+7
| | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1392519
* 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
|