aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/horizon
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake16-1149/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-11Merge "Use horizon_logging_debug variable"Jenkins2-1/+3
2016-11-11Merge "Fix neutron lbaas dashboard"Jenkins1-0/+2
2016-11-10Use horizon_logging_debug variableMauricio Lima2-1/+3
TrivialFix Change-Id: Ic474306223b9c6f5fa730ef765ca60c59d76f24b
2016-11-10Using openstack_logging_debug variable in horizonJeffrey Zhang1-1/+1
TrivialFix Change-Id: Id73897a44d20ddf024657e09716f9f4ee68621d2
2016-11-10Fix neutron lbaas dashboardJeffrey Zhang1-0/+2
Load neutron lbaas dynamic when neutron lbaas is enabled. Change-Id: I47913824fea87b721f254633c16d1dc6903b4f5d Closes-Bug: #1639325
2016-11-03Move precheck into its own roleJeffrey Zhang1-0/+1
* Merge prechecks.yml and site.yml playbook * Create empty precheck.yml into all roles. Change-Id: I8a138558a26c0a2a66c5fd48ed37be657c99c1dd Implements: blueprint condition-pre-check
2016-10-15OpenStack Services Should Use keystone_internal_url for authDave McCowan1-1/+1
Horizon and Neutron mistakenly were using keystone_public_url for authentication. This works without error in deployments when the internal services happen to have access to the public network, but it is still wrong. This fails to work when the internal services can not access the public URLs, for example when TLS is enabled on the public endppoints. This patches corrects horizon and neutron to use keystone_internal_url for auth. Change-Id: I59b9094364bef375036028ba86a771dabf28c963 Closes-bug: #1625648
2016-10-13Merge "Remove do_reconfigure.yml file for all roles"Jenkins2-66/+63
2016-10-05Fix horizon to use cachePaul Bourke1-0/+3
Horizon was missing SESSION_ENGINE from it's conf which means it was not making use of memcached. Change-Id: I450aee05f59e344902f1e92d913f4c1ce9e8dcc6 Closes-Bug: 1630509
2016-09-27Remove do_reconfigure.yml file for all rolesJeffrey Zhang2-66/+63
do_reconfigure.yml is introduced to use serial directive. But we use it in wrong. Now serial has moved to playbook file. So it is time to remove the do_reconfigure.yml file Closes-Bug: #1628152 Change-Id: I8d42d27e6bc302a0e575b0353956eaef9b2ca9fd
2016-09-25Change "Virtualhost" to "VirtualHost" in horizon.conf.j2caowei1-1/+1
TrivialFix Change-Id: Ia3c6eeb956825e649d57f390c182cb91901f16d5
2016-09-22Merge "Allow use of database for Horizon sessions"Jenkins5-0/+84
2016-09-13Added serial option to site.yml.Mick Thompson2-2/+0
Useful for upgrade etc., which is preferablly done serially. Example usage: tools/kolla-ansible deploy OR tools/kolla-ansible upgrade Closes-Bug: #1576708 DocImpact Change-Id: I34b2e16f8ce53e472a4682a4738c4ac0f5abf00c
2016-09-12Adding required check for Orchestration KubernetesSerguei Bezverkhi1-1/+2
Thgis PS add missing check for Kubernetes orchestration engine, without these changes, running kolla-ansible genconfig fails for Kubernetes environment. TrivialFix Change-Id: I25eeb7ae3ddba7c924f6d48aa24afdbe74227170
2016-09-08Allow use of database for Horizon sessionsPaul Bourke5-0/+84
Database-backed sessions are scalable (using an appropriate database strategy), persistent, and can be made high-concurrency and highly-available [0] Default is off. [0] http://docs.openstack.org/developer/horizon/topics/deployment.html#database Co-Authored-By: Vladislav Belogrudov <vladislav.belogrudov@oracle.com> Closes-Bug: 1618781 Change-Id: Ib68a21397dc020d20e07dcc51d3d0fdc1de102ff
2016-08-20Sync the local_settings.j2 with horizonJeffrey Zhang1-60/+203
local_settings.j2 is out of date, sync with the horizon TrivialFix Change-Id: I4771452504a7f0caeeac7b8801dcc2350e70b6ca
2016-08-19Merge "Optimize horizon cache and compress for http response"Jenkins1-0/+44
2016-08-18Create the _member_ role in the horizon roleJeffrey Zhang4-1/+28
The horizon need a normal exist in the keystone. Change-Id: Ia3e4fb5245b4a943fc833f29a5a8d5eb1ee48fe9 Closes-Bug: #1579822
2016-08-17Merge "Replace horizon default config with custom config"Jenkins1-5/+11
2016-08-14Fix the memcache location value in horizon local settingsJeffrey Zhang1-1/+1
When setting multi memcached servers, the value should be a list rather then a comma joined string This patch set I586ce1c6c3300254c4e2a398ff46645df576aeb0 set it in wrong TrivialFix Change-Id: Ic612658ab0310c6764310bbca92c925da6d47f6c
2016-08-09Port with_ loop variable syntax to Ansbile 2Duong Ha-Quang1-4/+4
Migrate to full variable syntax in with_ loop instead of bare variables for: - ceph - ceilometer - glance - heat - horizon - keystone - mariadb - memcached - neutron - nova - rabbitmq Change-Id: Ib925b4ecea47ac758a77739c9c7e140f06933b08 Partial-Implements: blueprint ansible2
2016-08-09Optimize horizon cache and compress for http responseJeffrey Zhang1-0/+44
Leverage the browser cache and compress to speed up the file transfer. In RHEL based image, the expire and deflate module are enabled in default. In the Debian based image, only the deflate is enabled * Enable expire module on the Debian based image * Enable the expire for the assets resource * Enable the deflate for the http response Closes-Bug: #1605907 Change-Id: If25decc38a10a21929f72a89cdb350d4ac64a5a9
2016-08-08Replace horizon default config with custom configjackning1-5/+11
Ansible's template action supports replacing horizon default config with custom config, it should only add with_first_found param to config.yml to support this. Change-Id: I45b8eed5b8d6c4d42672d99e41bc4eff7023a26f Closes-Bug: #1570677
2016-08-02Horizon interface address and memcached overrideKen Wronkiewicz2-3/+8
Note: This should not result in any behavior changes in regular Kolla, just Kolla-Kubernetes and only when you've overridden stuff in globals.yml Allows override of interface address and memcached pools, so that Kubernetes can do the right thing. There are some significant architectural issues involved in memcached pooling in the Kolla-kubernetes world. Avoiding them right now. Current working with this Kolla-Kubernetes globals.yml file: api_interface_address: "0.0.0.0" memcached_servers: "memcached" keystone_database_address: "mariadb" keystone_admin_url: "http://keystone-admin:35357/v3" keystone_internal_url: "http://keystone-public:5000/v3" keystone_public_url: "http://keystone-public:5000/v3" Three tings to note: * In Kolla-Kubernetes, the service is not using net=host, so a 0.0.0.0 interface address is totally OK. That patch has been merged. * In Kolla-Kubernetes, the global.yml file doesn't do var substitution so you have to be explicit about the URLs, otherwise Keystone will look like it was provisioned but it won't quite be provisioned right. * In order to not duplicate tons of code, moved the keystone_admin_url / keystone_internal_url / keystone_public_url to the common defaults from the keystone defaults. Co-Authored-By: Ryan Hallisey <rhallise@redhat.com> Change-Id: I586ce1c6c3300254c4e2a398ff46645df576aeb0 Partially-implements: blueprint api-interface-bind-address-override
2016-07-08Fix the memcached config in horizon local_settingsJeffrey Zhang1-1/+1
When using multi memcached servers, a list of servers should be used rather than a comma joined servers string. Change-Id: I93ed68947465b3e6b0c7fa3cf6c8c4ac94ed0bf2 Closes-Bug: #1600082
2016-05-03map the host localtime to the containerJeffrey Zhang1-1/+2
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-03-23Merge "Changes horizon log location to kolla_logs volume"Jenkins3-5/+5
2016-03-22Changes horizon log location to kolla_logs volumeSerguei Bezverkhi3-5/+5
Changes location of Horizon log, they will be stored on common log volume kolla_logs. Change-Id: Ie9d56999a83efd05ab7c3dcb00b4dc42c9bce8f8 Closes-Bug: 1560250
2016-03-22Enable horizon domain loginsSamYaple1-1/+1
The horizon default is to prevent multidomain login. While allowing multidomain login wont prevent default domain login. Overhead is we must type in domain to login even if its default domain. Change-Id: I965c3612eb584e88071c619037e1f42b3f4c7cd0 Closes-Bug: #1560683
2016-03-07Reconfigure horizon serviceJeffrey Zhang2-0/+67
Implements reconfiguring the horizon service. Closes-Bug: #1553526 Change-Id: I8bb2398ebdf4b10fe8386f5b2b25802172e1cbd3
2016-03-03Add TLS protection on external API endpointsDave McCowan2-3/+13
TLS can be used to encrypt and authenticate the connection with OpenStack endpoints. This patch provides the necessary parameters and changes the resulting service configurations to enable TLS for the Kolla deployed OpenStack cloud. The new input parameters are: kolla_enable_tls_external: "yes" or "no" (default is "no") kolla_external_fqdn_cert: "/etc/kolla/certificates/haproxy.pem" kolla_external_fqdn_cacert: "/etc/kolla/certificates/haproxy-ca.crt" Implements: blueprint kolla-ssl Change-Id: I48ef8a781c3035d58817f9bf6f36d59a488bab41
2016-02-26Change kolla_internal_address variableSamYaple1-1/+1
Due to poor planning on our variable names we have a situation where we have "internal_address" which must be a VIP, but "external_address" which should be a DNS name. Now with two vips "external_vip_address" is a new variable. This corrects that issue by deprecating kolla_internal_address and replacing it with 4 nicely named variables. kolla_internal_vip_address kolla_internal_fqdn kolla_external_vip_address kolla_external_fqdn The default behaviour will remain the same, and the way the variable inheritance is setup the kolla_internal_address variable can still be set in globals.yml and propogate out to these 4 new variables like it normally would, but all reference to kolla_internal_address has been completely removed. Change-Id: I4556dcdbf4d91a8d2751981ef9c64bad44a719e5 Partially-Implements: blueprint ssl-kolla
2016-02-25Add the default empty reconfigure.yml file to all rolesJeffrey Zhang1-0/+1
DocImpact Partially-implements: bp kolla-reconfig Change-Id: I9738e80960bcfbef18d1ef1b7942f81c45684e85
2016-02-15Use variables to specify http or https when constructing URLsDave McCowan1-1/+1
To allow for TLS to protect the service endpoints, the protocol in the URLs for the endpoints will be either http or https. This patch removes the hardcoded values of http and replaces them with variables that can be adjusted accordingly in future patches. Change-Id: Ibca6f8aac09c65115d1ac9957410e7f81ac7671e Partially-implements: blueprint ssl-kolla
2016-02-03Playbook for horizon upgradeJeffrey Zhang1-0/+4
Partially-Implements: blueprint upgrade-kolla Implements: blueprint upgrade-horizon Change-Id: I11f11a684becd43cb137fe2c5694ca7e887b38ba
2016-01-26Add stub upgrade.ymlMichal Jastrzebski1-0/+1
After introduction of pull action and turing every main.yml into {{action}}.yml we lost ability to perform upgrade Change-Id: Ie9fa2cd083b061033abc733fba53d54f9c55e393 Fixes-Bug: #1538210
2016-01-19Consistency changes in configsMaciej Szankin1-2/+5
TrivialFix Change-Id: Iafd92e4e962dec5a225582ff058ab3603e5a50bb
2016-01-06Allow horizon role to pull imagesSamYaple3-3/+12
Change-Id: Iea91c39733d56a9291287a78a44756d8d38ca71d Partially-Implements: blueprint pre-pull-images
2015-12-31Convert horizon to kolla_dockerSamYaple1-14/+4
Change-Id: Ic34e016c1a8dad2599d9afd69829de00ae232fb6 Partially-Implements: blueprint kolla-docker-module
2015-12-23Merge "Simplify config creation"Jenkins1-8/+12
2015-12-22Simplify config creationSamYaple1-8/+12
Convert config creation from a playbook to an action_plugin. This reduces the complexity and confusion while retaining the same augment structure and flexibility. This allows us to remove the 0-byte files as requirements. They will still be used if they are present (this means we require additional documentation around them). DocImpact Closes-Bug: #1528430 Change-Id: I2c789f6be9f195c7771ca093a6d59499564b4740
2015-12-16Fix retrieving api_interfaceOTSUKA, Yuanying1-1/+1
In heterogeneous environment, api_interfaces are different each other. So we should specify it from hostvars. Implements: bp configure-network-interface Change-Id: Id15d70bfb9ebb62a64a3847a6b77407efb171dbe
2015-11-27Source installation in virtualenvMichal Rostecki1-3/+4
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
2015-10-15Merge "Enable COMPRESS_OFFLINE for Horizon"Jenkins1-0/+1
2015-10-15Use memcache for consoleauth and horizonSam Yaple1-9/+3
Unfortunately there was no was to avoid memcache for consoleauth, so we might as well take advantage of it for Horizon as well. Change-Id: Idd338a025b031f6b50fe0c9f03c2c8d862f9d4c0 Closes-Bug: #1504606 Closes-Bug: #1504800
2015-10-15Enable COMPRESS_OFFLINE for HorizonSam Yaple1-0/+1
Without this set the CSS is messed up again TrivialFix backport: liberty Change-Id: I9e4cfc53d9791f75d4fdd52abe562c58035b0979
2015-10-14Add tty to containersSam Yaple1-0/+1
sudo requires a tty to function by default on centos. Instead of tweaking the sudo conf we can just add a tty. This has the added advantage of making the containers more friendly if you have to `docker exec -i <container> bash` into them. Change-Id: If97a02ca1d37c243a787d98ade54bde8d641aecd backport: liberty Partially-Implements: blueprint functional-testing-gate
2015-10-13Bump ansible to 1.9.2Sam Yaple1-1/+0
Ansible 1.9.2 contains the fix needed for docker-py >1.2.0 This is needed for some gate reasons, but it is also a good version bump because it fixes a few issues with delegate_to. Change-Id: Iafbabb3b0232620849d0548c5cd9d8d316c2b0f3 backport: liberty Partially-Implements: blueprint functional-testing-gate
2015-10-06Bring Kolla inline with FHSSam Yaple2-3/+3
This brings Kolla images inline with FHS and should make finding locations of things more consistent and reliable with the linux world at large. Change-Id: Iece5b4da4bace0fb8b1f41a65ab2c852ec73e6f8 Closes-Bug: #1485742