summaryrefslogtreecommitdiffstats
path: root/ansible
Commit message (Collapse)AuthorAgeFilesLines
* big reorg: prepare for generalizationPavel Raiskup2014-10-227-107/+0
| | | | | | | | | | | | Try to split into three separate components -> controller, tester, and 'tasks' (postgresql-tasks in our case). The controller component is the main part which is able to run the task remotely. Tester is more-like library for 'tasks' component (should be reusable on the raw git level). * controller: Almost separated component. * postgresql-tasks: Likewise. * tester: Likewise.
* run_remote/ansible: wait for VM start 10 minutesPavel Raiskup2014-10-211-1/+1
| | | | | | .. as the default 180s seems to often not sufficient. * ansible/fedora.yml: Add wait_for=600 to nova_compute.
* run_remote: allow installing not-yet-stable packagesPavel Raiskup2014-10-203-1/+12
| | | | | | | | | | | | | | | | For that purpose you may use '--extra-rpms-file FILE' option where the file contains list of rpms to be installed. The RPMs should be defined like accessible URLs from testing machine. Also, export the overall log file as dtf-run.overview. * run_remote: Add new option --extra-rpms-file. * ansible/fedora.yml: Include conditionally the additional-packages playbook. Generate the dtf-run.overview. * ansible/include/additional-packages.yml: New playbook used to install explicit list of additional packages. * ansible/include/download-results.yml: Fix to download also dtf-run.overview file.
* controller: configuration cleanupPavel Raiskup2014-10-142-18/+12
| | | | | | | | | | | | | | | | | | | | | | | Better define configuration and provide examples. * controller: Unpack results to correct directory, load the configuration from new place, call run_remote with proper arguments, generate 'results.html' with result_stats script. * ansible/run_include: Adjust to better simulate run_remote. * ansible/fedora.yml: Adjust for fixed configuration. * run_remote: Likewise. Also small issues with option parsing fixed. * config.sh.template: Moved as config/config.sh.template. * config/config.sh.template: Copyyed from /config.sh.template, better documented options. * run: Fix typo - use 'while read i' instead of 'for i in'. * config/os/EXAMPLE.sh: New file - exmaple configuration. * private/os/EXAMPLE.yml: Likewise. * config/hosts.template: Likewise. * dist.include: New file with file patterns that should be distributed to test machine. * dist: Distribute only those files which are necessary. * config/.gitignore: New gitignore file.
* ansible: fix syntaxe errorsPavel Raiskup2014-10-142-5/+5
| | | | | | * ansible/fedora.yml: Remove leading dashes from before dict keys. * ansible/include/download-results.yml: Make sure that trailing slash is added to fetch destination.
* ansible: add result downloadingPavel Raiskup2014-10-122-2/+14
| | | | | | | * ansible/fedora.yml: Make the ./run non-fatal. Include download-results.yml and add skeleton for VM shutdown. * ansible/include/download-results.yml: Download the run results into directory specified by opt_tmp_resultdir.
* run_include: fix to be more like 'run_remote'Pavel Raiskup2014-10-122-5/+15
| | | | | | | * ansible/dummy-wrapper.yml: Do not require 'script_name' variable. * ansible/run_include: Better work with actual directory when including other scripts or searching for included playbook.
* ansible: incorporate os1 triggersPavel Raiskup2014-10-035-0/+80
* ansible/dummy-wrapper.yml: Helper playbook to directly invoke "included" playbooks. * ansible/fedora.yml: The "main" playbook (new file). * ansible/include/beakerlib.yml: New file, install beakerlib remotely. * ansible/include/prepare-testenv.yml: Install the test dependencies remotely. * ansible/run_include: Helper script to run included playbooks. * dist: Do not distribute ansible playbooks in tarball. * get_machine: Helper script to obtain openstack machine, not used currently. * lib_pgsql.sh: Assert for PG_VERSION, not for datadir (as it by default exists after postgresql-server installation. * run_remote: Helper script invoking the main ansible playbook. * ansible_helpers/wait-for-ssh: Helper script as 'wait_for' is broken? * README: Document. * .gitignore: Ignore private files.