aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/keystone/tasks/bootstrap.yml
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake1-41/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-05-13add support for non-default database_port in kolla/ansibleWaldemar Znoinski1-2/+2
This change makes each step of the kolla deployment aware of the port database was configured to listen on. It defaults mariadb_port to database_port. Change-Id: I8e85d5732015afc0a5481cb33e0b629fdfa84a1b Closes-Bug: #1576151 DocImpact
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple1-2/+2
This change is needed for clarity. We have a kolla-ansible script. We have a kolla-mesos repo. We plan to have a kolla-ansible repo. Already we have had far too much confusion about whether we are talking about the container or the project. Naming this kolla-toolbox eliminates all of that confusion and its probably a bit more accurate of a name too. Closes-Bug: #1541053 Change-Id: I8fd1f49d5a22b36ede5b10f46b9fe02ddda9007e
2016-01-13Playbook for keystone upgradeMichal Jastrzebski1-14/+1
New playbook for keystone release upgrade. Co-Authored-By: SamYaple <sam@yaple.net> Change-Id: I387abb30e5ead0033430848164d250fce739d2fd Implements: blueprint upgrade-keystone Partially-Implements: blueprint upgrade-kolla
2015-12-31Convert Keystone to kolla_dockerSamYaple1-32/+9
Change-Id: Ia1beaf8205317f8c628fa1efcb65be90a9ad8237 Partially-Implements: blueprint kolla-docker-module
2015-12-22Remove unneeded variables passed into keystoneSamYaple1-7/+0
During the bootstrap we no longer need to pass in this info TrivialFix Related-Bug: #1526251 Related-Id: Ieee215b9de1618b3d31f3d1a766a9d0ebafdee4d Change-Id: I82460cf11dea4692c0469bf2b9afddd794a30ec1
2015-11-23Fix incorrect ansible variableSam Yaple1-1/+1
Change-Id: Ic6755dfe5c3741e4a945c8353f643bbf1479c172 Closes-Bug: #1519040
2015-11-23Make the database json variable more readableSam Yaple1-6/+11
Additionally remove tty from the container cleanup docker section. It was added in a sed in a previous patchset by serves no purpose. Change-Id: Ib617870616bca687f72ffaa44b2e9a3a11ef1011 Partially-Implements: blueprint cleanup-playbooks
2015-11-23Fix bootstrap for servicesHui Kang1-0/+5
The bootstrap tasks could be started on any node listed in the site.yml The issue is that all the tasks must run on the same node, and the only node that all the tasks can run on is the 'api' node due to needing to start the bootstrap container which binds in the configs. delegate_to is required to ensure that the proper node gets the task. Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Ica04ab366777a571a92212ac22c482f1881d4ecd Closes-Bug: #1513598 Related-Bug: #1513439
2015-11-09Incorrect parsed variable nameSam Yaple1-1/+1
database_user_create was not correctly referenced when parsing the variable names. This could never actually lead to a situation that reported a false change, but it could break an operation if you were using the --step option with ansible and skipped the database create task. TrivialFix Backport: Liberty Change-Id: Idf69fffcc3814f509448ccea11b7d175f074ccf1
2015-10-14Add tty to containersSam Yaple1-0/+2
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 Yaple1-1/+1
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
2015-09-18Replace config-external with a JSON file for Keystonerthallisey1-1/+1
Change-Id: I4c403edb7cd16f587f30a313c1943f070512eda3 Partially-Implements: blueprint replace-config-external
2015-09-06Properly check failed statusSam Yaple1-5/+1
No need for a new task. Change-Id: I958f87ac9a1434a2f6052e0271f37e5f3109775e Closes-Bug: #1492337
2015-09-04Check exit status of bootstrap containersVladislav Belogrudov1-0/+6
Currently bootstrap containers are waited to exit but are not checked for exit status and ansible runs further tasks. If bootstrapping fails we notice it at much later time. Change-Id: I137fc11b0f9d1f03d2ded08a213e8dbd62741f92 Closes-Bug: #1492337
2015-08-31Merge "Fix typo in task bootstrap task names"Jenkins1-1/+1
2015-08-31Fix typo in task bootstrap task namesPaul Bourke1-1/+1
Not quite halloween yet... Change-Id: Ib1973eea0b2dddc0e0845731d1212c4d4447cca5 Closes-Bug: #1490502
2015-08-30Keystone container should use the openstackclientSam Yaple1-2/+2
Initially it did not use this client due to the fact that the client didn't seem to want to work in the containers. Now it works fine and it should be used instead of the deprecated keystone client Change-Id: Ib0e172c677e200e5df01c478b7ea257b30c0df0b Closes-Bug: #1490126
2015-08-20Use database_user_create in the register operationSteven Dake1-3/+3
The register operation was registering user_database which is a global variable in group_vars/all.yml. This results in glance not being deployable because user_database is overwrriten at keystone task registration time. The result of this is the playbooks fail to deploy. Change-Id: Ic69725fb09aa0a368ec5b0d8f47bfc768c29c70c Closes-Bug: #1486876
2015-08-13Update mariadb confs and portsSam Yaple1-0/+2
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-10Ansible should wait bootstrap container on first hostVladislav Belogrudov1-0/+1
Bootstrapping of Keystone/Glance happens on first host via 'run_once'. After running bootstrap containers we should wait for them also on the same host. Currently waiting is done on all hosts what gives task error on other hosts. Change-Id: I6eac928d405ea819982118d9b567988074be4ed2 Closes-Bug: #1483224
2015-08-08Remove Ansible abstraction for KeystoneSam Yaple1-12/+58
Change-Id: I0daf8b78f39b919d2b88336322203f1d643fc54b Partial-Bug: #1482214 Partially-Implements: blueprint remove-abstraction-ansible
2015-07-08Fix permissions on log directory for keystoneSam Yaple1-3/+3
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 "Have bootstrap script create the initial endpoint"Jenkins1-0/+7
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
2015-07-05Change restart policy for bootstrap containerSam Yaple1-0/+1
Sets the restart policy to 'no' for bootstrap containers Change-Id: I1044fdc70a6b7d50396fd923b6be67bd7c47faa2 Closes-Bug: 1471536
2015-07-03Updated keystone for wsgi in config-externalSam Yaple1-3/+3
This will switch config-external to using wsgi vs evenlet for keystone. Partially Implements: blueprint ansible-service Change-Id: I85a88c813ed36d827916796199dad735b2d44b40
2015-06-30Add initial config function and keystone supportSam Yaple1-0/+14
Add set_configs function that implements the flow from the proposed ansible-multi spec. Move start.sh to config-internal.sh to preserve existing behaviour. config-externall.sh copies the appropriate configs in from the bind'd location and sets permissions and ownership appropriately. Partially Implements: blueprint ansible-multi Change-Id: I53fca0660451087f273fefc3c63e0d8cf1a2c096