summaryrefslogtreecommitdiffstats
path: root/filter_plugins
Commit message (Collapse)AuthorAgeFilesLines
* Relocate filter plugins to lib_utilsMichael Gugino2017-12-182-1021/+0
| | | | | | | | | | | | | | 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.
* Remove openshift_node_facts part 1Michael Gugino2017-12-141-62/+13
| | | | | This commit removes some items from openshift_facts for the openshit_node role.
* container-engine: log-opts is a dictionary in the daemon.json fileGiuseppe Scrivano2017-12-081-0/+8
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Remove unused openshift_env_structures and openshift_envMichael Gugino2017-12-071-21/+0
| | | | This component of openshift_facts is no longer used.
* Fix hosted varsMichael Gugino2017-12-051-225/+0
| | | | | | Remove hosted vars from openshift_facts. The current pattern is causing a bunch of undesired sideffects.
* Removed old version codeMichael Gugino2017-11-141-58/+0
| | | | | | This commit removes any references to versions < 1.5/3.5 We assume the version is always greater than or equal to 1.5/3.5.
* Management Cleanup and Provider IntegrationTim Bielawa2017-10-201-1/+69
| | | | | | | * Add container provider integration * General cleanup * Poll until service fully starts * Add notes on multiple-provider additions
* Fix prometheus role nfsZohar Galor2017-10-161-187/+137
| | | | | | Allow for external or internal nfs. use facts as used for logging and metrics. Update prometheus-alertmanager image to v0.9.1
* Fix hosted selector variable migrationMichael Gugino2017-10-031-5/+0
| | | | | | | | | | | | | | | | Currently, if undefined, openshift_hosted_router_selector and openshift_hosted_registry_selector as set to the value of openshift_hosted_infra_selector. The set_fact logic overrides variable migration inside of oo_filters meant to utilize the deprecated variables openshift_router_selector and openshift_registiry_selector, respectively. This commit corrects the set_fact logic and removes the unused migration from oo_filters. Fixes: https://github.com/openshift/openshift-ansible/issues/5615
* Merge pull request #5384 from joelddiaz/node-fact-filterOpenShift Merge Robot2017-09-231-32/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue move (and rename) get_dns_ip filter into openshift_node_facts Due to recent changes to filter_plugins/openshift_node.py, when trying to run a current version of the openshift_node_facts role on a system with an older version of the openshift-ansible-filter-plugins RPM, the new role will fail. ``` File "/usr/share/ansible_plugins/filter_plugins/openshift_node.py", line 30, in get_dns_ip if bool(hostvars['openshift']['common']['use_dnsmasq']): KeyError: 'use_dnsmasq' ``` It's not possible for us to have our current RPM version (presently openshift-ansible-filter-plugins-3.5.120-1.git.0.c60f69a.el7.noarch) and a newer RPM installed and run both current openshift-ansible code and older checked-out/vendored releases (for older clusters/releases). Since only the openshift_node_facts role uses the get_dns_ip filter, move the functionality into a role-specific filter plugin. In addition, rename the filter plugin to 'node_get_dns_ip' because Ansible is preffering the get_dns_ip from the RPM (ie /usr/share/ansible_plugins/filter_plugins/openshift_node.py) over the role-specific filter plugin of the same name. Ansile prefers the filter plugins in /usr/share/ansible_plugins/filter_plugins/* even when /etc/ansible/ansible.cfg is set to something like: filter_plugins = filter_plugins:/usr/share/ansible_plugins/filter_plugins:filter_plugins <--- yes, 'filter_plugins' before and after /usr/share/ansible_plugins/filter_plugins (ansible 2.3.1.0) (perhaps this is because the /usr/share/ansible/plugins/filter symlink to /usr/share/ansible_plugins/filter_plugins takes precedence over everything???) Renaming the filter plugin function ensures that versions of the openshift_node_facts role that depend on the old implementation can continue to use it through what the older RPM provides, and the new role can use it's role-specific filter plugin without any variable namespace collisions. Lastly, remove filter_plugins/openshift_node.py since it is now self-contained in roles/openshift_node_facts. https://bugzilla.redhat.com/show_bug.cgi?id=1494312
| * move (and rename) get_dns_ip filter into openshift_node_factsJoel Diaz2017-09-121-32/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a combination of unexpected behavior when resolving filter plugins in Ansible and recent changes to filter_plugins/openshift_node.py, when trying to run a current version of the openshift_node_facts role on a system with an older version of the openshift-ansible-filter-plugins RPM, the role will fail. File "/usr/share/ansible_plugins/filter_plugins/openshift_node.py", line 30, in get_dns_ip if bool(hostvars['openshift']['common']['use_dnsmasq']): KeyError: 'use_dnsmasq' It's not possible for us to have our current RPM version (presently openshift-ansible-filter-plugins-3.5.120-1.git.0.c60f69a.el7.noarch) and a newer RPM installed and run both current openshift-ansible code and older checked-out/vendored releases (for older clusters/releases). Since only the openshift_node_facts role uses the get_dns_ip filter, move the functionality into a role-specific filter plugin. In addition, rename the filter plugin to 'node_get_dns_ip' because Ansible is prefering the get_dns_ip from the RPM (ie /usr/share/ansible_plugins/filter_plugins/openshift_node.py) over the role-specific filter plugin of the same name. Ansile prefers the filter plugins in /usr/share/ansible_plugins/filter_plugins/* even when /etc/ansible/ansible.cfg is set to something like: filter_plugins = filter_plugins:/usr/share/ansible_plugins/filter_plugins:filter_plugins <--- yes, 'filter_plugins' before and after /usr/share/ansible_plugins/filter_plugins (ansible 2.3.1.0) Renaming the filter plugin function ensures that roles that depend on the old implementation can continue to use it through what the older RPM provides, and the new role can use it's role-specific filter plugin without any variable namespace colisions. Lastly, remove filter_plugins/openshift_node.py since it is now self-contained in roles/openshift_node_facts.
* | Creating structure to warn for use of deprecated variables and set them in a ↵Eric Wolinetz2017-09-201-85/+231
| | | | | | | | single location before they are no longer honored
* | Cleanup old deployment typesMichael Gugino2017-09-202-5/+3
|/ | | | | | | | | | | Previously, openshift-ansible supported various types of deployments using the variable "openshift_deployment_type" Currently, openshift-ansible only supports two deployment types, "origin" and "openshift-enterprise". This commit removes all logic and references to deprecated deployment types.
* Merge pull request #5208 from mgugino-upstream-stage/remove-openshift_commonOpenShift Bot2017-09-071-12/+1
|\ | | | | Merged by openshift-bot
| * Remove openshift-commonMichael Gugino2017-09-061-12/+1
| | | | | | | | | | | | | | | | | | 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.
* | Create ansible role for deploying prometheus on openshiftZohar Galor2017-09-061-1/+14
|/ | | | | | | | | | | | | | A new role for installing prometheus on openshift. Depends on `openshift_hosted_prometheus_deploy` flag role creates: - prometheus namespace - prometheus clusterrolebinding and service account - pvs for prometheus, alertmanager and alertbuffer for internal nfs - prometheus pod with prometheus behind oauth-proxy, alertmanager and alert-buffer behind oauth-proxy - prometheus and alertmanager configmaps - prometheus and alerts services and direct routes - prometheus, alertmanager and alert-buffer pvcs
* Default an empty list for etcd_to_config if not thereTim Bielawa2017-07-211-4/+4
| | | | | | Also add filter names of filters that failed me for to their error messages so you can figure out which filter threw an exception when you're debugging log files.
* Updating to compare sets instead of sorted listsewolinetz2017-07-171-4/+6
|
* Updating to use oc replace and conditionally update edit and admin rolesewolinetz2017-07-171-1/+15
|
* Making pylint happyewolinetz2017-06-121-1/+1
|
* Allowing openshift_metrics to specify PV selectors and allow way to define ↵ewolinetz2017-05-261-0/+15
| | | | selectors when creating pv
* Remove vim configuration from Python filesRodolfo Carvalho2017-05-093-4/+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.
* Refactor secret generation for python3.Andrew Butcher2017-05-021-2/+2
|
* Integrate GlusterFS into OpenShift installationJose A. Rivera2017-04-101-0/+17
| | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* Merge pull request #3834 from jarrpa/oo_collect-listsOpenShift Bot2017-04-041-14/+38
|\ | | | | Merged by openshift-bot
| * oo_filters: Disable pylint too-many-lines testJose A. Rivera2017-04-031-0/+1
| | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
| * oo_collect: Allow list elements to be lists of dictJose A. Rivera2017-04-031-12/+35
| | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
| * oo_collect: Update comments to show source of failureJose A. Rivera2017-04-031-3/+3
| | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | Support unicode output when dumping yamlRussell Teague2017-04-031-9/+12
|/
* Use oo_version_gte_3_6+ for future versions and treat 1.x origin as legacy. ↵Andrew Butcher2017-03-271-28/+59
| | | | Add tests.
* Add oo_version_gte_X_X_or_Y_Y version comparison filters.Andrew Butcher2017-03-241-0/+98
|
* Use ansible.compat.six where possibleJason DeTiberus2017-03-091-21/+17
|
* Use six from ansible.module_utils for remote hostsJason DeTiberus2017-03-091-1/+1
|
* Use 2 and 3 friendly urlparse in oo_filtersSteve Milner2017-02-231-1/+1
|
* Ansible Lint cleanup and making filter/lookup plugins used by ↵Jason DeTiberus2017-02-141-578/+0
| | | | openshift_master_facts available within the role
* Modify playbooks to use oadm_manage_node moduleRussell Teague2017-02-131-0/+23
|
* Reference class instead of self.__class__ within super constructor to avoid ↵Andrew Butcher2017-02-081-8/+8
| | | | calling self forever.
* Remove legacy router/registry certs and client configs from synchronized ↵Andrew Butcher2017-02-061-7/+8
| | | | master certs.
* Restructure certificate redeploy playbooksAndrew Butcher2017-02-021-4/+4
|
* Make use of AnsibleDumper in openshift_master filters s.t. we can represent ↵Andrew Butcher2017-01-231-1/+5
| | | | AnsibleUnsafeText when dumping yaml.
* Merge pull request #3100 from abutcher/serialsScott Dodson2017-01-181-1/+3
|\ | | | | Serialize cert creation in delegated commands
| * Create individual serving cert and loopback kubeconfig for additional masters.Andrew Butcher2017-01-161-1/+3
| | | | | | | | | | | | Deprecates use of 'create-master-certs' for generating master serving certificate and loopback kubeconfig in order to reference the first master's CA serial file.
* | use pod to generate keystores (#14)Jeff Cantrill2017-01-171-1/+3
| |
* | additional cr fixesJeff Cantrill2017-01-171-0/+10
|/
* filter: Removed unused validation callsSteve Milner2017-01-121-3/+0
| | | | | | The parent class for filters in openshift_master defines a validate method which does nothing. This change removes calls to this method while leaving the validation implementations as is.
* Updated initializer usage in filtersSteve Milner2017-01-121-11/+11
| | | | | | Switched from explicit parent class usage to super(). See: https://docs.python.org/2/library/functions.html#super
* oo_filters: Moved static methods to functionsSteve Milner2017-01-111-896/+898
| | | | | This change moves the static methods into functions in an effort to reduce complexity and improve readability.
* remove old Ops toolingJason DeTiberus2016-12-211-160/+0
|
* python3 support, add tox for better local testing against multiple python ↵Jason DeTiberus2016-12-202-29/+22
| | | | versions
* Fix access_modes initializationLuis Fernandez Alvarez2016-12-131-3/+3
|