Emilien Mantel
57968b50c0
Restart nginx on SSL file writes
2017-11-03 10:30:24 +01:00
Emilien Mantel
10bd837f54
Setup is now 'handled'
2017-10-26 15:50:59 +02:00
Emilien Mantel
4b3b857733
Remove heavy code (nginx filename) using a filter
2017-10-26 15:33:00 +02:00
Emilien Mantel
36652f4742
Move upstream templates to conf.d
2017-10-26 11:09:21 +02:00
Emilien Mantel
463ce45105
New PHP management
...
- New versions (7.x)
- PHP upstream name
- Sites can use : default PHP version, select first one by PHP version,
select by upstream name
- Add PHP filter plugin
2017-10-26 11:04:38 +02:00
Emilien Mantel
de40c07ac5
Better readability
2017-10-03 17:57:35 +02:00
Emilien Mantel
54dd1ef3c0
Remove legacy code
2017-10-03 17:38:06 +02:00
Emilien Mantel
b72263f7e5
Fix failures on travis
2017-07-27 14:56:43 +02:00
Emilien Mantel
6935404939
Improve syntax readability
2017-07-27 12:21:10 +02:00
Emilien Mantel
acf8de8f87
Fix warning on when
2017-07-27 12:01:59 +02:00
Emilien Mantel
50e25d45b8
Elegent fail for htpasswd+stretch ( #28 related)
2017-07-27 11:50:48 +02:00
Emilien Mantel
4d819ac2a1
Add tags to ssl and site configuration
2017-07-19 15:57:41 +02:00
Emilien Mantel
3ae791ec47
Role can be fully called in check mode
2017-06-01 11:38:22 +02:00
Emilien Mantel
cbdfc741ba
Renaming variables *vhost* -> *site*
...
Vhost is an Apache configuration, not Nginx.
Manages backward compatibility.
2017-04-25 12:27:08 +02:00
Emilien Mantel
fcb59fd331
no_log when deleting htpasswd files
2017-03-14 11:21:35 +01:00
Emilien Mantel
7892626fc0
Load module from {{nginx_dir}}/etc/modules-enabled
2017-03-13 09:53:29 +01:00
Emilien Mantel
f2cfae31b1
Update APT cache should not "change"
2016-12-08 17:34:59 +01:00
Emilien Mantel
481bcd34b1
no_log while creating SSL directories
2016-12-08 09:19:12 +01:00
Emilien Mantel
875c7cfb2e
Async task: generate dh
2016-12-07 07:48:32 +01:00
Emilien Mantel
8caddedc68
Deploy custom facts with nginx_vhosts
2016-11-29 14:32:27 +01:00
Emilien Mantel
4a3aed6974
no_log on task : Deploy SSL certs
2016-11-29 09:35:53 +01:00
Emilien Mantel
8ccc9f521f
Secure files permission
2016-11-25 11:33:20 +01:00
Emilien Mantel
999f226838
Delete useless test
2016-11-07 17:40:00 +01:00
Emilien Mantel
6b1366298f
no_log on sensitive data
2016-11-02 14:48:49 +01:00
Emilien Mantel
41a5575627
Dynamic modules starts at version 1.9.11
2016-10-12 18:16:53 +02:00
Emilien Mantel
42bb4a3e2b
Dynamic module management ( closes #23 )
2016-10-12 18:13:59 +02:00
Emilien Mantel
ef3440a015
Bug fix: vhost with absent state is not deleted in sites-enabled
2016-10-10 14:35:46 +02:00
Emilien Mantel
c4ee6eb1a2
vhost.filename used by log and directories creation
2016-10-07 10:50:05 +02:00
Emilien Mantel
a2e6e98436
Add new feature: nginx_fastcgi_fix_realpath
2016-08-30 17:14:34 +02:00
Emilien Mantel
cf662acdd7
Fix condition when creating vhosts
2016-08-30 11:18:14 +02:00
Emilien Mantel
34c8d1926f
Vhost state ( closes #19 )
2016-08-30 11:06:38 +02:00
Emilien Mantel
634d88874f
Backward compatibility with nginx_php variable
2016-08-30 10:52:28 +02:00
Emilien Mantel
88c6c5a043
Manages PHP minor versions
2016-08-11 11:30:26 +02:00
Emilien Mantel
c160640c7f
Force latest version of openssl when uses nginx from backports
2016-08-11 10:36:50 +02:00
Emilien Mantel
887219f86c
Force install OpenSSL from backports when nginx uses backports
2016-08-11 10:25:45 +02:00
Emilien Mantel
e4b5bb2a32
Support many php versions (php7) + drop wheezy support
2016-08-09 16:02:09 +02:00
Emilien Mantel
af3930a58a
New feature: upstream state (remove upstream if needed)
2016-05-11 17:21:52 +02:00
Emilien Mantel
1204dbacd1
[FreeBSD] Enable nginx service
2016-03-15 23:12:17 +01:00
Emilien Mantel
3087154335
[FreeBSD] restart nginx on vhost config changed
2016-03-15 23:00:55 +01:00
Emilien Mantel
72edbe8656
[FreeBSD] Force create log dir
2016-03-15 22:49:19 +01:00
Emilien Mantel
d223f8b144
Add a check for HTTPS redirect
2016-03-15 09:22:01 +01:00
Emilien Mantel
5e493c15ac
Fix deprecation warning
2016-03-14 19:21:47 +01:00
Emilien Mantel
9b5f136510
Fix trailing whitespaces
2016-03-09 11:20:19 +01:00
Emilien Mantel
7cc44bc009
Fix regression (merge?): filename for vhosts
2016-03-09 11:15:37 +01:00
Emilien Mantel
2cfda9a930
Fix check HTTP2 on FreeBSD (multi-OS code)
2016-03-08 19:37:39 +01:00
Emilien Mantel
33f34a0550
Manage FreeBSD nginx package name
2016-03-07 12:08:34 +01:00
Emilien Mantel
972555ce22
Minor fixes
2016-03-07 11:59:26 +01:00
Emilien Mantel
c13cb0d770
PHP works on FreeBSD
2016-03-05 17:26:05 +01:00
Emilien Mantel
791832f6d1
Config seems ok
2016-03-05 15:36:25 +01:00
Emilien Mantel
e00313bb36
[WIP] FreeBSD install ok
2016-03-05 15:07:39 +01:00
Emilien Mantel
e139ab3e35
Fix deprecation warnings
2016-03-05 11:37:37 +01:00
Emilien Mantel
26a50945c5
Split apt update cache (fix install when cache is outdated)
2016-02-09 18:36:48 +01:00
Emilien Mantel
4dc28d9471
Delete useless tasks
2016-02-09 17:17:44 +01:00
Emilien Mantel
dd97e5ec79
Apps vhosts should without root and created dirs
2016-01-22 09:46:43 +01:00
Emilien Mantel
75d815b4a4
Revert "Bypass htpasswd module bug (state=absent on missing file)"
...
This reverts commit f8d138828b
.
2016-01-21 17:09:54 +01:00
Emilien Mantel
520eed50c3
Manage default vhost. Closes #11
2016-01-21 17:08:01 +01:00
Emilien Mantel
11c98ab145
SSL with existing keys
2016-01-12 17:26:30 +01:00
Emilien Mantel
ef5a7bf756
Closes #9
2016-01-12 15:10:43 +01:00
Emilien Mantel
2f6f2d4362
Fix variable check
2016-01-12 15:01:01 +01:00
Emilien Mantel
ccba868390
Improve checks SSL/TLS + vhost
2016-01-12 14:40:09 +01:00
Emilien Mantel
883948f081
Better dh management
2016-01-12 11:16:41 +01:00
Emilien Mantel
8a30223bb9
Fix upstream (php is optional)
2016-01-11 23:55:33 +01:00
Emilien Mantel
49f11751e6
Refactoring + SSL support
2016-01-11 18:20:42 +01:00
Emilien Mantel
f64e1f1106
New feature: install nginx from backports
2016-01-11 15:18:21 +01:00
Emilien Mantel
e0bb5e2752
Add feature: new custom instructions
2015-12-09 17:06:59 +01:00
Emilien Mantel
f8d138828b
Bypass htpasswd module bug (state=absent on missing file)
2015-12-04 08:54:59 +01:00
Emilien Mantel
c0f2d694e7
Meilleure gestion des dossiers et htpasswd par location
2015-12-03 16:32:08 +01:00
Emilien Mantel
9779555ac8
Few minor changes
2015-12-01 16:35:56 +01:00
Emilien Mantel
80e3cae22e
New feature on vhosts: "redirect_to"
2015-12-01 15:46:57 +01:00
Emilien Mantel
3fdc16578c
Improve file deletions
2015-11-30 14:41:35 +01:00
Emilien Mantel
1d56fc249d
Deleted vhost don't need a template
2015-11-30 12:16:17 +01:00
Emilien Mantel
bfe4a315f9
Vhost dir
2015-11-05 15:38:18 +01:00
Emilien Mantel
9fcba824f5
Create root directory
2015-11-04 09:16:59 +01:00
Emilien Mantel
d1dbdb83d4
Fix idempotence
2015-11-03 15:09:14 +01:00
Emilien Mantel
bee0cb9a66
Remove template validation
2015-11-03 14:54:35 +01:00
Emilien Mantel
6be44c7da8
Many minor changes
2015-11-03 14:45:01 +01:00
Emilien Mantel
a0a6e35a3a
Only reload nginx
2015-11-03 14:38:47 +01:00
Emilien Mantel
70529e223d
nginx_vhosts[x].name now accepts list or string
2015-10-22 10:25:30 +02:00
Emilien Mantel
96bbc47d27
First shot proxy (unstable)
2015-10-08 18:21:40 +02:00
Emilien Mantel
fdc08b99a9
Fix: recurse=yes breaks idempotence
2015-08-07 03:51:02 +02:00
Emilien Mantel
88cdaece38
Fix idempotent: vhost disabled/deleted
2015-07-31 01:02:37 +02:00
Emilien Mantel
ec94521c5b
Migrate to jinja block ok
2015-07-30 13:02:21 +02:00
Emilien Mantel
cb21e152b7
Don't create directory if root specified
2015-07-16 16:31:21 +02:00
Emilien Mantel
721606056d
PHP works
2015-07-15 16:26:27 +02:00
Emilien Mantel
1d025d1f35
Moving files
2015-07-15 15:42:32 +02:00
Emilien Mantel
4d7c181f06
Vhost static OK (dirty)
2015-07-15 15:18:51 +02:00
Emilien Mantel
64cf8b53a4
Init repo
2015-07-15 12:14:39 +02:00