|
8 | 8 |
|
9 | 9 | * [`openvpn`](#openvpn): This module installs the openvpn service, configures vpn endpoints, generates client certificates, and generates client config files
|
10 | 10 | * [`openvpn::config`](#openvpn--config): This class sets up the openvpn enviornment as well as the default config file
|
11 |
| -* [`openvpn::install`](#openvpn--install): This module installs the openvpn service, configures vpn endpoints, generates client certificates, and generates client config files |
12 |
| -* [`openvpn::service`](#openvpn--service): This class maintains the openvpn service. |
| 11 | +* [`openvpn::install`](#openvpn--install): This module installs and manages OpenVPN (community edition) or OpenVPN Access Server, |
| 12 | +* [`openvpn::service`](#openvpn--service): This class maintains the OpenVPN service (community edition) or |
| 13 | +the OpenVPN Access Server service if overridden. |
13 | 14 |
|
14 | 15 | ### Defined types
|
15 | 16 |
|
@@ -60,6 +61,11 @@ The following parameters are available in the `openvpn` class:
|
60 | 61 | * [`servers`](#-openvpn--servers)
|
61 | 62 | * [`server_directory`](#-openvpn--server_directory)
|
62 | 63 | * [`server_service_name`](#-openvpn--server_service_name)
|
| 64 | +* [`package_name`](#-openvpn--package_name) |
| 65 | +* [`package_ensure`](#-openvpn--package_ensure) |
| 66 | +* [`service_name`](#-openvpn--service_name) |
| 67 | +* [`service_enable`](#-openvpn--service_enable) |
| 68 | +* [`service_ensure`](#-openvpn--service_ensure) |
63 | 69 |
|
64 | 70 | ##### <a name="-openvpn--autostart_all"></a>`autostart_all`
|
65 | 71 |
|
@@ -203,17 +209,117 @@ Data type: `String[1]`
|
203 | 209 |
|
204 | 210 | Name of the openvpn server service. This is usually `openvpn`, but RHEL/CentOS 8 uses `openvpn-server`.
|
205 | 211 |
|
| 212 | +##### <a name="-openvpn--package_name"></a>`package_name` |
| 213 | + |
| 214 | +Data type: `String[1]` |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | +Default value: `'openvpn'` |
| 219 | + |
| 220 | +##### <a name="-openvpn--package_ensure"></a>`package_ensure` |
| 221 | + |
| 222 | +Data type: `String[1]` |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | +Default value: `'present'` |
| 227 | + |
| 228 | +##### <a name="-openvpn--service_name"></a>`service_name` |
| 229 | + |
| 230 | +Data type: `String[1]` |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | +Default value: `'openvpn'` |
| 235 | + |
| 236 | +##### <a name="-openvpn--service_enable"></a>`service_enable` |
| 237 | + |
| 238 | +Data type: `Boolean` |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | +Default value: `true` |
| 243 | + |
| 244 | +##### <a name="-openvpn--service_ensure"></a>`service_ensure` |
| 245 | + |
| 246 | +Data type: `Enum['running','stopped']` |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | +Default value: `'running'` |
| 251 | + |
206 | 252 | ### <a name="openvpn--config"></a>`openvpn::config`
|
207 | 253 |
|
208 | 254 | This class sets up the openvpn enviornment as well as the default config file
|
209 | 255 |
|
210 | 256 | ### <a name="openvpn--install"></a>`openvpn::install`
|
211 | 257 |
|
212 |
| -This module installs the openvpn service, configures vpn endpoints, generates client certificates, and generates client config files |
| 258 | +configures VPN endpoints, generates client certificates, and generates client config files. |
| 259 | + |
| 260 | +The name of the package to install. |
| 261 | + |
| 262 | +The desired state of the package. |
| 263 | + |
| 264 | +#### Parameters |
| 265 | + |
| 266 | +The following parameters are available in the `openvpn::install` class: |
| 267 | + |
| 268 | +* [`package_name`](#-openvpn--install--package_name) |
| 269 | +* [`package_ensure`](#-openvpn--install--package_ensure) |
| 270 | + |
| 271 | +##### <a name="-openvpn--install--package_name"></a>`package_name` |
| 272 | + |
| 273 | +Data type: `String[1]` |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | +Default value: `'openvpn'` |
| 278 | + |
| 279 | +##### <a name="-openvpn--install--package_ensure"></a>`package_ensure` |
| 280 | + |
| 281 | +Data type: `String[1]` |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | +Default value: `'present'` |
213 | 286 |
|
214 | 287 | ### <a name="openvpn--service"></a>`openvpn::service`
|
215 | 288 |
|
216 |
| -This class maintains the openvpn service. |
| 289 | +This class maintains the OpenVPN service (community edition) or |
| 290 | +the OpenVPN Access Server service if overridden. |
| 291 | + |
| 292 | +#### Parameters |
| 293 | + |
| 294 | +The following parameters are available in the `openvpn::service` class: |
| 295 | + |
| 296 | +* [`service_name`](#-openvpn--service--service_name) |
| 297 | +* [`service_enable`](#-openvpn--service--service_enable) |
| 298 | +* [`service_ensure`](#-openvpn--service--service_ensure) |
| 299 | + |
| 300 | +##### <a name="-openvpn--service--service_name"></a>`service_name` |
| 301 | + |
| 302 | +Data type: `String[1]` |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | +Default value: `'openvpn'` |
| 307 | + |
| 308 | +##### <a name="-openvpn--service--service_enable"></a>`service_enable` |
| 309 | + |
| 310 | +Data type: `Boolean` |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | +Default value: `true` |
| 315 | + |
| 316 | +##### <a name="-openvpn--service--service_ensure"></a>`service_ensure` |
| 317 | + |
| 318 | +Data type: `Enum['running','stopped']` |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | +Default value: `'running'` |
217 | 323 |
|
218 | 324 | ## Defined types
|
219 | 325 |
|
@@ -882,19 +988,13 @@ This define creates a revocation on a certificate for a specified server.
|
882 | 988 | #####
|
883 | 989 |
|
884 | 990 | ```puppet
|
885 |
| -openvpn::client { |
886 |
| - 'my_user': |
887 |
| - server => 'contractors' |
888 |
| -} |
| 991 | +openvpn::client { 'my_user': server => 'contractors' } |
889 | 992 | ```
|
890 | 993 |
|
891 | 994 | #####
|
892 | 995 |
|
893 | 996 | ```puppet
|
894 |
| -openvpn::revoke { |
895 |
| - 'my_user': |
896 |
| - server => 'contractors' |
897 |
| - } |
| 997 | +openvpn::revoke { 'my_user': server => 'contractors' } |
898 | 998 | ```
|
899 | 999 |
|
900 | 1000 | #### Parameters
|
|
0 commit comments