Skip to content

Commit a11e457

Browse files
authored
Remove NGINX Unit from role (#348)
1 parent 121312d commit a11e457

File tree

16 files changed

+36
-328
lines changed

16 files changed

+36
-328
lines changed

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ jobs:
5454
- name: (CentOS) Test config templates
5555
env:
5656
scenario: template_centos
57-
- name: (Debian/Ubuntu) Install NGINX Unit
58-
env:
59-
scenario: unit
60-
- name: (Alpine Linux) Install NGINX Unit
61-
env:
62-
scenario: unit_alpine
63-
- name: (CentOS) Install NGINX Unit
64-
env:
65-
scenario: unit_centos
6657
- name: (Debian/Ubuntu) Build from source
6758
env:
6859
scenario: source

CHANGELOG.md

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# Changelog
22

3+
## 0.18.0 (November 13, 2020)
4+
5+
BREAKING CHANGES:
6+
7+
**The NGINX Unit functionalities included in this role have been removed as of release 0.18.0.** There now is a separate role to install NGINX Unit available [here](https://github.com/nginxinc/ansible-role-nginx-unit). Any new issues or PRs related to NGINX Unit should be submitted in the new NGINX Unit repository. New issues or PRs related to NGINX Unit submitted in this repository will not be worked on.
8+
39
## 0.17.4 (November 12, 2020)
410

511
ENHANCEMENTS:
612

7-
* Implement a new syntax to specify modules to be installed. You can now use the following format if you want further fine grained control over how you install modules:
13+
Implement a new syntax to specify modules to be installed. You can now use the following format if you want further fine grained control over how you install modules:
814
```yaml
915
- name: njs # Required
1016
state: present # Optional
@@ -34,7 +40,7 @@ BUG FIXES:
3440

3541
BUG FIXES:
3642

37-
* Fix an issue where sometimes the role handlers will fail in distros where NGINX is not started upon installation.
43+
Fix an issue where sometimes the role handlers will fail in distros where NGINX is not started upon installation.
3844

3945
## 0.17.1 (September 22, 2020)
4046

@@ -81,7 +87,7 @@ BUG FIXES:
8187

8288
BREAKING CHANGES:
8389

84-
* The Debian and Ubuntu repositories have slightly changed. You may run into some duplication issues when running the role on a preexisting target that already has had NGINX installed using the role. To fix this, manually remove the old repository source.
90+
The Debian and Ubuntu repositories have slightly changed. You may run into some duplication issues when running the role on a preexisting target that already has had NGINX installed using the role. To fix this, manually remove the old repository source.
8591

8692
ENHANCEMENTS:
8793

@@ -91,11 +97,11 @@ ENHANCEMENTS:
9197

9298
FEATURES:
9399

94-
* TravisCI now always uses the latest version of Docker.
100+
TravisCI now always uses the latest version of Docker.
95101

96102
BUG FIXES:
97103

98-
* Building OpenSSL from source should now work properly in CentOS 8.
104+
Building OpenSSL from source should now work properly in CentOS 8.
99105

100106
## 0.15.0 (August 20, 2020)
101107

@@ -162,7 +168,7 @@ This is a relatively minor release, but it includes a potential breaking change
162168

163169
BREAKING CHANGES:
164170

165-
* The NGINX Controller agent can no longer be installed using this role. Please use the Ansible collection linked in the README.
171+
The NGINX Controller agent can no longer be installed using this role. Please use the Ansible collection linked in the README.
166172

167173
FEATURES:
168174

@@ -213,20 +219,20 @@ BUG FIXES:
213219

214220
FEATURES:
215221

216-
* Improve NGINX http templating - following parameters are now supported:
217-
* Websockets.
218-
* Basic authentication.
219-
* Proxy cache.
220-
* Proxy redirect.
221-
* Proxy timeouts.
222-
* SSL.
223-
* Root (in server context).
224-
* Add basic NGINX stream templating.
225-
* Add support for RHEL 8 and Alpine Linux.
222+
Improve NGINX http templating - following parameters are now supported:
223+
* Websockets.
224+
* Basic authentication.
225+
* Proxy cache.
226+
* Proxy redirect.
227+
* Proxy timeouts.
228+
* SSL.
229+
* Root (in server context).
230+
* Add basic NGINX stream templating.
231+
* Add support for RHEL 8 and Alpine Linux.
226232

227233
BUG FIXES:
228234

229-
* Fix module installation tasks.
235+
Fix module installation tasks.
230236

231237
## 0.11.0 (Januray 14, 2019)
232238

@@ -250,13 +256,13 @@ BUG FIXES:
250256

251257
BUG FIXES:
252258

253-
* Fix HTML template to use correct variable name.
259+
Fix HTML template to use correct variable name.
254260

255261
## 0.10.0 (November 26, 2018)
256262

257263
FEATURES:
258264

259-
* Improve templating support for health checks, multiple location blocks, and auto indexing.
265+
Improve templating support for health checks, multiple location blocks, and auto indexing.
260266

261267
BUG FIXES:
262268

@@ -281,13 +287,13 @@ FEATURES:
281287

282288
BUG FIXES:
283289

284-
* Correct spelling of name in `tasks/prerequisites/setup-debian.yml`.
290+
Correct spelling of name in `tasks/prerequisites/setup-debian.yml`.
285291

286292
## 0.7.1 (August 21, 2018)
287293

288294
FEATURES:
289295

290-
* Add enabled parameter to NGINX and NGINX Unit handlers.
296+
Add enabled parameter to NGINX and NGINX Unit handlers.
291297

292298
## 0.7.0 (August 4, 2018)
293299

@@ -313,7 +319,7 @@ FEATURES:
313319

314320
FEATURES:
315321

316-
* Add support for NGINX Unit.
322+
Add support for NGINX Unit.
317323

318324
## 0.4.0 (May 25, 2018)
319325

@@ -326,17 +332,17 @@ FEATURES:
326332

327333
FEATURES:
328334

329-
* Improve Travis CI testing strategy.
335+
Improve Travis CI testing strategy.
330336

331337
BUG FIXES:
332338

333-
* Fix templating and push tasks.
339+
Fix templating and push tasks.
334340

335341
## 0.2.0 (April 12, 2018)
336342

337343
FEATURES:
338344

339-
* Add support for all first party NGINX modules.
345+
Add support for all first party NGINX modules.
340346

341347
BUG FIXES:
342348

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Follow our [Installation Guide](https://github.com/nginxinc/ansible-role-nginx/b
2626

2727
### Project Structure
2828

29-
* The NGINX Ansible role is written in `yaml` and supports NGINX Open Source, NGINX Plus, NGINX Amplify, and NGINX Unit.
29+
* The NGINX Ansible role is written in `yaml` and supports NGINX Open Source, NGINX Plus, and NGINX Amplify.
3030
* The project follows the standard [Ansible role directory structure](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html):
3131
* The main code is found in `tasks/`.
3232
* Variables can be found in `defaults/main/*.yml`.

README.md

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Ansible NGINX Role
88

9-
This role installs NGINX Open Source, NGINX Plus, the NGINX Amplify agent, or NGINX Unit on your target host.
9+
This role installs NGINX Open Source, NGINX Plus, or the NGINX Amplify agent on your target host.
1010

1111
**Note:** This role is still in active development. There may be unidentified issues and the role variables may change as development continues.
1212

@@ -15,7 +15,7 @@ This role installs NGINX Open Source, NGINX Plus, the NGINX Amplify agent, or NG
1515
With the advent of Ansible collections and the release of the [NGINX Core Ansible collection](https://github.com/nginxinc/ansible-collection-nginx), the decision has been made to split this role into three smaller roles and reduce the overhead of this role:
1616
* The NGINX Ansible role will keep working as is and be used to install and setup NGINX.
1717
* **The NGINX configuration functionalities included in this role will be removed in an upcoming release at some stage after December 1st 2020.** There now is a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX Config repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on.
18-
* **The NGINX Unit functionalities included in this role will be removed in an upcoming release at some stage after November 1st 2020.** There now is a separate role to install NGINX Unit available [here](https://github.com/nginxinc/ansible-role-nginx-unit). Any new issues or PRs related to NGINX Unit should be submitted in the new NGINX Unit repository. New issues or PRs related to NGINX Unit submitted in this repository will not be worked on.
18+
* **The NGINX Unit functionalities included in this role have been removed as of release 0.18.0.** There now is a separate role to install NGINX Unit available [here](https://github.com/nginxinc/ansible-role-nginx-unit). Any new issues or PRs related to NGINX Unit should be submitted in the new NGINX Unit repository. New issues or PRs related to NGINX Unit submitted in this repository will not be worked on. This disclaimer will be removed in a future release.
1919

2020
## Requirements
2121

@@ -41,7 +41,7 @@ Use `git clone https://github.com/nginxinc/ansible-role-nginx.git` to pull the l
4141

4242
## Platforms
4343

44-
The NGINX Ansible role supports all platforms supported by [NGINX Open Source](https://nginx.org/en/linux_packages.html), [NGINX Plus](https://docs.nginx.com/nginx/technical-specs/), the [NGINX Amplify agent](https://github.com/nginxinc/nginx-amplify-doc/blob/master/amplify-faq.md#21-what-operating-systems-are-supported), and [NGINX Unit](https://unit.nginx.org/installation/#official-packages):
44+
The NGINX Ansible role supports all platforms supported by [NGINX Open Source](https://nginx.org/en/linux_packages.html), [NGINX Plus](https://docs.nginx.com/nginx/technical-specs/), and the [NGINX Amplify agent](https://github.com/nginxinc/nginx-amplify-doc/blob/master/amplify-faq.md#21-what-operating-systems-are-supported):
4545

4646
### NGINX Open Source
4747

@@ -130,30 +130,6 @@ Ubuntu:
130130
- focal
131131
```
132132
133-
### NGINX Unit
134-
135-
```yaml
136-
Amazon Linux:
137-
- 2018.03
138-
Amazon Linux 2:
139-
- any
140-
CentOS:
141-
- 6
142-
- 7
143-
- 8
144-
Debian:
145-
- stretch
146-
- buster
147-
Red Hat:
148-
- 6
149-
- 7
150-
- 8
151-
Ubuntu:
152-
- xenial
153-
- bionic
154-
- focal
155-
```
156-
157133
**Note:** You can also use this role to compile NGINX Open Source from source, install NGINX Open Source on compatible yet unsupported platforms, or install NGINX Open Source on BSD systems at your own risk.
158134
159135
## Role Variables
@@ -168,7 +144,6 @@ This role has multiple variables. The descriptions and defaults for all these va
168144
|**[`upload.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/defaults/main/upload.yml)**|NGINX configuration/HTML/SSL upload variables|
169145
|**[`linux.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/defaults/main/linux.yml)**|Linux installation variables|
170146
|**[`bsd.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/defaults/main/bsd.yml)**|BSD installation variables|
171-
|**[`unit.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/defaults/main/unit.yml)**|NGINX Unit installation variables|
172147

173148
Similarly, descriptions and defaults for preset variables can be found in the **[`vars/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/vars/)** folder in the following files:
174149

@@ -188,7 +163,6 @@ Working functional playbook examples can be found in the **[`molecule/common/pla
188163
|**[`source_converge.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/common/playbooks/source_converge.yml)**|Install NGINX from source|
189164
|**[`stable_push_converge.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/common/playbooks/stable_push_converge.yml)**|Install NGINX using the stable branch and push a preexisting config from your system to your NGINX instance|
190165
|**[`template_converge.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/common/playbooks/template_converge.yml)**|Use the NGINX configuration templating variables to create an NGINX configuration file|
191-
|**[`unit_converge.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/common/playbooks/unit_converge.yml)**|Install NGINX Unit|
192166

193167
Do note that if you install this repository via Ansible Galaxy, you will have to replace the role variable in the sample playbooks from `ansible-role-nginx` to `nginxinc.nginx`.
194168

defaults/main/unit.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

handlers/main.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,5 @@
3535
name: amplify-agent
3636
state: started
3737

38-
- name: (DEPRECATED Handler - Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit
39-
service:
40-
name: unit
41-
state: started
42-
enabled: yes
43-
44-
- name: (DEPRECATED Handler - FreeBSD) Start NGINX Unit
45-
service:
46-
name: unitd
47-
state: started
48-
enabled: yes
49-
5038
- name: (Handler) Run logrotate
5139
command: logrotate -f /etc/logrotate.d/nginx

molecule/common/playbooks/unit_converge.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

molecule/unit/molecule.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

molecule/unit_alpine/molecule.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)