summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix openshift_generate_no_proxy_hosts booleanScott Dodson2016-04-271-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | Fixing this also made it obvious that we weren't adding even the current host's name to the no_proxy list. This is absolutely necessary or the master won't be able to reach etcd. So even if they request not to have the list of all hosts and cluster dns zone added we should add the current host's hostname to the no_proxy list.
* | | Merge tag 'openshift-ansible-3.0.88-1'Brenton Leanhardt2016-05-061-2/+2
|\ \ \ | | | | | | | | | | | | Tagging package [openshift-ansible] version [3.0.88-1] in directory [./].
| * | | Fix unsafe boolean handling on use_dnsmasqScott Dodson2016-05-061-2/+2
| |/ /
* | | BuildDefaults are a kube admission controller not an openshift admissionScott Dodson2016-04-281-4/+7
| | | | | | | | | | | | | | | | | | controller Also, improve commenting
* | | Merge pull request #1818 from dgoodwin/safe-yaml-3Jason DeTiberus2016-04-271-1/+6
|\ \ \ | |/ / |/| | Fix inventory properties with raw booleans, again...
| * | Fix inventory properties with raw booleans, again...Devan Goodwin2016-04-271-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix earlier in this affected method was only being applied when merging old and new facts. In a first run on a clean system with no pre-existing openshift facts cache, the yaml safe load was not applied resulting in the same broken master config. (which would fix itself if you just reran the config playbook) Apply the same check on new facts not previously applied on the system.
* | | Add masterConfig.volumeConfig.dynamicProvisioningEnabledScott Dodson2016-04-261-1/+2
|/ /
* | Merge pull request #1385 from sdodson/global-proxyJason DeTiberus2016-04-251-1/+72
|\ \ | | | | | | Global Proxy Config
| * | Sort and de-dupe no_proxy listScott Dodson2016-04-251-0/+18
| | |
| * | Add global proxy configurationScott Dodson2016-04-221-1/+54
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configures HTTP_PROXY, HTTPS_PROXY, NO_PROXY for master and docker services. Configugres BuildDefaults Admission controller for master to automatically insert proxy environment configuration into build environments. To use set at least these variables - openshift_http_proxy - openshift_https_proxy NO_PROXY entries will automatically be configured for hostnames of all openshift hosts. You may specify additional NO_PROXY hosts or patterns by setting `openshift_no_proxy` If you wish to disable automatic generation of NO_PROXY hosts you may set `openshift_generate_no_proxy_hosts` to False. If you wish to have different builddefaults proxy configuration than baseline proxy configuration set these variables - openshift_builddefaults_http_proxy - openshift_builddefaults_https_proxy - openshift_builddefaults_no_proxy - openshift_builddefaults_git_http_proxy - openshift_builddefaults_git_https_proxy
* / openshift-metrics: adding duration and resolution optionsErez Freiberger2016-04-241-0/+2
|/
* Merge pull request #1758 from dgoodwin/fix-json-varsBrenton Leanhardt2016-04-201-1/+1
|\ | | | | Fix use of JSON inventory vars with raw booleans.
| * Fix use of JSON inventory vars with raw booleans.Devan Goodwin2016-04-151-1/+1
| | | | | | | | | | | | Thought this was fixed in recent patch but somehow backed out a critical change to the isinstance, we need to check for basestring to also have this work with unicode strings.
* | Use a JSON list for docker log options.Devan Goodwin2016-04-201-1/+12
| | | | | | | | | | | | | | Previously we expected you to comma separate, but this wasn't really clear. Insted we will use an explicit JSON list going forward. The comma separated list will be supported for backwards compatability.
* | Merge pull request #1766 from abutcher/router-selectorBrenton Leanhardt2016-04-201-8/+19
|\ \ | | | | | | Bug 1328119 - router selector not obeyed
| * | Remove empty facts from nested dictionaries.Andrew Butcher2016-04-201-8/+18
| | |
| * | Fix router selector fact migration and match multiple selectors when ↵Andrew Butcher2016-04-201-0/+1
| | | | | | | | | | | | counting nodes.
* | | Merge pull request #1582 from jdnieto/openshift_metricsBrenton Leanhardt2016-04-201-0/+16
|\ \ \ | |/ / |/| | added new openshift-metrics service
| * | added new openshift-metrics serviceJose David Martin Nieto2016-04-201-0/+16
| |/
* | Add openshift_node_dnsmasqScott Dodson2016-04-191-2/+42
| |
* | Promote portal_net to openshift.common, add kube_svc_ipScott Dodson2016-04-191-4/+22
|/ | | | | Conflicts: roles/openshift_facts/library/openshift_facts.py
* The openshift_docker role must set the version facts for containerized installsBrenton Leanhardt2016-04-141-30/+8
| | | | | | QE found that for fresh installs we were basing the docker version facts of the images that could be pulled prior to configuring /etc/sysconfig/docker. This is an edge case but something we need to fix.
* Merge pull request #1738 from dgoodwin/image-policy-configBrenton Leanhardt2016-04-131-5/+11
|\ | | | | Support setting imagePolicyConfig JSON in inventory.
| * Support setting imagePolicyConfig JSON in inventory.Devan Goodwin2016-04-121-5/+11
| | | | | | | | | | | | | | | | | | 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.
* | Bug 1324728 - Ansible should not downgrade docker when installing 3.2 ↵Brenton Leanhardt2016-04-121-8/+11
| | | | | | | | containerized env
* | Add support for creating secure router.Andrew Butcher2016-04-111-27/+43
|/ | | | | | | | | | | | | | | * Move openshift_router to openshift_hosted role which will eventually contain registry, metrics and logging. * Adds option for specifying an openshift_hosted_router_certificate cert and key pair. * Removes dependency on node label variables and retrieves the node list from the API s.t. this role can be applied to any cluster with existing nodes. I've added an openshift_hosted playbook that occurs after node install to account for this. * Infrastructure nodes are selected using openshift_hosted_router_selector which is based on deployment type by default; openshift-enterprise -> "region=infra" and online -> "type=infra".
* Merge pull request #1699 from abutcher/check-cloudprovider-kindBrenton Leanhardt2016-04-061-18/+21
|\ | | | | Check for kind in cloudprovider facts prior to accessing.
| * Check for kind in cloudprovider facts prior to accessing.Andrew Butcher2016-04-041-18/+21
| |
* | Add support for configuring oauth templates.Devan Goodwin2016-04-011-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+10
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+16
| | | | | | | | | - 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-7/+62
| | | | | | - 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
* Add AWS cloud provider support.Andrew Butcher2016-03-291-38/+119
|
* Workaround for authenticated registriesBrenton Leanhardt2016-03-291-0/+21
| | | | | | | | | | Currently there's no good way to install from a registry that requires authentication. This applies both to RPM and containerized installs: https://bugzilla.redhat.com/show_bug.cgi?id=1316341 The workaround is to 'docker login' as root and then have ansible pull the images to the image cache.
* First pass at systemd unit refactorBrenton Leanhardt2016-03-291-1/+1
|
* Support setting local storage perFSGroup quota in node config.Devan Goodwin2016-03-221-0/+1
| | | | | Adds a new inventory var "openshift_node_local_quota_per_fsgroup", which will set the perFSGroup quota node-config.yaml.
* Bug 1317755 - Set insecure-registry for internal registry by defaultJason DeTiberus2016-03-171-1/+4
|
* Merge pull request #883 from lebauce/openstack-integrationBrenton Leanhardt2016-03-141-1/+31
|\ | | | | Add support for Openstack integration
| * Add support for Openstack integrationSylvain Baubeau2016-03-141-1/+31
| |
* | Docker role refactorJason DeTiberus2016-03-141-42/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - refactors the docker role to push generic config into docker role and wrap openshift specific variables into an openshift_docker role and it's dependent openshift_docker_facts role - adds support for setting --confirm-def-push flag (Resolves https://github.com/openshift/openshift-ansible/issues/1014) - moves docker related facts from common/node roles to a new docker role - renames cli_docker_* role varialbes to openshift_docker-* (maintaining backward compatibility) - update role dependencies to pull in openshift_docker conditionally based on is_containerized - remove playbooks/common/openshift-docker since the docker role is now conditionally included
* | Ensure is_containerized is cast as bool.Andrew Butcher2016-03-141-2/+2
| |
* | openshift_facts: Safe cast additional boolsSamuel Munilla2016-03-101-1/+1
| |
* | openshift-ansible: Wrap boolean factsSamuel Munilla2016-03-101-2/+11
| | | | | | | | | | Centralize the very weird process for converting strings to booleans to help keep the code consistent.
* | Support openshift_image_tagBrenton Leanhardt2016-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This is the containerized openshift_pkg_version equivalent. Originally I was hoping to reuse openshift_pkg_version for containerized installs but the fact that it's very coupled to yum made that pretty ugly. However, I did opt to rely on the previously existing 'openshift_version' variable. Containerized and RPM installs can both use that variable and it will be set appropriately if either openshift_pkg_version or openshift_image_tag are set. I suspect someday containerized installs will be the only option and I didn't can to have thinkgs like openshift_pkg_version and openshift_image_tag in the playbooks anymore the necessary.
* | Adding support for v1.2 examplesBrenton Leanhardt2016-03-031-0/+9
| |
* | Correctly set the image tag for containerized installs (and upgrades)Brenton Leanhardt2016-03-031-5/+50
| |
* | Check for is_containerized value when setting binary locations.Andrew Butcher2016-03-021-1/+1
|/
* Merge pull request #1337 from abutcher/master-scaleupBrenton Leanhardt2016-02-221-20/+93
|\ | | | | Support for adding new masters
| * Fail when master.master_count descreases or master.ha changes.Andrew Butcher2016-02-161-5/+9
| |
| * Protected facts.Andrew Butcher2016-02-161-20/+89
| |