Commit Graph

11 Commits

Author SHA1 Message Date
David Moreau Simard 6b581340f7
opendev: Remove content and leave an URL to the GitHub repository
Change-Id: Ibae7b876c890bd7fac8e020b159d241ae3cc5604
2021-02-25 15:29:52 -05:00
David Moreau Simard 7292c14a3e
Don't nest installation variables under a params key
We're needlessly nesting "install" under "params".
Let's not do that.

Change-Id: Ia8ed491bd92d8989a8423a9fbe3a8deb705e7dd7
2018-06-19 18:37:24 -04:00
David Moreau Simard 8857b3054c
Add support for installing from source
This provides the ability to install from source either on the
local filesystem or from pypi.

Change-Id: I883bf88638d6d4de1965f1863a4c401e58ea0126
2018-06-01 22:25:45 -04:00
David Moreau Simard b526ed4c9a
Default the ARA installation to a virtualenv
Installing ARA and Ansible system-wide by default is a bit invasive.

Let's default to a virtual environment instead. This means making
sure Apache's mod_wsgi deployment can use that virtualenv amongst
other things.

Depends-On: https://review.openstack.org/567280
Change-Id: I4d86e343b745e31e509dbc929d1fd2c2b10a3623
2018-06-01 15:56:40 -04:00
David Moreau Simard c248ca3edc
Fix the log location by using the log directory
The log file is really just the name of the log file (ara.log).
By defaulting to /var/log/ara/ara.log, the name of the log file was
expected to be /var/lib/ara/var/log/ara/ara.log which is funny but
wrong. Fix that.

Change-Id: I334ba3ec6748eeacd6a89974d0e55afd02a71e13
2018-05-01 17:05:59 -04:00
David Moreau Simard f107ec0aef
Add support for nginx with reverse proxy to embedded server
This deploys the existing embedded server service but adds a nginx
reverse proxy on top.

Change-Id: I06837e39c20ce9390a39fc1ef2ee046934e6f38a
2018-04-25 20:39:00 -04:00
David Moreau Simard 9f7de54e15
Add logrotate configuration
Change-Id: Ied65cd2cb946023549b78e603d31d98a96d13288
2018-04-25 20:39:00 -04:00
David Moreau Simard 11fd3ad042
Refactor installation, configuration and web server implementation
- Nest configuration defaults under a single dictionary
- Split webserver configuration in different trees
- Set up a user for ARA (consistent with packaging)
- Embedded service now runs under the ara user
- We no longer need or expect /var/www/ara
- Configuration is now in /etc/ara
- Database is now in /var/lib/ara
- Logs are now in /var/log/ara
- Embedded service now relies on /etc/ara/ara.cfg for configuration
- Use ini_file instead of a template for ara.cfg

Change-Id: I64e13c5c35e31245f95c85aeeaf4e4b5acda0924
2018-04-25 20:39:00 -04:00
David Moreau-Simard 8863c8887c Clean up ansible-role-ara
- Add copyright headers (sorry)
- Re-order tasks
- Add missing wsgi required packages
- Use template instead of file for default ansible.cfg
- Use handler to restart apache if need be
- Use command instead of shell unless necessary
- Fix mistakes in systemd service
- Fix mistakes in debian family required packages
- Add friendly instructions at the end of the setup
- Improve README

Change-Id: I84d59facfdc593bc82ac1d1436a49f85c2d1637b
2017-03-15 12:28:46 -04:00
Naga Ravi Chaitanya Elluri cea2a3eea8 add apache+mod_wsgi support to ara
Change-Id: Icb0ffa8b0a63ae33eda2c4fd76289b1c58858c39
2017-03-03 19:09:14 -05:00
Naga Ravi Chaitanya Elluri cbfac7ecd1 ansible-galaxy role for ara 2016-11-16 11:35:47 -05:00