summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master_facts/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Move more plugins to lib_utilsMichael Gugino2018-01-101-0/+3
| | | | | | | This commit continues moving plugins into lib_utils. This commit does not move any plugins for add-on roles such as logging and metrics.
* Remove oauth_template bits from openshift_factsMichael Gugino2017-12-211-2/+0
| | | | | This commit moves some deprecated variable logic outside of openshift_facts and into role defaults.
* Merge pull request #6469 from mgugino-upstream-stage/plugin-consolidateScott Dodson2017-12-191-1/+1
|\ | | | | Plugin consolidate
| * Relocate filter plugins to lib_utilsMichael Gugino2017-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 some small items from openshift_factsMichael Gugino2017-12-181-1/+0
|/ | | | | Remove some small items from openshift_facts that don't need to be there.
* Remove unneeded embedded etcd logicMichael Gugino2017-12-081-1/+0
| | | | | Removing some remaining embedded etcd facts except for the migration plays.
* Remove all references to pacemaker (pcs, pcsd) and ↵Andrew Butcher2017-12-051-1/+0
| | | | | | | openshift.master.cluster_method. With pacemaker removed there is no longer a need for openshift.master.cluster_method. We only have one option.
* Fix hosted varsMichael Gugino2017-12-051-8/+2
| | | | | | Remove hosted vars from openshift_facts. The current pattern is causing a bunch of undesired sideffects.
* Remove openshift_facts project_cfg_factsMichael Gugino2017-11-281-6/+0
| | | | This simplifies some variable logic.
* Remove dns_port factMichael Gugino2017-11-281-2/+0
| | | | Simply dns_port variable by remove from openshift_facts.
* Remove unused osm_controller_lease_ttlMichael Gugino2017-10-311-1/+0
| | | | | | | This variable is no longer used and references should be removed. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1507449
* Fix broken debug_levelMichael Gugino2017-10-111-1/+0
| | | | | | | | | | | | | | | | | | | | Currently, debug_level is documented as a way to change the debug output level for both masters and nodes. debug_level does not currently have any effect. This commit removes debug_level from openshift_facts and properly sets openshift_master_debug_level and openshift_node_debug_level to the value of debug_level specified in the inventory. This commit also reorganizes some set_fact tasks needed during master upgrades to put all work-around set-facts for undefined variables in one place, allowing for easier cleanup in the future. This includes an entry for openshift_master_debug_level. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1500164
* Remove oo_option facts.Andrew Butcher2017-09-291-1/+0
|
* Make native clustering the default everywhereClayton Coleman2017-08-081-1/+1
|
* allow to configure oreg_url specifically for node or master. refs #4233Tobias Brunner2017-05-191-1/+1
| | | | | | | | | This commit allows to specify imageConfig.format specifically for master or for nodes. One use case of this could be if you want to use customer builder images. In this case imageConfig.format only needs to be changed in the master-config.yml but not in the node-config.yml.
* Default image policy on new clusters to onClayton Coleman2017-05-151-1/+1
| | | | Will allow for default image resolution to be used.
* Don't double quote when conditionsScott Dodson2017-05-011-2/+2
|
* Remove jinja template delimeters from when conditionsScott Dodson2017-05-011-2/+2
| | | | | | In ansible 2.3 "[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ g_glusterfs_hosts is not defined }}"
* Ansible Lint cleanup and making filter/lookup plugins used by ↵Jason DeTiberus2017-02-141-6/+12
| | | | openshift_master_facts available within the role
* Set metrics url even if metrics_deploy is falseAlberto Peon2017-01-201-3/+2
|
* YAML LintingRussell Teague2016-12-121-2/+2
| | | | | * Added checks to make ci for yaml linting * Modified y(a)ml files to pass lint checks
* Merge pull request #2902 from dgoodwin/fix-metrics-urlScott Dodson2016-12-081-2/+28
|\ | | | | Fix metricsPublicURL only being set correctly on first master.
| * Fix metricsPublicURL only being set correctly on first master.Devan Goodwin2016-12-011-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem was caused by facts not being set for that master. To fix this patch cleans up the calculation of metricsPublicURL in general. Because this value is used in openshift_master to template into the master config file, we now define these facts more clearly in openshift_master_facts, and add a dependency on this to openshift_metrics. The calculation of default sub-domain is also changed to remove it from system facts (as neither of these are facts about the system) and instead use plain variables.
* | Update scheduler predicate/priorities varsJason DeTiberus2016-12-011-18/+10
|/ | | | | | - Introduce additional variables for current scheduler config and default values to better determine if the values we are getting are user-defined, coming from config or are the default values.
* refactor handling of scheduler defaultsJason DeTiberus2016-11-291-2/+35
|
* Merge kube_admission_plugin_config with admission_plugin_configSamuel Munilla2016-11-221-3/+1
| | | | | | | | Move the values in kube_admission_plugin_config up one level per the new format from 1.3: "The kubernetesMasterConfig.admissionConfig.pluginConfig should be moved and merged into admissionConfig.pluginConfig."
* support 3rd party schedulerenlinxu2016-10-201-0/+1
|
* Remove openshift_master_metrics_public_urlAndrew Butcher2016-08-311-1/+0
|
* Change how we set master's metricsPublicURLScott Dodson2016-08-301-0/+1
|
* [master] add support for setting auditConfigJason DeTiberus2016-07-131-0/+1
|
* Various hosted component improvementsAndrew Butcher2016-07-071-1/+0
| | | | | | | | | | | | | * [openshift_projects] Add openshift_projects role * [openshift_hosted] hosted deployments use openshift_hosted_infra_selector if openshift_hosted_<component>_selector is not defined * [openshift_hosted] move openshift_projects, openshift_serviceaccounts and openshift_metrics to dependencies of openshift_hosted * [router] improve router deployment - add router option to force subdomain - add CA to router certificate options * [registry] move registry config into openshift_hosted role - additional registry fixes/tweaks - add s3 storage support for registry * [serviceaccount] fix up serviceaccount creation
* Add per-service environment variables.Andrew Butcher2016-06-131-0/+2
|
* Add flag to manage htpasswd, or not.Tobias Florek2016-06-021-0/+1
| | | | | Setting `openshift_master_manage_htpasswd` falsy will disable managing the htpasswd file. It won't get overwritten/generated.
* Allow overriding servingInfo.maxRequestsInFlight via ↵Andrew Butcher2016-05-131-0/+1
| | | | openshift_master_max_requests_inflight.
* Remove duplicate oauth_template fact.Andrew Butcher2016-04-291-1/+0
|
* Add masterConfig.volumeConfig.dynamicProvisioningEnabledScott Dodson2016-04-261-0/+1
|
* Merge pull request #1726 from detiber/htpasswd_usersJason DeTiberus2016-04-261-0/+4
|\ | | | | Add support for setting identity provider custom values
| * Add support for setting identity provider custom valuesJason DeTiberus2016-04-251-0/+4
| | | | | | | | | | | | | | - htpasswd users - ldap ca file - openid ca file - request_header ca file
* | Fix backward compat for osm_default_subdomainJason DeTiberus2016-04-251-1/+1
|/
* Fix router selector fact migration and match multiple selectors when ↵Andrew Butcher2016-04-201-1/+0
| | | | counting nodes.
* Add openshift_node_dnsmasqScott Dodson2016-04-191-1/+1
|
* Support setting imagePolicyConfig JSON in inventory.Devan Goodwin2016-04-121-0/+1
| | | | | | | | | For flexibility this is another pure JSON field to translate directly to yaml in the master config. Also updated to more safely handle JSON inventory variables as this uncovered a bug with booleans where you end up with a string containing json in your yaml.
* Add support for configuring oauth templates.Devan Goodwin2016-04-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow users who wish to deploy configs with ansible to define templates for oauth screens, and control the alwaysShowProviderSelection setting. There are currently three supported oauth templates, and we have a pre-existing 'oauth_template' variable, but it is assumed to mean you are controlling the 'login' screen, and this is the only one you can configure. To work around this, supporting all current and future templates, introduce a pluralized variable 'oauth_templates', which contains a JSON dict allowing the admin to control any template they wish. If both new and old variables are defined, the old one is ignored. (and can be considered deprecated) Internally the old value will be converted to the new dict, so the template just references one value. Example: openshift_master_oauth_always_show_provider_selection=true openshift_master_oauth_templates={"providerSelection": "provider-selection.html", "error": "oauth-error.html"} Yeilds: oauthConfig: alwaysShowProviderSelection: true templates: error: oauth-error.html providerSelection: provider-selection.html
* Add support for templating master admissionConfig.Devan Goodwin2016-04-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds four new inventory variables for setting sections in "admissionConfig" and "kubernetesMasterConfig.admissionConfig". openshift_master_admission_plugin_order allows configuring the list of origin admission controller plugins to enable and what order to run them in. This must be a JSON formatted list of strings: openshift_master_admission_plugin_order=["RunOnceDuration", "NamespaceLifecycle", "OriginPodNodeEnvironment", "ClusterResourceOverride", "LimitRanger", "ServiceAccount", "SecurityContextConstraint", "ResourceQuota", "SCCExecRestrictions"] openshift_master_kube_admission_plugin_order is identical but for the kubernetes admission controller plugins which appear beneath kubernetesMasterConfig. openshift_master_admission_plugin_config allows setting free-form configuration stanzas that match up with enabled admission controller plugins. This must be a JSON formatted hash: openshift_master_admission_plugin_config={"RunOnceDuration":{"configuration":{"apiVersion":"v1","kind":"RunOnceDurationConfig","activeDeadlineSecondsOverride":3600}},"ClusterResourceOverride":{"configuration":{"apiVersion":"v1","kind":"ClusterResourceOverrideConfig","limitCPUToMemoryPercent":200,"cpuRequestToLimitPercent":6,"memoryRequestToLimitPercent":60}}} openshift_master_kube_admission_plugin_config is the equivalent for kubernetes admission controller plugins. Contains a change to merge_facts to fix issues with modifying inventory variables that contain JSON dicts. If you modified a previously set variable, the result would be a merge of old and new, which is completely wrong in this case. Addded new overwrite_facts to shortcut to just taking the new values. This differs from the pre-existing concept of "protected" in that we're not protecting an old value, we're trashing it and taking the new.
* Allow for overriding scheduler configJason DeTiberus2016-03-311-0/+2
| | | | | | | | | - introduce openshift_master_scheduler_predicates and openshift_master_scheduler_priorities to override the default scheduler predicates and priorities - switch default scheduler priorities to use SelectorSpreadPriority instead of ServiceSpreadingPriority
* Bug 1320829 - Ensure docker installed for factsJason DeTiberus2016-03-311-0/+65
- gather facts requiring docker only if docker is present and running - Update reference to etcd role in playbooks/common/openshift-etcd/config.yml to use openshift_etcd