aboutsummaryrefslogtreecommitdiff
path: root/ansible
AgeCommit message (Collapse)AuthorFilesLines
2015-08-02Add linuxbridge as option to ansibleSam Yaple10-32/+86
Allows the user to configure neutron_plugin_agent value for Ansible. Current allowed values are openvswitch and linuxbridge. Implements: blueprint ansible-neutron-linuxbridge Change-Id: I0572464a5459d2f9da09b6da22db16e240511f99
2015-08-01Merge "Fixes race condition in ansible playbooks"Jenkins4-1/+6
2015-08-01Merge "Use sleep during database bootstrap"Jenkins1-0/+5
2015-08-01Removes unneeded variablesSam Yaple1-3/+0
These variables are defined in the defaults.yml file Change-Id: I45de4fbd41c50e2a8fe3233cdffc467c9a594aa5 Closes-Bug: #1480498
2015-07-31Fixes race condition in ansible playbooksSam Yaple4-1/+6
Bundling in a run_once error that beaks with multinode and the race Change-Id: Ia3779d9a291f8d652fc81fe5ebcab88241805c8d Closes-Bug: #1480468
2015-07-31Use sleep during database bootstrapSam Yaple1-0/+5
A small sleep is used to allow the database to initialize before starting the databases on the other hosts. Change-Id: I1ea9ee8be55f47ae917f9985431e1e919f64c101 Closes-Bug: #1479970
2015-07-31Merge "Update inventory examples for Ansible"Jenkins2-2/+30
2015-07-31Update inventory examples for AnsibleSam Yaple2-2/+30
Change-Id: I14beadf8ae0b4f117623331dca71eff3d45b51f1 Closes-Bug: #1480439
2015-07-31Remove the explicit chown rootHarm Weites1-1/+1
This is not possible when running multihost ansible. Essentially this should've been part of #1476293. Change-Id: I53baccf5f89e71ce1313524815f928ea04908a05 Partitially-Implements: blueprint ansible-service
2015-07-31Add missing slash if docker registry is specifiedVladislav Belogrudov7-8/+8
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 "Properly use groups throught Ansible"Jenkins2-21/+12
2015-07-31Merge "Rename role name to service name"Jenkins19-22/+21
2015-07-30Properly use groups throught AnsibleSam Yaple2-21/+12
Additionally, make each service optional witha config option allowing for extreme flexibility should the deployer want to replace a service with a non-kolla one (the database for example). Change-Id: I7b644da7cfa7e8e6b6878eb1b1aa97db830504ae Closes-Bug: #1478509
2015-07-30Rename role name to service nameSam Yaple19-22/+21
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 Yaple2-1/+10
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-30Merge "Ansible install of HAProxy"Jenkins8-1/+134
2015-07-28Merge "Adds glance and nova data volume"Jenkins2-0/+16
2015-07-28Remove psuedo-legalize as it is no longer validSam Yaple2-14/+0
Change-Id: I8eb94b9beec3ebee9f9c80584e05f568b264749f
2015-07-28Ansible install of HAProxyMichal Jastrzebski (inc0)8-1/+134
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
2015-07-28Merge "Tells rabbitmq to listen on single ip"Jenkins2-3/+19
2015-07-28Merge "Don't try to chown root:root /tmp/kolla_mariadb_cluster"Jenkins1-1/+1
2015-07-28Merge "Removes hashing from merge_configs.py"Jenkins1-8/+9
2015-07-27Removes hashing from merge_configs.pySam Yaple1-8/+9
There is no benefit to hashing in merge_configs.py In fact, the opposite is true, hashes can collide. This does a direct compare rather than hash. Change-Id: I9ab7af13e813e2267984092027daf1658faf5bf3 Closes-Bug: #1478494
2015-07-26Tells rabbitmq to listen on single ipSam Yaple2-3/+19
This binds rabbitmq, epmd, and the management plugin to a single ip. The syntax is very tricky, but this is all functional. Change-Id: Iecbb00f6c4fe3044688ae3258da31b9aabbd1501 Closes-Bug: #1478073
2015-07-26Adds glance and nova data volumeSam Yaple2-0/+16
Change-Id: I179a20e637274659cf6e3b2d8a61ff2728fa084b Closes-Bug: #1478315
2015-07-26Don't try to chown root:root /tmp/kolla_mariadb_clusterHarm Weites1-1/+1
This just fails when not running as root. Change-Id: Ic3fc55d519c6165df917cf333a38907232fe3ed7 Partitially-Implements: blueprint ansible-service Closes-bug: #1476293
2015-07-23Update init-runonceSam Yaple1-2/+2
This makes some changes to init-runonce to allow using Ansible as well as updating it to use the openstack-client where applicable since the keystone-client is not usable with keystone v3 api at all. Change-Id: I6b9d6beb04df7724b1967638e98042ab03221cd1 Closes-Bug: #1477725
2015-07-23Merge "Properly use all configs with neutron"Jenkins4-4/+40
2015-07-23Fix compute permissions and start paramsSam Yaple3-14/+19
neutron-server was not properly using ml2_conf.ini nova did not have ovs utils, and it had incorrect libvirt permissions Change-Id: I43d2110d0b5fc1940d887dace95787e1ebbe142d Partitially-Implements: blueprint ansible-service
2015-07-23Properly use all configs with neutronSam Yaple4-4/+40
Change-Id: Ie347964d42e7060c69047b1aeece1cf0ad311ae6 Partially-Implements: blueprint ansible-service
2015-07-23Merge "Adds the appropriate tools to addin the ovs bridge"Jenkins3-2/+9
2015-07-23Merge "Allows neutron-agents l3 agent to communicate with OVS"Jenkins1-0/+1
2015-07-23Copy ml2_conf.ini to correct locationSteven Dake1-1/+25
The ml2_conf.ini file which sets OpenVswitch as the mechanism driver was not being copied to the corect place. This patch resolves that problem. Change-Id: Ia276916a3183564c9b7d8d6aa9595c384ed99cf6 Closes-Bug: #1477399
2015-07-23Allows neutron-agents l3 agent to communicate with OVSSteven Dake1-0/+1
The neutron-agents l3 agent requires access to the OVS database via access to /run. It also needs to have ovs-vsctl binary available in the container. Change-Id: I903537b570cd60c9bb1088e9408a5f6ea4988d8f Closes-Bug: #1477376
2015-07-23Adds the appropriate tools to addin the ovs bridgeSam Yaple3-2/+9
Ansible will exec a script in the OVS container to ensure the bridge and ports are properly setup. The script is idempotent. Change-Id: I5adca595a4d2ef4edf26c9635cfa5ceb30ca4a59 Closes-Bug: #1466375
2015-07-19Ansible Neutron supportSam Yaple13-1/+368
Add initial Ansible support for Neutron Change-Id: Idad011945bff914535d1ac0eb09cc9d3b0882fbe Partially-Implements: blueprint ansible-service
2015-07-15Add pid_mode to libvirtSteven Dake2-0/+26
Libvirt requires pid_mode to Host to operate on Fedora Hosts. Further we will need this for libvirt upgrade. I am not entirely sure why libvirt running with pid=host gets things working, but it definately has something to do with CentOS's libvirt's integration with systemd. Nailing down the problem, the interface to the Docker module accepts only None or "host". There is no way to generate a None type except with !!null in yml, but this does not work in the jinja2 parser. As a result, one solution is this conditional. A better long term solution would be for the Docker module to take some other argument to indicate None that can be expressed in a string. Change-Id: I54eb87e8ce8679bbf12f671527280c73e195b2e4 Closes-Bug: #1473270
2015-07-15Merge "Ansible Nova w/ libvirt support"Jenkins11-3/+452
2015-07-14fix possible symlink attack with ansibleSam Yaple1-9/+9
The commands used to create a temporary file on the localhost were vulnerable to a symlink attack. Removing the shell module and ensuring the ansible copy and file module is used will verify this file exists as a file with the correct permissions and ownership Change-Id: I829483edf1435e41726ebfe1bc826e0c2e5265e3 Closes-Bug: 1471376
2015-07-13Merge "Add temporary Ansible keystone modules"Jenkins6-314/+189
2015-07-12Ansible Nova w/ libvirt supportSam Yaple11-3/+452
Initial support for Nova in Ansible Partially-Implements: blueprint ansible-service Change-Id: I4b0a74bd3e5daa5664f5e1e622bfb40c3285949e
2015-07-12Add temporary Ansible keystone modulesSam Yaple6-314/+189
Due to the licensing issues and the modules not existing in upstream Ansible yet, I have written a simple module to fill the gaps. This also uses Keystone v2.0 for all create of users, roles and endpoints. The implementation of Keystone v3 must be discussed after the new modules arrive. Partially-Implements: blueprint ansible-service Change-Id: I389edd56741360dd26fbbc0a982f365ca27ff446
2015-07-11Fixes an issue with AIO and galera clustersSam Yaple4-4/+11
AIO nodes had an address in the gcomm list which would prevent AIO containers from starting appropriately. Change-Id: I6db8c831ef9f9c0348748eb9539db326dc0df048 Closes-Bug: #1472481
2015-07-09Ansible Glance supportSam Yaple14-4/+204
Adds support for glance in ansible Partially-Implements: blueprint ansible-service Change-Id: I2d162e79f85877116b0e33b1843de6ccb62a445a
2015-07-08Fix permissions on log directory for keystoneSam Yaple3-7/+12
Additionally fixed bootstrap issue caused by an ansible bug in some versions of the docker module. Closes-Bug: #1472270 Change-Id: Ia5a370db5ab7690854afcd63492ba7dbbea29835
2015-07-07Merge "make merge_configs idempotent"Jenkins1-7/+16
2015-07-07Merge "Have bootstrap script create the initial endpoint"Jenkins1-0/+7
2015-07-06make merge_configs idempotentSam Yaple1-7/+16
merge_configs can now check if the destination file has the same content will be written. This information is used to inform ansible no change has occured Closes-Bug: 1471514 Change-Id: I78bce04505349d5aafbb027fd3f7d76ab6eccf6a
2015-07-05Have bootstrap script create the initial endpointSam Yaple1-0/+7
Due to a few issue that exist between keystone v3 and v2.0 the endpoint needs to be created as v2.0. If it is created as v3, v2.0 queries will not see the endpoint. https://bugs.launchpad.net/keystone/+bug/1470635 Change-Id: Ie7ff88b8cbb23b3ca149cb6e8d5a18a427d22038 Partially-Implements: blueprint ansible-service