Commit Graph

16 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 5eaafe1030
Automatically install pymysql or psycopg2 if necessary
If a user is supplying a pymysql or psycopg2 connection string, the
necessary driver needs to be installed before it can be used.

Change-Id: I4655c9a39fea6a43f7e579f099d61836577202f0
2018-10-17 00:11:16 -04: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 ce12da282e
Listen on 127.0.0.1 by default
ansible_default_ipv4.address is sort of unreliable or sometimes
the ip address is actually not useful since floating IP addresses
(unknown to the host) are used.

Default to 127.0.0.1 instead which is a secure default.

Change-Id: Idd232b0ddc0ee8533715012e89918b4f76e59901
2018-06-19 10:19:03 -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 a9b8f25c01
Update license headers to match ARA
Change-Id: I788310bf0af3c0bb201f490264f8b1c67fac517f
2018-04-25 20:49:18 -04:00
David Moreau Simard a0961948c8
Provide a hook for overriding configuration
Change-Id: Id2e3370c359e530219927e8f89c0c80443031bd9
2018-04-25 20:39:00 -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 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
Nicolas Hicher 871f825406
Refactoring ara role
- split embedded and apache configuation in separate files
- use systemd to launch and enable httpd or embedded server
- remove unused handler

Change-Id: I25c92b2b38125826087957fb8ce9320641cf86f0
2018-03-30 08:10:49 -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 2e514e8f92 change default port 2016-11-16 12:44:10 -05:00
Naga Ravi Chaitanya Elluri cbfac7ecd1 ansible-galaxy role for ara 2016-11-16 11:35:47 -05:00