Commit 084644a0 authored by nimrod's avatar nimrod
Browse files

- Added stub_status virtualhost.

- Added tests for dhparams and stub_status.
- Updated the Shore Ansible modules git submodule (added full Nginx version for
  use with the version_compare filter).
- Updated TODO list.
parent 2b68442c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -60,5 +60,4 @@ at: https://www.shore.co.il/git/.
TODO
----

- Status and/or metrics (http_status and http_stub_status modules).
- Rate limit (http_limit_req and http_limit_conn modules).

shore @ a6cb971d

Original line number Diff line number Diff line
Subproject commit c56188623e83f8e59b88a14d41d513d386af6c64
Subproject commit a6cb971db322ef5cc7d89f2327ec73d263e7877f
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@
    name: '{{ nginx_openbsd_pkg[ansible_distribution_release] }}'
    state: present

- name: Get Nginx version
  nginx_facts:

- name: Create configuration directories
  with_items:
  - /etc/nginx/sites-enabled
+6 −0
Original line number Diff line number Diff line
server {
    listen 80;
    listen [::]:80;
    server_name stub_status;
    {{ "stub_status" if nginx["version"]|version_compare("1.7.5", ">") else "stub_status on" }};
}
+6 −0
Original line number Diff line number Diff line
@@ -7,3 +7,9 @@
  roles:
      - ansible-role-ca-store
      - ansible-role-nginx

  post_tasks: # For testing.
      - name: Install curl
        package:
            name: curl
            state: present
Loading