aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/common/tasks
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake9-238/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-06Adding logrotate configuration for ceilometerprameswar1-0/+1
Closes-bug: #1635316 Change-Id: I3195518f1ee52249bc6259d3cab0f479f5522df1
2016-11-04Merge "add grafana log in heka"Jenkins1-0/+2
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-21Merge "Add logrotate configuration for elasticsearch"Jenkins1-1/+2
2016-10-19Add logrotate configuration for elasticsearchChristian Berendt1-1/+2
Change-Id: I6af9935e46dcd3c2f9ea18545e059e055b840d90 Closes-bug: #1634223
2016-10-19Support searchlight ansible roleliyingjun1-0/+1
Searchlight is an Openstack search and index service, this patch implements the ansible role for searchlight. Implement blueprint: support-searchlight-deployment Change-Id: Ibf42d5b259a6740d6596041f896e1009657b7388
2016-10-17Merge "Fix stale namespace removal issue"Jenkins1-1/+1
2016-10-16fix cron logrotate for saharabjolo1-0/+1
sahara.conf was not copied over to target nodes. Prevented cron container from starting Change-Id: I98ad65ad1541e1a64fb5762571556e2661611ff2 Closes-Bug: #1631944
2016-10-15Fix stale namespace removal issueJeffrey Zhang1-1/+1
When using both /run and /run/netns in docker container, mount propagation won't work when delete namespace after the containers are restarted. This PS makes /run mount as shared. Closes-Bug: #1616268 Change-Id: Ie16699e1b193b2bf1263d89ea634e89ea69add9e
2016-10-13Merge "copy iscsid logrotate config"Jenkins1-0/+1
2016-10-13Merge "Remove do_reconfigure.yml file for all roles"Jenkins2-43/+41
2016-10-13copy iscsid logrotate configWaldemar Znoinski1-0/+1
This change adds copying iscsid logrotate conf file for config task in common role. Closes-bug: #1633127 Change-Id: I7da1f9ff794ed62f1baf70c04a2f6d0ca8d426aa
2016-10-10add grafana log in hekazhubingbing1-0/+2
Change-Id: I38b57cc43411b703dbb0639a600aaef58e01bc38 Closes-Bug: #1631818
2016-10-08Remove unneeded Heka bootstrapping codeRyan Hallisey1-19/+0
The Heka bookstrap doesn't do anything different then the start code. Remove the boostrap step since it isn't needed. Change-Id: Id9906c6e2cef83fd6d1fcbcbef7a32d9948d07a3 Closes-bug: #1631651
2016-09-30Remove redundant common play and add haproxy hostsAndrew Widdersheim1-0/+2
In cf0c25c37 [0] a play was added to run the common role against all hosts. This ends up being redundant since every role includes the common role as a dependancy. The reasoning behind this change as pointed out by the author in the review comments [1] was so that an operator could run with '--tags common' and just have the common role applied. To avoid redundancy, the common play has been removed and tags have been added to the common role. This allows for just the common role to run when another role is including it while reducing redundancy. A side affect of removing the common playbook which runs against all hosts is that not all facts on all hosts are gathered at the beginning of the site.yml. This breaks the haproxy role since it relies heavily on facts to build out the haproxy.cfg file. Previously, the haproxy role would include several hosts purely for fact gathering purposes as pointed out in c68c9d95 [2] and a guard was put in place so that the tasks would only run against the 'haproxy' group. In 423e3f3f [3] these hosts were removed. After reading the review [4], this seems to have been done without fully understanding why the hosts were there in the first place. This change did not break anything however since the common role that ran on all hosts mentioned previously would gather all of the facts necessary. To fix this fact gathering issue replace the common role play with a play that will simply gather facts with an 'always' tag to ensure it is run regardless of what might be passed in the '--tags' argument by the operator. Kudos to Paul Bourke for helping identify many of these issues. [0] https://github.com/openstack/kolla/commit/cf0c25c37d4dd901a839a12247212c22493e1409 [1] https://review.openstack.org/#/c/369212/ [2] https://github.com/openstack/kolla/commit/c68c9d95fca6485c79a607b3716a88e284c7a64e [3] https://github.com/openstack/kolla/commit/423e3f3fdf07f40b46fed1125076880660d14c53 [4] https://review.openstack.org/#/c/355861 TrivialFix Closes-Bug: #1628472 Change-Id: Ia94146579e743935501f1ff4b4c1bf6cb7c43aa3
2016-09-27Remove do_reconfigure.yml file for all rolesJeffrey Zhang2-43/+41
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-22Fix idempotent for initializing toolbox container taskJeffrey Zhang1-0/+1
TrivialFix Change-Id: I643940d04ec0c2ffeb95816dde5d1438829c7464
2016-09-18Only enabled services log filesEduardo Gonzalez1-25/+26
Only enabled services logs should be added to cron container and be inclued in cron.json. This PS adds logic to only copy enabled services cron files. Change-Id: Id6303a4c77a0230599e11be165489ba46dba65e0 Closes-bug: #1623712
2016-09-14Merge "Add Senlin Ansible role"Jenkins1-0/+1
2016-09-14Merge "Fix missing cloudkitty config file for cron container"Jenkins1-0/+1
2016-09-14Add Senlin Ansible roleEduardo Gonzalez1-0/+1
Change-Id: Ic941a396b5cd9abfb5e9941218e91b784f8bba0a Implements: bp senlin-container
2016-09-14Fix missing cloudkitty config file for cron containerHui Kang1-0/+1
Change-Id: I6a2c158ae9bad9a824d04056b70a2d0cbe765a55 closes-bug: #1623314
2016-09-14fix the common upgradeJeffrey Zhang1-1/+4
Closes-Bug: #1623305 Change-Id: I21ca191cb5a45b0beb97dfe67a209999b9033cb0 Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-09-13Added serial option to site.yml.Mick Thompson1-1/+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-13Add Barbican ansible rolezhubingbing1-0/+2
Partially-Implements: blueprint barbican-ansible Change-Id: Id6be35b1d0527d5c38d4ea8576b233ebcc404718
2016-09-06Add gnocchi ansible rolezhubingbing1-0/+2
Partially-Implements: blueprint ansible-gnocchi Change-Id: I8dd0460bd21ac0a233fab0142ec7b6079459bdc2
2016-09-02Use the standard start method for kolla-toolbox containerJeffrey Zhang2-0/+3
TrivialFix Change-Id: Icb092e47713e0b89859747d6ed4c02b3950d7ced Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-08-31Merge "Add aodh role"Jenkins1-0/+2
2016-08-31Add aodh rolezhubingbing1-0/+2
Partially-Implements: blueprint ansible-aodh Change-Id: I9e20f4bf5e7d8f37f243ae15746e2b7bb49eb20c
2016-08-26Fix toolbox permission issue when enabling cephliyingjun1-0/+3
Directory /home/ansible/.ansible and file /var/log/kolla/ansible.log are not created by default in toolbox image, so when ceph enabled, the directory and file will be created with user 'root' instead of user 'ansible' after running bootstrap osds because it using sudo when bootstraping osds, this will cause permission denied issue for other commands not using sudo. Fixes this issue by initializing ansible by running 'ansible localhost --version' using user 'ansible' TrivialFix Change-Id: Ibac3f98b3b72cbe287ee1d3a69ed9cea7ae3cd9e
2016-08-08Add heka custom config to define user's log piplinejackning1-0/+10
Kolla's default heka pipline may not satisfy user's requirements, for example, sending openstack log to outer log analyze system. So it is necessary to add heka custom configuration for define user's encoders, outputs and other plugins. Change-Id: I48bd8d7e0afbc2d023c49c83041f87a04970bbb6 Closes-Bug: #1611164
2016-07-22Add Watcher ansible roles and templatesDave Walker (Daviey)1-0/+1
Previous work on Watcher added the Docker images, this change adds the ansible configuration. There is support for HA, via haproxy to balance across the Watcher API hosts. There is also a hook into nova.conf to conditionally add Nova compute Host metrics via Ceilometer if Watcher is enabled. This defaults to enabled false. Change-Id: I8763528bb6ff12943b810212c71396d2d7cf6836 Partial-bug: #1598929 Partially-implements: bp watcher Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2016-05-23Change ansible image to kolla_toolboxRyan Hallisey2-2/+2
All the images follow the same naming schema where the container name is part of the ansible variable name. Currently, the kolla_toolbox container is named ansible_image_full. Change this to match what the container name is. Could impact operators who are specifying ansible_image_full in globals.yml. TrivialFix Change-Id: I9f0cbe4bd69ce17489310a1f5734a254e6ebe27b
2016-05-03map the host localtime to the containerJeffrey Zhang2-0/+4
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-04-03Make Heka write Keepalived logs to dedicated directoryCarlos Cesario1-0/+1
Currently Heka writes the keepalived logs in /var/log/kolla/haproxy/keepalived.log. This commit changes this to /var/log/kolla/keepalived/keepalived.log. Closes-Bug: #1565499 Change-Id: I3033097bd77ddbf72948697b34a6a499ea903083
2016-03-23Merge "MariaDB is not copied if enable_rabitmq is disabled"Jenkins1-1/+1
2016-03-23MariaDB is not copied if enable_rabitmq is disabledSteven Dake1-1/+1
Eric spotted this on IRC. Submitted a bug and patch on his behalf since he isn't available to work on Kolla in the next few hours. Co-Authored-By: Eric Lemoine <elemoine@mirantis.com> Change-Id: I91efdd540170a391228d247c2e6e533e6c87b951 Closes-Bug: #1560819
2016-03-22Changes horizon log location to kolla_logs volumeSerguei Bezverkhi1-0/+1
Changes location of Horizon log, they will be stored on common log volume kolla_logs. Change-Id: Ie9d56999a83efd05ab7c3dcb00b4dc42c9bce8f8 Closes-Bug: 1560250
2016-03-19Rework heka log copyingSamYaple1-38/+25
Now that we have reconfigure we dont have to copy over all config files at the same time. TrivialFix Change-Id: I866be0f05e604151e081974a64f17bf65787f604
2016-03-17Add cron to pull playbooksSamYaple1-0/+6
TrivialFix Change-Id: I9e7e65d6e5ddfb3c387e147a8cc6f5aae1aab0cd
2016-03-10Merge "Add cron image and playbook"Jenkins2-0/+37
2016-03-09Add cron image and playbookÉric Lemoine2-0/+37
Add cron image and playbook for logrotate. The "common" Ansible playbook includes configuration files for logrotate. At this point the operator cannot customize/override the logrotate configuration. Closes-Bug: #1553244 Change-Id: Ic9fdda9a273c9ccd90502f0acc7614d2c7157dca
2016-03-09Remove storage_hostnameSamYaple1-9/+0
This was an attempt to get storage_interface to work properly but that work will not be completed and functional this cycle. There are design topics that need to be discussed about it that were brought to light by the RAX gate failing for it. TrivialFix Change-Id: I65579f9e0e0dcf3fa51c0ea031ff474145457c40
2016-03-08Add "heka-elasticsearch.toml" to /etc/heka in heka bootstrap container.Rodolfo Alonso1-0/+1
Missing file during the config procces of bootstrap container. Change-Id: I600c0ca9c60bddae16310be1fcb65f3be482a599 Closes-Bug: #1554449
2016-03-07Merge "Move hostname registration to common"Jenkins1-0/+9
2016-03-07Fix "wait for log socket" in start.shÉric Lemoine1-0/+3
The code in docker/base/start.sh that waits for the log socket does not work because it includes a bad "space" character after "-S". This patch changes that character to a real "space" character. It also sets the SKIP_LOG_SETUP envvar for the Heka container. TrivialFix Change-Id: I17a3005df5bbd57678350fc77030e44b5ad6acae
2016-03-05Merge "Make Heka send logs to Elasticsearch"Jenkins1-0/+8
2016-03-05Make Heka send logs to ElasticsearchÉric Lemoine1-0/+8
This patch includes changes relative to integrating Heka with Elasticsearch and Kibana. The main change is the addition of an Heka ElasticSearchOutput plugin to make Heka send the logs it collects to Elasticsearch. Since Logstash is not used the enable_elk deploy variable is renamed to enable_central_logging. If enable_central_logging is false then Elasticsearch and Kibana are not started, and Heka won't attempt to send logs to Elasticsearch. By default enable_central_logging is set to false. If enable_central_logging is set to true after deployment then the Heka container needs to be recreated (for Heka to get the new configuration). The Kibana configuration used property names that are deprecated in Kibana 4.2. This is changed to use non-deprecated property names. Previously logs read from files and from Syslog had a different Type in Heka. This is changed to always use "log" for the Type. In this way just one index instead of two is used in Elasticsearch, making things easier to the user on the visualization side. The HAProxy configuration is changed to add entries for Kibana. Kibana server is now accessible via the internal VIP, and also via the external VIP if there's one configured. The HAProxy configuration is changed to add an entry for Elasticsearch. So Elasticsearch is now accessible via the internal VIP. Heka uses that channel for communicating with Elasticsearch. Note that currently the Heka logs include "Plugin elasticsearch_output" errors when Heka starts. This occurs when Heka starts processing logs while Elasticsearch is not yet started. These are transient errors that go away when Elasticsearch is ready. And with buffering enabled on the ElasticSearchOuput plugin logs will be buffered and then retransmitted when Elasticsearch is ready. Change-Id: I6ff7a4f0ad04c4c666e174693a35ff49914280bb Implements: blueprint central-logging-service
2016-03-03Move hostname registration to commonSamYaple1-0/+9
The storage hostname is used in many conf files all over the place and should be registered upon each run for every service TrivialFix Change-Id: I1d5a20cb6d51cee9f529cf2e1fb144158f7718a9