aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
AgeCommit message (Collapse)AuthorFilesLines
2015-09-27bind haproxy to single interfaceSam Yaple1-1/+1
Change-Id: I0c9d85ec7da98d32b94d1e61538fe20333536d39 Closes-Bug: #1500159
2015-09-27Stop haproxy from listening on ports it shouldntSam Yaple1-0/+18
Haproxy is currently setup to listen on all services, even ones that aren't being installed (e.g. cinder or swift). This patch places conditionals around those groups. Change-Id: Ia1ff873ce075768dfebf442aabf13604076ce637 Closes-Bug: #1500157
2015-09-25Replace config-external - haproxy keepalivedSam Yaple4-2/+34
Change-Id: I668c31401305713e720f0f0ae8ec18e320ea1c76 Partially-Implements: blueprint replace-config-external
2015-09-22Add nova_novncproxy port to haproxy configurationHui Kang1-0/+6
Make novncproxy_port configurable Change-Id: I54f7918b1927562baf2e125b7f5c8edaec87e993 Closes-Bug: #1497673
2015-09-17Expose HAProxy stats for management purposeQiu Yu1-0/+8
Change-Id: Ia7263a9993e29c8f3db71e86264b786398224223 Closes-Bug: #1496658
2015-09-10Merge "First keepalived container is started with wrong priority"Jenkins1-1/+1
2015-09-10Ansible does not wait for virtual IP to appearVladislav Belogrudov1-0/+3
VIP takes time (10-30 seconds) to appear on one of network nodes. Ansible does not wait for the VIP and starts keystone. The latter fails because it cannot connect to database thru the VIP. Change-Id: Ie951ee22565bdbe8ccb68522648758a7174ba156 Closes-Bug: #1494253
2015-09-10First keepalived container is started with wrong priorityVladislav Belogrudov1-1/+1
First keepalived container is started with priority 0 but the latter should be in range 1-255. This gives error and keepalived resumes with default priority 100. Change-Id: Ib11d0072a96b818d86c81a32e78118c0c82b74d8 Closes-Bug: #1494237
2015-09-07Gather facts from the hosts before using themSam Yaple1-0/+2
Haproxy needs to have gathered facts from all hosts that it will use information about. In this case it must talk to all of the api hosts as well as the database and rabbitmq hosts before generating the configuration file. Change-Id: I99b7dbebd5a6193e192ee258ddf576d18db90ed7 Closes-Bug: #1482406
2015-08-29Add Ansible support for HeatSteven Dake1-0/+12
This changes bootstrapping of the Heat container to bootstrap the Heat container with a heat domain user. This requires some work from bootstrap.yml to pass in several environment variables needed by the heat domain setup script. Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Iab05983754fa514835cb5ff54d775faa18773110 Partially-implements: blueprint ansible-heat
2015-08-25Update Haproxy for HorizonSam Yaple1-0/+6
Change-Id: I725efca9f26b73abd855e6fc90fc1694c4a9d22a Parially-Implements: blueprint ansible-horizon
2015-08-19Load ip_vs module for keepalivedWilliam Frischemeier1-0/+1
If ip_vs is not loaded keepalived will enter a restart loop. To fix that load ip_vs module every time we start the container. Change-Id: I6b39d8654cc6a6da7a9162e5c3efab073746b246 Closes-Bug: #1486276
2015-08-13Merge "Update mariadb confs and ports"Jenkins1-5/+3
2015-08-13Remove bootstrap.yml abstraction for haproxySam Yaple2-32/+40
Change-Id: Ia7328ff96ba22db1b132bfefaa433af9dc666cbf Partially-Implements: blueprint remove-abstraction-ansible
2015-08-13Update mariadb confs and portsSam Yaple1-5/+3
Cleanup all options in galera.cnf. Bind to all interfaces and ports appropriately. Change-Id: I516613d09673ba61aadda2c7bbb4abbbe4ea47ac Partially-Implements: blueprint update-configs Closes-Bug: #1478330
2015-08-12Merge "Update nova.conf and ports"Jenkins1-3/+8
2015-08-12Merge "Update rabbitmq confs and ports"Jenkins1-3/+7
2015-08-12Add ansible support for CinderSwapnil Kulkarni1-0/+6
Change-Id: I0694e5ad95aa7f924ebd3a29dff1f85e6307b7ae Partially-implements: blueprint ansible-cinder Partially-Implements: blueprint remove-abstraction-ansible Co-Authored-By: Ryan Hallisey <rhallise@redhat.com>
2015-08-10Update nova.conf and portsSam Yaple1-3/+8
Cleanup all options in the minimal nova.conf. Remove options where the default value was specified explicitly. Updated ports and bindings to be configurable. Partially-Implements: blueprint update-configs Change-Id: I0bca7a8f9c4c6fa40145d66a95de7e98edc0edce
2015-08-10Update rabbitmq confs and portsSam Yaple1-3/+7
Cleanup all options in the rabbitmq confs. Allow all ports to be configurable. Change-Id: I9b3b485a4f3a25d20c0f19d13638f717daa169dc Partially-Implements: blueprint update-configs
2015-08-08Fixes group name for keepalived.confSam Yaple2-1/+1
Also included is removing the executable bit on haproxy.cfg.j2 as it should not have those permissions in the repo. It has no affect on the templating process. Change-Id: I9c76e528896bdf1799b8eeb62ae77bc4ad0b4449 Closes-Bug: #1482832
2015-08-07Merge "Add check_script for haproxy in keepalived"Jenkins3-2/+5
2015-08-06Reduce dependencies on the dest nodesSam Yaple1-0/+3
Currently we require a slew of deps on each destination node, this includes a gcc compiler and installing things via pip. We can remove these dependencies by containerizing them and running and Ansible inside the container itself. The container would then report back facts about idempotency. DocImpact Closes-Bug: #1481495 Implements: blueprint containerize-dependencies Change-Id: I3dfccbf9fafc06ffc36e78f3006fe5d3367891df
2015-08-05Add check_script for haproxy in keepalivedSam Yaple3-2/+5
This patch checks that haproxy is alive and running. It does this by using socat to talk to the haproxy socket. That socket will only respond successfully when haproxy is active and functional. Change-Id: I528588d5742071103c28109a69842a6f935232c2 Closes-Bug: #1478570
2015-07-31Add missing slash if docker registry is specifiedVladislav Belogrudov1-2/+2
If user specifies registry a full image name is constructed by concatenation of the registry, namespace and image. Currently concatenation does not include '/' if registry is non-empty but it should. If registry is empty '/' is not required. This fix covers both use cases with help of Ansible filter. Change-Id: I0588dd0da55d777e6caa7eb47d51b2435d38d5e0 Closes-Bug: #1479013
2015-07-31Merge "Rename role name to service name"Jenkins2-3/+3
2015-07-30Rename role name to service nameSam Yaple2-3/+3
The original purpose for having an abstract like 'database' rather than the service name of 'mariadb' has been change. Our direction is different and this patch reflects consistent naming throughout Change-Id: I704896191cc5243f9dab2a4cca9120e9dc2ceb2c Closes-Bug: #1478328
2015-07-30Forces metadata to bind to single interfaceSam Yaple1-0/+7
Also adds haproxy config for metadata. Change-Id: I65c1ae5f491d66bf4dccaa38a9a2ad4026c1f72e Closes-Bug: #1478333
2015-07-30Add keepalived to ansibleSam Yaple4-0/+51
Adds the needed ansible bits to support keepalived Closes-Bug: #1479934 Change-Id: Iace29b23a0e923b1f5dc9a4f5bc0f88afce3ae62 Partially-Implements: blueprint ansible-service
2015-07-28Ansible install of HAProxyMichal Jastrzebski (inc0)5-0/+121
This commit consists HAProxy ansible bits including config generation, container deployment and hot reloads. Closes-Bug: #1477915 Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Ie93fa68fdb6b2885889c992ff1267d38b68e0cbc Partially-implements: blueprint ansible-service