Skip to content

Commit df3b527

Browse files
authored
Merge pull request #750 from npwalker/add_service_ensure_type
Add a type for ensure on service resources
2 parents bbb29a4 + ec2c517 commit df3b527

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,24 @@ Unacceptable input example:
301301
../relative_path
302302
```
303303

304+
#### `Stdlib::Ensure::Service`
305+
306+
Matches acceptable ensure values for service resources.
307+
308+
Acceptable input examples:
309+
310+
```shell
311+
stopped
312+
running
313+
```
314+
315+
Unacceptable input example:
316+
317+
```shell
318+
true
319+
false
320+
```
321+
304322
#### `Stdlib::Httpsurl`
305323

306324
Matches HTTPS URLs.

types/ensure/service.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type Stdlib::Ensure::Service = Enum['stopped', 'running']

0 commit comments

Comments
 (0)