Commit Graph

476 Commits

Author SHA1 Message Date
Alessandro Fael Garcia
60afd2089d
Update minimum Ansible version (#220) 2020-01-29 17:08:33 +01:00
Alessandro Fael Garcia
ff010179bc
Add Ansible and Molecule versions to Travis (#217)
Always pulling the latest version may lead to some issues. Versions should only be updated after successfully testing the latest release.
2020-01-18 15:50:54 +01:00
Seena Fallah
0b176f847a Make ssl optional for listeners (#215) 2020-01-09 16:40:36 +01:00
Alessandro Fael Garcia
d661ff4db9
Only add Debian repositories when installing role in amd64 archs (#212) 2019-12-30 18:46:15 +01:00
erbap
50a6338a35 apt update (after installation from the nginx repo) gives an err… (#211) 2019-12-27 16:07:49 +00:00
Alessandro Fael Garcia
b5baf3a2ae
Improve documentation (#206)
* Create CONTRIBUTING.md
* Add PR template
* Tweak .yamllint
* Update README playbook examples
2019-12-13 12:11:30 -08:00
Alessandro Fael Garcia
36ba93a5d7
Create CODE_OF_CONDUCT.md 2019-12-12 14:22:11 -08:00
Alessandro Fael Garcia
34899a6b15 Update issue templates 2019-12-12 12:44:40 -08:00
Alessandro Fael Garcia
f54b7d2f90
Add new method to install the NGINX Controller agent (#205) 2019-12-11 18:25:20 -08:00
Alessandro Fael Garcia
3b6c744166
Delete NGINX Plus repository when license is deleted (#204)
This fixes a bug when only the license is deleted, making system updates fail since the NGINX Plus repository is still within the repositories list yet there is no license to authenticate to the repository
2019-12-11 12:45:12 -08:00
Alessandro Fael Garcia
905d6c7531
Let users define the target https redirect variable (#203)
Fixes #153
2019-12-06 20:51:11 -08:00
Alessandro Fael Garcia
8baa94e736
Add option to use/update to the latest version of NGINX (#202)
Resolves #132
2019-12-06 16:48:15 -08:00
Vladimir Botka
c2c0bb990a Split defaults/main.yml to more files in directory defaults/main (#200) 2019-12-06 13:37:16 -08:00
Vladimir Botka
cc4311dd05 Configure min_ansible_version (#201) 2019-11-29 03:32:17 +00:00
Pritpal Sabharwal
f56855bd16 Don't enforce the use of lb_method in upstream. (#199) 2019-11-29 03:21:32 +00:00
Alessandro Fael Garcia
e4e68376f5 Add testing and use correct repository for CentOS/RHEL 8 2019-11-26 22:12:09 +01:00
Seena Fallah
4ad659a784 Fixed bug on tcp_nopush and tcp_nodelay for nginx.conf.j2 (#198) 2019-11-26 14:30:05 +01:00
Vladimir Botka
31beec2e7b NGINX Plus separate installation of Linux and FreeBSD (#193)
* Added variable nginx_plus_linux_families: ['Alpine', 'Debian', 'RedHat', 'Suse']
* Added variable nginx_plus_bsd_systems: ['FreeBSD']
* Added variable nginx_freebsd_extra_packages: ['security/ca_root_nss']
* Installation of Linux moved to install-plus-linux.yml
* Installation of FreeBSD moved to install-plus-bsd.yml
* Installation of nginx_freebsd_extra_packages moved to tasks/prerequisites/setup-freebsd.yml
* Installation of NGINX Plus tested with FreeBSD 12.0; Lint passed
2019-11-26 14:15:55 +01:00
Seena Fallah
ce58eeabbd Add tcp_nopush and tcp_nodelay vars (#197) 2019-11-26 14:14:46 +01:00
Seena Fallah
1771878e9e Add multiple servers for reverse proxy template (#194)
* Change custom options to better reflect multiple server support
2019-11-26 00:46:03 +01:00
Pritpal Sabharwal
cb014cdab4 Added proxy_cache_valid support (#192) 2019-11-25 22:51:54 +01:00
Vladimir Botka
baafb8d7de Add vi and emacs autosave files to .gitignore (#195) 2019-11-24 17:28:03 +01:00
Alessandro Fael Garcia
f6c48c12d6
Add Alpine tests to all molecule scenarios (#191)
* Use distro specific Ansible modules to install NGINX

* Install NGINX directly in Alpine distributions from the official repository to avoid naming conflicts

* Set travis_wait parameter to max timeout setting
2019-11-24 02:10:55 +01:00
Alessandro Fael Garcia
59e0170313
Fix OSS Alpine installation and add Alpine test coverage (#190) 2019-11-22 15:52:34 +01:00
Alessandro Fael Garcia
16f21c5c7c
Optimise testing and fix CentOS GeoIP module (#185)
* Use slim Debian images for testing 
* Update `volume_mounts` to `volumes`
* Update and move default Dockerfile
* Use normal centos image
* Add epel-release prerequisite to CentOS modules
* Separate module and template tests
2019-11-21 19:53:30 +01:00
Seena Fallah
3778113cde Add proxy_sent_timeout and make upstream zones optional (#188)
* Add proxy_send_timeout variable

* Make zone parameter optional
2019-11-21 13:15:18 +01:00
Vladimir Botka
fd88f4cb22 Tags added to main.yml (#186)
* Tags added to each import_tasks in main.yml
2019-11-19 15:47:29 +01:00
Vladimir Botka
27d94628bd Separate installation of Linux and BSD (#182)
* Added variable nginx_linux_families: ['Debian', 'RedHat', 'Suse']
* Added variable nginx_bsd_systems: ['FreeBSD', 'NetBSD', 'OpenBSD', 'DragonFlyBSD', 'HardenedBSD']
* Handler started only in "not ansible_check_mode" to avoid --check failure when service hes not been installed yet
* Installation of Linux moved to install-oss-linux.yml
* Installation of BSD moved to install-oss-bsd.yml
* File setup-freebsd.yml deleted
2019-11-18 21:09:10 +01:00
Alessandro Fael Garcia
78c21d4346
Add variable to set location of NGINX status conf file (#184) 2019-11-18 17:14:00 +01:00
scodeman
7785babce1 Add support for multiple rewrite directives as per nginx conf (#176) 2019-11-04 23:41:25 +01:00
Alessandro Fael Garcia
41aeda300d
Add option to specify the version of NGINX to install (#177)
And remove outdated Debian Jessie Molecule tests
2019-11-03 15:07:38 +01:00
Alexander Maslov
cca5dbb37d Add server_tokens (#173) (#175) 2019-10-25 11:16:03 +02:00
Yuan-Yi Chang
a236c73af8 Add custom_options (#167) 2019-10-20 17:52:56 +02:00
Alessandro Fael Garcia
1c9a1278b3
Reload NGINX after cleaning up configs (#174) 2019-10-17 21:21:17 +02:00
Alessandro Fael Garcia
1d0cb1083f
Update README (#171)
And remove old tests leftover file
2019-10-13 23:26:47 +04:00
Alessandro Fael Garcia
11bbdfeba8
Create Travis build matrix for molecule builds (#172)
* Create Travis build matrix for molecule builds

* Set env variables
2019-10-13 22:23:35 +04:00
Thomas Boros
af54ab1401 Fix module installation when with plus (#162)
* Fixes module installation when nginx_delete_license is set to true with plus license
2019-10-03 18:10:51 +02:00
Alessandro Fael Garcia
c6c133674e
Add templating options to logs (#169)
Resolves #152
2019-10-02 19:29:59 +02:00
Benoit de Chezelles
3b0e39f870 Add setting worker_rlimit_nofile (#164)
* Add setting worker_rlimit_nofile
2019-08-23 16:00:20 +02:00
Alessandro Fael Garcia
a92d424bdb
Add support for Debian Buster (#163)
Closes #151
2019-08-07 22:16:27 +02:00
Carl Bäckström
b2fc8b5621 Added option to set allows and denies for locations (#133) 2019-08-05 20:20:12 +02:00
Zeno Grandi
487a2d0c07 Use Molecule for testing (#158)
* Ported test playbooks to Molecule scenarios

* Update Travis integration

* Delete legacy tests
2019-08-03 12:53:21 +02:00
Philip Henning
ea1a3626db Add IPv6 listener support; Make listen options configurable (#147)
* Add IPv6 listener support; Make options (besides 'ssl' and 'ipv6only=on' for IPv6 listeners) configurable.

* Combine listen directives for ssl and non ssl listeners and add the ssl option automatically when it is needed.

* Add comment from README also to defaults/main.yml

* Add support for multiple listen directives
2019-07-29 19:39:58 +02:00
Stanislav Mekhonoshin
5416fb28e0 Add ability to rewrite proxy pass locations (#161) 2019-07-26 23:21:34 +02:00
Philip Henning
a8b7fff7fc Return (#148)
* Add possibity to just have a location with a return in it.
2019-07-17 13:10:09 +01:00
Zeno Grandi
42f776f7d8 Support for 'include' directive in http templating (#160)
* Added 'include' directive in http templating

* Added 'include' directive in stream templating
2019-07-17 13:32:47 +02:00
Zeno Grandi
1724fecdd8 Support 'client_max_body_size' (server, location) (#157)
* Support 'client_max_body_size' (server, location)

* Added 'client_max_body_size' to default/main.yml
2019-07-15 20:42:15 +02:00
Andrew N Golovkov
b1ee7e7ff2 Make some variables optional. (#156)
* make variable nginx_main_template.http_global_autoindex optional

* make location variables autoindex, html_file_location and html_file_name optional
2019-07-15 19:12:44 +02:00
Philip Henning
421882389d Proxy cookie path (#150)
* Add proxy_cookie_path directive to rewrite the cookie path

* delete unnecessary spacing
2019-07-15 18:58:35 +02:00
Philip Henning
a8dfb5b7df Add proxy_hide-header directive (#144)
* Add proxy_hide-header directive

* Add proxy_hide_headers to tests

* Add comment's also to defaults/main.yml
2019-07-15 14:49:10 +02:00