You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,8 @@ To suggest a feature or enhancement, please create an issue on GitHub with the l
45
45
- Fork the repo, create a branch, implement your changes, add any relevant tests, and submit a PR when your changes are **tested** (using Molecule) and ready for review.
46
46
- Fill in the [PR template](/.github/pull_request_template.md).
47
47
48
-
**Note:** If you'd like to implement a new feature, please consider creating a [feature request issue](/.github/feature_request_template.md) first to start a discussion about the feature.
48
+
> [!NOTE]
49
+
> If you'd like to implement a new feature, please consider creating a [feature request issue](/.github/feature_request_template.md) first to start a discussion about the feature.
Copy file name to clipboardExpand all lines: README.md
+71-15Lines changed: 71 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,36 @@
11
11
12
12
This role installs NGINX Open Source, NGINX Plus, NGINX Agent or the NGINX Amplify agent on your target host.
13
13
14
-
**Note:** This role is still in active development. There may be unidentified issues and the role variables may change as development continues.
14
+
> [!IMPORTANT]
15
+
> This role is still in active development. There may be unidentified issues and the role variables may change as development continues.
15
16
16
-
## Requirements
17
+
## Role Requirements
17
18
18
-
### NGINX Plus (Optional)
19
+
### NGINX
19
20
20
-
If you wish to install NGINX Plus using this role, you will need to obtain an NGINX Plus license beforehand. *You do not need to do anything beforehand if you want to install NGINX OSS.*
21
+
Depending on your target NGINX use case, you might need to obtain some data before being able to use the role.
22
+
23
+
#### NGINX Open Source (NGINX OSS)
24
+
25
+
You do not need to do anything beforehand if you want to install NGINX OSS.
26
+
27
+
#### NGINX Plus
28
+
29
+
If you wish to install NGINX Plus using this role, you will need to obtain an NGINX Plus license beforehand.
30
+
31
+
#### NGINX Agent
32
+
33
+
If you wish to install and configure the NGINX Agent, you will need: to have previously set up a compatible control plane. Check out the [NGINX Agent docs](https://docs.nginx.com/nginx-agent/overview/) for more info.
34
+
35
+
In addition, if you wish to connect the NGINX Agent to the NGINX One SaaS control plane available in the F5 Distributed Cloud, you will also need the data plane token provided by the NGINX One SaaS control plane.
36
+
37
+
#### NGINX Amplify
38
+
39
+
If you wish to install the NGINX Amplify agent, you will need the API key provided within the NGINX Amplify SaaS console.
21
40
22
41
### Ansible
23
42
24
-
- This role is developed and tested with [maintained](https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html) versions of Ansible core (above `2.12`).
43
+
- This role is developed and tested with [maintained](https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html) versions of Ansible core and Python.
25
44
- When using Ansible core, you will also need to install the following collections:
26
45
27
46
```yaml
@@ -37,20 +56,49 @@ If you wish to install NGINX Plus using this role, you will need to obtain an NG
37
56
version: 3.10.3
38
57
```
39
58
40
-
**Note:** You can alternatively install the Ansible community distribution (what is known as the "old" Ansible) if you don't want to manage individual collections.
59
+
> [!TIP]
60
+
> You can alternatively install the Ansible community distribution (what is known as the "old" Ansible) if you don't want to manage individual collections.
41
61
- You will need to run this role as a root user using Ansible's `become` parameter. Make sure you have set up the appropriate permissions on your target hosts.
42
62
- Instructions on how to install Ansible can be found in the [Ansible website](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#upgrading-ansible-from-version-2-9-and-older-to-version-2-10-or-later).
43
63
44
-
### Jinja2
64
+
#### Jinja2
45
65
46
66
- This role uses Jinja2 templates. Ansible core installs Jinja2 by default, but depending on your install and/or upgrade path, you might be running an outdated version of Jinja2. The minimum version of Jinja2 required for the role to properly function is `3.1`.
47
67
- Instructions on how to install Jinja2 can be found in the [Jinja2 website](https://jinja.palletsprojects.com/en/3.1.x/intro/#installation).
48
68
49
-
### Molecule (Optional)
69
+
Alternatively, you can install `ansible-core`, a supported version of Jinja2, and the aforementioned collections by running the following three commands on your Ansible host:
If you want to contribute to this role, you will also need to install Ansible Lint and Molecule.
50
80
51
-
- Molecule is used to test the various functionalities of the role. The recommended version of Molecule to test this role is `4.x`.
52
-
- Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html). *You will also need to install the Molecule Docker driver.*
53
-
- To run the NGINX Plus Molecule tests, you must copy your NGINX Plus license to the role's [`files/license`](https://github.com/nginxinc/ansible-role-nginx/blob/main/files/license/) directory.
81
+
#### Ansible Lint (Optional)
82
+
83
+
- Ansible Lint is used to lint the role for both Ansible best practices and potential Ansible/YAML issues.
84
+
- Instructions on how to install Ansible Lint can be found in the [Ansible Lint website](https://ansible.readthedocs.io/projects/lint/installing/).
85
+
- Once installed, using Ansible Lint is as easy as running:
86
+
87
+
```bash
88
+
ansible-lint
89
+
```
90
+
91
+
Alternatively, you can install Ansible Lint by running the following command on your Ansible host:
- Molecule is used to test the various functionalities of the role.
100
+
- Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html). *You will also need to install the Molecule plugins package and the Docker Python SDK.*
101
+
- To run any of the NGINX Plus Molecule tests, you must first copy your NGINX Plus license to the role's [`files/license`](https://github.com/nginxinc/ansible-role-nginx/blob/main/files/license/) directory.
54
102
55
103
You can alternatively add your NGINX Plus repository certificate and key to the local environment. Run the following commands to export these files as base64-encoded variables and execute the Molecule tests:
56
104
@@ -60,9 +108,15 @@ If you wish to install NGINX Plus using this role, you will need to obtain an NG
60
108
molecule test -s plus
61
109
```
62
110
63
-
## Installation
111
+
Alternatively, you can install Molecule and the aforementioned Molecule plugins and Docker Python SDK packages by running the following command on your Ansible host:
This role can be installed via either Ansible Galaxy (the Ansible community marketplace) or by cloning this repo. Once installed, you will need to include the role it in your Ansible playbook using [the `roles` keyword, the `import_role` module, or the `include_role` module](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#using-roles).
119
+
This role can be installed via either Ansible Galaxy (the Ansible community marketplace) or by cloning this repo. Once installed, you will need to include the role in your Ansible playbook using [the `roles` keyword, the `import_role` module, or the `include_role` module](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#using-roles).
66
120
67
121
### Ansible Galaxy
68
122
@@ -234,7 +288,8 @@ Ubuntu:
234
288
- jammy (22.04)
235
289
```
236
290
237
-
**Note:** At your own risk, you can also use this role to compile NGINX Open Source from source, install NGINX Open Source on "compatible" yet unsupported platforms, install NGINX from your respective distribution package manager, or install NGINX Open Source on BSD systems.
291
+
> [!WARNing]
292
+
> At your own risk, you can also use this role to compile NGINX Open Source from source, install NGINX Open Source on "compatible" yet unsupported platforms, install NGINX from your respective distribution package manager, or install NGINX Open Source on BSD systems.
238
293
239
294
## Role Variables
240
295
@@ -277,7 +332,8 @@ Working functional playbook examples can be found in the **[`molecule/`](https:/
277
332
| **[`upgrade-plus/converge.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/upgrade-plus/converge.yml)** | Upgrade NGINX Plus |
278
333
| **[`version/converge.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/version/converge.yml)** | Install a specific version of NGINX and various NGINX modules |
279
334
280
-
**Note:** If you install this repository via Ansible Galaxy, you will need to replace the `include_role` variable in the example playbooks from `ansible-role-nginx` to `nginxinc.nginx`.
335
+
> [!NOTE]
336
+
> If you install this repository via Ansible Galaxy, you will need to replace the `include_role` variable in the example playbooks from `ansible-role-nginx` to `nginxinc.nginx`.
0 commit comments