summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/defaults
Commit message (Collapse)AuthorAgeFilesLines
* Implement container runtime roleMichael Gugino2017-12-011-0/+3
|
* Combine openshift_node and openshift_node_dnsmasqMichael Gugino2017-11-271-0/+7
| | | | | This commit combines these two roles. This will prevent openshift_node_facts from running twice.
* Remove is_openvswitch_system_container from factsMichael Gugino2017-11-221-0/+1
| | | | Simply logic for this variable.
* Fix system_images_registry variableMichael Gugino2017-11-221-0/+6
| | | | Simplify the logic for this variable.
* Fix node system container varMichael Gugino2017-11-211-0/+2
| | | | Fix logic, make it simpler.
* Merge pull request #6094 from ↵OpenShift Merge Robot2017-11-151-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mgugino-upstream-stage/syscontainers-docker-login-module Automatic merge from submit-queue. Alternative method to create docker registry auth creds Currently, the command 'docker login' is run when using oreg with authentication. On some hosts, such as hosts configured to use system containers, the docker service is not running. 'docker login' will fail without the docker service running. This commit adds a module to idempotently add credentials to the registry credentials file without the use of 'docker login' Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
| * Alternative method to create docker registry auth credsMichael Gugino2017-11-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the command 'docker login' is run when using oreg with authentication. On some hosts, such as hosts configured to use system containers, the docker service is not running. 'docker login' will fail without the docker service running. This commit adds a module to idempotently add credentials to the registry credentials file without the use of 'docker login' Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
* | Adding instance profile support for node groups.Kenny Woodson2017-11-131-0/+2
|/
* Adding CONFIG_FILE option back.Kenny Woodson2017-11-011-0/+3
|
* GCP cannot use AWS growpart packageClayton Coleman2017-10-301-2/+2
| | | | Make the required package optional
* Initial Kuryr supportMichał Dulko2017-10-201-0/+3
| | | | | | | | This commit enables deploying Kuryr networking on top of OpenShift in containers. kuryr-controller is a Deployment and kuryr-cni is deployed as DaemonSet (container will drop all CNI configuration files). Co-Authored-By: Antoni Segura Puimedon <celebdor@gmail.com>
* Do not remove files for bootstrap if resolv or dns.Kenny Woodson2017-10-171-3/+2
|
* Add ability to set node and master imageConfig to latestMichael Gugino2017-10-121-0/+3
| | | | | | | | | Currently, imageConfig.latest is hard-coded to false. This commit adds an appropriate boolean to enable setting to true. Fixes: https://github.com/openshift/openshift-ansible/issues/1422
* Fix broken debug_levelMichael Gugino2017-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | 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
* Changes necessary to support AMI buildingMichael Gugino2017-09-281-3/+0
| | | | | | | Currently, AMI building does not work. These changes implement the necessary steps to build an AMI for usage as a 'golden node image'.
* Remove default value for oreg_urlMichael Gugino2017-09-201-2/+2
| | | | | | | | | | | Due to some plays importing variables from roles directly, oreg_url was being set to a default value when it otherwise shouldn't be. This commit removes the default values for oreg_url to ensure existing logic works as desired. Fixes: https://github.com/openshift/openshift-ansible/issues/5455
* Merge pull request #5345 from smarterclayton/firewallOpenShift Merge Robot2017-09-151-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue Add `openshift_node_open_ports` to allow arbitrary firewall exposure It should be possible for an admin to define an arbitrary set of ports to be exposed on each node that will relate to the cluster function. This adds a new global variable for the node that supports Array(Object{'service':<name>,'port':<port_spec>,'cond':<boolean>}) which is the same format accepted by the firewall role. @sdodson as discussed, open to alternatives. I used this from origin-gce with openshift_node_open_ports: - service: Router stats port: 1936/tcp - service: Open node ports port: 9000-10000/tcp - service: Open node ports port: 9000-10000/udp Which then allows me to set firewall rules appropriately. Alternatives considered: * Simpler external format (have to parse inputs) * Additional parameter to role - felt ugly
| * Add `openshift_node_open_ports` to allow arbitrary firewall exposureClayton Coleman2017-09-111-1/+3
| | | | | | | | | | | | | | | | | | | | It should be possible for an admin to define an arbitrary set of ports to be exposed on each node that will relate to the cluster function. This adds a new global variable for the node that supports Array(Object{'service':<name>,'port':<port_spec>,'cond':<boolean>}) which is the same format accepted by the firewall role.
* | Fix: authenticated registry support for containerized hostsMichael Gugino2017-09-111-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | Currently, openshift-anisble supports authentication to container registries to pull down openshift container images. The openshift_verison role uses the docker cli to gather image information from container registries before authentication credentials are provided by openshift-ansible. This commit creates the necessary token to authenticate to private registries during openshift_version. The token is generated by the role 'docker' on all hosts where docker is installed/configured when oreg_auth_users is defined. This commit also adds a read-only mount into the openshift master and node container services. This mount is '/var/lib/origin/.docker:/root/.docker:ro'. This is because the container images do not currently read the values in '/var/lib/origin/.docker' as this may be a bug upstream. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1316341
* Remove openshift-commonMichael Gugino2017-09-061-3/+25
| | | | | | | | | 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.
* Merge pull request #5230 from kwoodson/openshift_node_bootstrapOpenShift Bot2017-08-301-0/+58
|\ | | | | Merged by openshift-bot
| * Merging openshift_node with openshift bootstrap.Kenny Woodson2017-08-291-0/+58
| |
* | Add independent registry auth supportMichael Gugino2017-08-281-0/+5
|/ | | | | | | | | | | | | | | | | Added the ability to support authentication for independent / 3rd party registries. This commit will allow users to provide a `oreg_auth_user` and `oreg_auth_password` to dynmically generate a docker config.json file. The docker config.json file can be used by openshift to authenticate to independent / 3rd party registries. `oreg_host` must supply endpoint connection info in the form of 'hostname.com:port', with (optional) port 443 default. To update the config.json on a later run, the user can specify `oreg_auth_credentials_replace=False` to update the credentials. These settings must be used in tandem with `oreg_url` Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1316341
* Default to global setting for firewall.Kenny Woodson2017-08-251-2/+2
|
* Updated README to reflect refactor. Moved firewall initialize into separate ↵Kenny Woodson2017-08-101-0/+2
| | | | file.
* Adding a default condition and removing unneeded defaults.Kenny Woodson2017-08-091-4/+1
|
* First attempt at refactor of os_firewallKenny Woodson2017-08-081-2/+12
|
* Sync all openshift.common.use_openshift_sdn uses in yaml filesJan Chaloupka2017-07-261-1/+1
| | | | | | | | | | | Most occurrences are in a form: ```yaml openshift.common.use_openshift_sdn | default(true) | bool ``` Let's make all occurences this way given the use_openshift_sdn is set to true anyway. See https://github.com/openshift/openshift-ansible/blob/0c350dcc7d06d62be5ba3a8e468dff85cdd96dd7/roles/openshift_facts/library/openshift_facts.py#L2035
* Added Calico BGP Port 179 to FirewalldVincent Schwarzer2017-05-151-0/+3
|
* Fix for OpenShift SDN CheckVincent Schwarzer2017-05-091-1/+1
|
* Port 10255 unnecessary. Removing all instancesChris Callegari2017-04-041-4/+0
|
* Work towards determining openshift_version when unspecified.Devan Goodwin2016-05-251-1/+0
| | | | | | | openshift_docker role was largely useless now, but also almost did what we needed. (deps ordering still needs to be changed) Remove defaulting of openshift_version.
* The openshift_docker role must set the version facts for containerized installsBrenton Leanhardt2016-04-141-1/+1
| | | | | | 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.
* Bug 1322788 - The IMAGE_VERSION wasn't added to atomic-openshift-master-api ↵Brenton Leanhardt2016-04-011-0/+1
| | | | and atomic-openshift-master-controllers
* Open 4789/udp when using the SDNScott Dodson2015-10-191-0/+3
|
* Atomic Enterprise related changes.Avesh Agarwal2015-08-261-1/+1
|
* Configure cluster metricsDiego Castro2015-08-131-0/+4
| | | | | Playbook based on https://docs.openshift.org/latest/admin_guide/cluster_metrics.html.
* Templatize configs and 0.5.2 changesJason DeTiberus2015-06-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | - Templatize node config - Templatize master config - Integrated sdn changes - Updates for openshift_facts - Added support for node, master and sdn related changes - registry_url - added identity provider facts - Removed openshift_sdn_* roles - Install httpd-tools if configuring htpasswd auth - Remove references to external_id - Setting external_id interferes with nodes associating with the generated node object when pre-registering nodes. - osc/oc and osadm/oadm binary detection in openshift_facts Misc Changes: - make non-errata puddle default for byo example - comment out master in list of nodes in inventory/byo/hosts - remove non-error errors from fluentd_* roles - Use admin kubeconfig instead of openshift-client
* openshift_facts role/module refactor default settingsJason DeTiberus2015-04-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add openshift_facts role and module - Created new role openshift_facts that contains an openshift_facts module - Refactor openshift_* roles to use openshift_facts instead of relying on defaults - Refactor playbooks to use openshift_facts - Cleanup inventory group_vars - Update defaults - update openshift_master role firewall defaults - remove etcd peer port, since we will not be supporting clustered embedded etcd - remove 8444 since console now runs on the api port by default - add 8444 and 7001 to disabled services to ensure removal if updating - Add new role os_env_extras_node that is a subset of the docker role - previously, we were starting/enabling docker which was causing issues with some installations - Does not install or start docker, since the openshift-node role will handle that for us - Only adds root to the dockerroot group - Update playbooks to use ops_env_extras_node role instead of docker role - os_firewall bug fixes - ignore ip6tables for now, since we are not configuring any ipv6 rules - if installing package do a daemon-reload before starting/enabling service - Add aws support to bin/cluster - Add list action to bin/cluster - Add update action to bin/cluster - cleanup some stray debug statements - some variable renaming for clarity
* node registration changesJason DeTiberus2015-03-241-6/+0
| | | | | | | | | | | | | | - Remove default value for openshift_hostname and make it required - Remove workarounds that are no longer needed - Remove resources parameter from openshift_register_node module - pre-create node certificates for each node before registering node - distribute created node certificates to each node - Move node registration logic to a new openshift_register_nodes role - This is because we now have to run the steps on a master as opposed to on the nodes like we were previously doing. - Rename openshift_register_node module to kubernetes_register_node, one more step to genericizing enough for upstreaming, however there are still plenty of openshift specific commands that still need to be genericized.
* Register node fixesJason DeTiberus2015-03-181-3/+5
| | | | | | | | | | | | | | | | | | | - Set --hostname flag in node config in openshift_node role - Support some additional node attributes in openshift_node role - podCIDR - labels - annotations - Support both output types for openshift ex config view in openshift_register_node module - Support multiple api versions in openshift_register_node module - Support additional attributes in openshift_register_node module - annotations - labels - pod_cidr - external_ips (v1beta3, will be available after next kube rebase) - internal_ips (v1beta3, will be available after next kube rebase) - hostnames (v1beta3, will be available after next kube rebase) - external_id (v1beta3, will be available after next kube rebase)
* Allow for overriding node resourcesJason DeTiberus2015-03-091-0/+4
| | | | | | | | | | - add variable openshift_node_resources to openshift_node role - set default value for openshift_node_resources to { capacity: { cpu: ,memory: }} - If cpu is not set, then the default value will be chosen by the openshift_register_node module (num logical cpus) - If memory is not set, then the default value will be chosen by the openshift_register_node module (75% MemTotal according to /proc/meminfo)
* start fixing os_firewall issuesJason DeTiberus2015-03-061-0/+3
| | | | | - Fix missed references to old firewall scripts - Fix variable name references that didn't get updated
* create openshift_common roleJason DeTiberus2015-02-241-1/+2
| | | | | | | | | | | - move common openshift logic into openshift_common - set openshift_common as a dependency for openshift_node and openshift_master - rename role variables to openshift_* to be more descriptive - start recording local_facts on the openshift hosts - clean up firewalld config to be a bit more dry - Update firewall ports for https, make sure http rules are removed - Replace references to ansible_eth0.ipv4.address with ansible_default_ipv4.address
* - Rename minion to nodeJhon Honce2015-02-161-0/+2
- Update playbooks to support latest code