summaryrefslogtreecommitdiff
path: root/roles/openshift_hosted/tasks
AgeCommit message (Collapse)Author
2018-03-11Introduce openshift_hosted_registry_storage_class configuration variable to ↵Suren A. Chilingaryan
enable dynamicly provisioned GlusterFS volume for hosted registry
2018-03-11Fixes typos in hosted registry code used to provide GlusterFS supoortSuren A. Chilingaryan
2018-02-02dynamic inventory bug when group exists but its emptyMangirdas
2018-01-29Revert "Revert "use non-deprecated REGISTRY_OPENSHIFT_SERVER_ADDR variable ↵Ben Parees
to set the registry hostname""
2018-01-27Revert "use non-deprecated REGISTRY_OPENSHIFT_SERVER_ADDR variable to set ↵Ben Parees
the registry hostname"
2018-01-24Merge pull request #6830 from bparees/registry_addrOpenShift Merge Robot
Automatic merge from submit-queue. use non-deprecated REGISTRY_OPENSHIFT_SERVER_ADDR variable to set the registry hostname
2018-01-24Merge pull request #6718 from sdodson/bz1533658Scott Dodson
Remove unused symlink
2018-01-23use non-deprecated REGISTRY_OPENSHIFT_SERVER_ADDR variable to set the ↵Ben Parees
registry hostname bug 1537593 https://bugzilla.redhat.com/show_bug.cgi?id=1537593
2018-01-17Merge pull request #6696 from sdodson/bz1532973Scott Dodson
Add missing task that got dropped in a refactor
2018-01-16Add missing task that got dropped in a refactorScott Dodson
Removed in 28b254886bf17251e973bfdad4dd4c89e26187fc
2018-01-13Remove unused symlinkScott Dodson
2018-01-10Move more plugins to lib_utilsMichael Gugino
This commit continues moving plugins into lib_utils. This commit does not move any plugins for add-on roles such as logging and metrics.
2018-01-05Migrate to import_role for static role inclusionScott Dodson
In Ansible 2.2, the include_role directive came into existence as a Tech Preview. It is still a Tech Preview through Ansible 2.4 (and in current devel branch), but with a noteable change. The default behavior switched from static: true to static: false because that functionality moved to the newly introduced import_role directive (in order to stay consistent with include* being dynamic in nature and `import* being static in nature). The dynamic include is considerably more memory intensive as it will dynamically create a role import for every host in the inventory list to be used. (Also worth noting, there is at the time of this writing an object allocation inefficiency in the dynamic include that can in certain situations amplify this effect considerably) This change is meant to mitigate the pressure on memory for the Ansible control host. We need to evaluate where it makes sense to dynamically include roles and revert back to dynamic inclusion if and where it makes sense to do so.
2017-12-21Move wait_for_pods to it's own play openshift_hostedMichael Gugino
Currently, both registry and router pods need to be polled for successful deployment. Somtimes this can take up to a minute. This commit attempts to deploy both pods before polling either. This should reduce the average wait time for polling pods by 50% as time spent polling the first will also allow the second pod to continue it's own deployment.
2017-12-20Remove openshift.common.{is_atomic|is_containerized}Michael Gugino
We set these variables using facts in init, no need to duplicate the logic all around the codebase.
2017-12-18Relocate filter plugins to lib_utilsMichael Gugino
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.
2017-12-11Fix openshift hosted registry rolloutRussell Teague
2017-12-06Include Deprecation: Convert to include_tasksRussell Teague
2017-12-05Fix hosted varsMichael Gugino
Remove hosted vars from openshift_facts. The current pattern is causing a bunch of undesired sideffects.
2017-12-01Implement container runtime roleMichael Gugino
2017-11-29Merge pull request #5723 from mjudeikis/gluster-registry-backendScott Dodson
Add external glusterfs backend to hosted and glusterfs playbook
2017-11-27dist.iteritems() no longer exists in Python 3.Jan Pazdziora
2017-11-22Merge pull request #6090 from dustymabe/dustyMichael Gugino
hosted_registry: clean up tmp mount point and fstab
2017-11-21Add support for external glusterfs as registry backendMangirdas
2017-11-14Removed old version codeMichael Gugino
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.
2017-11-10hosted_registry: clean up tmp mount point and fstabDusty Mabe
Fixes #6004
2017-11-09Merge pull request #5571 from vshn/registryip1OpenShift Merge Robot
Automatic merge from submit-queue. Allow cluster IP for docker-registry service to be set For historical reasons a small set of programs in our environments rely on the cluster-internal Docker registry having the IP address "172.30.1.1". So far we always had to patch in that address manually. Adding a variable on the "openshift_hosted" role allows the IP address to be set correctly when a cluster is installed.
2017-11-07[Bug 1509354] Check if routers have certificates and use themKenny Woodson
2017-10-19Allow cluster IP for docker-registry service to be setMichael Hanselmann
For historical reasons a small set of programs in our environments rely on the cluster-internal Docker registry having the IP address "172.30.1.1". So far we always had to patch in that address manually. Adding a variable on the "openshift_hosted" role allows the IP address to be set correctly when a cluster is installed.
2017-09-29Include openshift_hosted when redeploying router certificates to handle ↵Andrew Butcher
auto-generated wildcard certificate or custom openshift_hosted_router_certificate.
2017-09-25Refactor openshift_hosted plays and roleMichael Gugino
Currently, openshift_hosted role duplicates some logic across separate task chains. This commit cleans up the openshift_hosted role and converts it to be primarily used with include_role to give better logic to the playbooks that utilize this role. This commit also refactors the playbook that calls various openshift_hosted roles into individual playbooks. This allows more granularity for advanced users.
2017-09-18Merge pull request #5156 from mangirdaz/5155-hotfixOpenShift Merge Robot
Automatic merge from submit-queue hot fix for env variable resolve If we use environment variables in our inventory files (and from what I seen we do this everywhere where We deploy OCP) our fact engine ignores env variables so if my path looks like ``` openshift_hosted_registry_routecertificates={"certfile": "{{inventory_dir}}/../files/certs/wildcard.registry.company.local.crt", "keyfile": "{{inventory_dir}}/../files/certs/wildcard.registry.companylocal.key", "cafile":"{{inventory_dir}}/../files/certs/CompanyLocalRootCA.crt"} openshift_hosted_registry_routehost=containers.registry.comany.local ``` the result is: `/../files/certs/RoSLocalRootCA.crt` We need to fix our fact set in a long run to read Ansible variables. And it was done in the same way with router certificates already.
2017-09-12Correct logic for openshift_hosted_*_waitRussell Teague
2017-09-12Workaround Ansible Jinja2 delimiter warningRussell Teague
This workaround prevents the warnings on using Jinja2 templating delimiters in `when:` conditions in cases where a variable is used as the conditional. This has been fixed in Ansible 2.4. https://github.com/ansible/ansible/pull/25092
2017-09-07Merge pull request #5162 from aerialls/patch-2OpenShift Bot
Merged by openshift-bot
2017-09-06Merge pull request #5148 from kwoodson/registry_proxy_updatesOpenShift Bot
Merged by openshift-bot
2017-08-25Merge pull request #5178 from sdodson/fix-registry-certScott Dodson
Add missing hostnames to registry cert
2017-08-23Add missing hostnames to registry certScott Dodson
2017-08-23Merge pull request #5011 from kwoodson/provisionScott Dodson
AWS Provisioning with scale groups.
2017-08-23Merge pull request #5120 from smarterclayton/allow_gcs_registryScott Dodson
Allow GCS object storage to be configured
2017-08-23reverse order between router cert generationJulien Brochet
2017-08-22ensured to always use a certificate for the routerJulien Brochet
2017-08-22hot fix for env variable resolveMangirdas
2017-08-21First attempt at provisioning.Kenny Woodson
2017-08-21Adding proxy env vars for dc/docker-registryKenny Woodson
2017-08-21Merge pull request #4254 from dmsimard/registry_certsScott Dodson
Refactor openshift_hosted's docker-registry route setup
2017-08-17Allow GCS object storage to be configuredClayton Coleman
Previously, setting the GCS registry object storage settings resulted in an invalid configuration. This generates a registry-config secret that has the correct file if the GCS config is set.
2017-08-10Updated README to reflect refactor. Moved firewall initialize into separate ↵Kenny Woodson
file.
2017-08-09Adding a default condition and removing unneeded defaults.Kenny Woodson
2017-08-08First attempt at refactor of os_firewallKenny Woodson