@@ -14,8 +14,7 @@ nginx-formula
14
14
:scale: 100%
15
15
:target: https://github.com/semantic-release/semantic-release
16
16
17
- Formula to set up and configure
18
- `NGINX <https://www.nginx.com/ >`_.
17
+ Formula to set up and configure `NGINX <https://www.nginx.com/ >`_.
19
18
20
19
.. list-table ::
21
20
:name: banner-breaking-changes-v1.0.0
@@ -69,59 +68,89 @@ Contributing to this repo
69
68
Please see :ref: `How to contribute <CONTRIBUTING >` for more details.
70
69
71
70
Available states
72
- ================
71
+ ----------------
73
72
74
73
.. contents ::
75
74
:local:
76
75
77
76
``nginx ``
78
- ---------
77
+ ^^^^^^^^^
79
78
80
79
Meta-state for inclusion of all states.
81
80
82
81
**Note: ** nginx requires the merge parameter of salt.modules.pillar.get(),
83
82
first available in the Helium release.
84
83
85
84
``nginx.pkg ``
86
- -------------
85
+ ^^^^^^^^^^^^^
87
86
88
87
Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.
89
88
90
89
``nginx.src ``
91
- -------------
90
+ ^^^^^^^^^^^^^
92
91
93
92
Builds and installs nginx from source.
94
93
95
94
``nginx.certificates ``
96
- ----------------------
95
+ ^^^^^^^^^^^^^^^^^^^^^^
97
96
98
97
Manages the deployment of nginx certificates.
99
98
100
99
``nginx.config ``
101
- ----------------
100
+ ^^^^^^^^^^^^^^^^
102
101
103
102
Manages the nginx main server configuration file.
104
103
105
104
``nginx.service ``
106
- -----------------
105
+ ^^^^^^^^^^^^^^^^^
107
106
108
107
Manages the startup and running state of the nginx service.
109
108
110
109
``nginx.servers_config ``
111
- ------------------------
110
+ ^^^^^^^^^^^^^^^^^^^^^^^^
112
111
113
112
Manages virtual host files. This state only manages the content of the files
114
113
and does not bind them to service calls.
115
114
116
115
``nginx.servers ``
117
- -----------------
116
+ ^^^^^^^^^^^^^^^^^
118
117
119
118
Manages nginx virtual hosts files and binds them to service calls.
120
119
121
120
``nginx.passenger ``
122
- -------------------
121
+ ^^^^^^^^^^^^^^^^^^^
123
122
124
123
Installs and configures Phusion Passenger module for nginx. You need to enable
125
124
the upstream phusion passenger repository with `install_from_phusionpassenger: true `.
126
125
Nginx will also be installed from that repository, as it needs to be modified to
127
126
allow the passenger module to work.
127
+
128
+ Testing
129
+ -------
130
+
131
+ Linux testing is done with ``kitchen-salt ``.
132
+
133
+ ``kitchen converge ``
134
+ ^^^^^^^^^^^^^^^^^^^^
135
+
136
+ Creates the docker instance and runs the ``template `` main state, ready for testing.
137
+
138
+ ``kitchen verify ``
139
+ ^^^^^^^^^^^^^^^^^^
140
+
141
+ Runs the ``inspec `` tests on the actual instance.
142
+
143
+ ``kitchen destroy ``
144
+ ^^^^^^^^^^^^^^^^^^^
145
+
146
+ Removes the docker instance.
147
+
148
+ ``kitchen test ``
149
+ ^^^^^^^^^^^^^^^^
150
+
151
+ Runs all of the stages above in one go: i.e. ``destroy `` + ``converge `` + ``verify `` + ``destroy ``.
152
+
153
+ ``kitchen login ``
154
+ ^^^^^^^^^^^^^^^^^
155
+
156
+ Gives you SSH access to the instance for manual testing.
0 commit comments