Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install project dependencies #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion playbooks/roles/apache2/tasks/main.yaml
Expand Up @@ -31,7 +31,8 @@

- name: enable mpm_prefork
command: a2enmod mpm_prefork
when: not mpm_prefork.stat.exists
when: not mpm_prefork.stat.exists and
(ansible_lsb.id == "Ubuntu" and ansible_lsb.release == "14.04")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently mpm_prefork is the default for apache 2.2

http://httpd.apache.org/docs/2.2/mpm.html#defaults


- name: remove the default virtual host
file:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/echo/templates/apache/echo.vhost
Expand Up @@ -5,9 +5,11 @@
ServerLimit {{ virtual_hosts * process_count }}
MaxClients {{ virtual_hosts * process_count }}
StartServers {{ virtual_hosts * process_count }}
{% if apache24|success -%}
MinSpareServers {{ process_count }}
MaxSpareServers {{ process_count }}
MaxRequestWorkers {{ virtual_hosts * process_count * thread_count }}
{%- endif %}

<VirtualHost *:80>
WSGIScriptAlias / /var/echo/echo.py
Expand Down
7 changes: 7 additions & 0 deletions playbooks/roles/keystone/tasks/main.yaml
Expand Up @@ -75,6 +75,13 @@
- keystone
- python-keystoneclient

- name: install project requirements
pip:
requirements=/opt/{{ item }}/requirements.txt
with_items:
- keystone
- python-keystoneclient

- name: run database migrations
command: keystone-manage db_sync

Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/keystone/templates/apache/keystone.vhost
Expand Up @@ -5,9 +5,11 @@
ServerLimit {{ virtual_hosts * process_count }}
MaxClients {{ virtual_hosts * process_count }}
StartServers {{ virtual_hosts * process_count }}
{% if apache24|success -%}
MinSpareServers {{ process_count }}
MaxSpareServers {{ process_count }}
MaxRequestWorkers {{ virtual_hosts * process_count * thread_count }}
{%- endif %}

Listen 5000
Listen 35357
Expand Down