From ec2c5170b8ff1daa4f581790c17aa9b5194d6110 Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Tue, 28 Mar 2017 16:49:14 -0700 Subject: [PATCH] Add a type for ensure on service resources --- README.md | 18 ++++++++++++++++++ types/ensure/service.pp | 1 + 2 files changed, 19 insertions(+) create mode 100644 types/ensure/service.pp diff --git a/README.md b/README.md index 3c83d60fb..6dd620d6c 100644 --- a/README.md +++ b/README.md @@ -301,6 +301,24 @@ Unacceptable input example: ../relative_path ``` +#### `Stdlib::Ensure::Service` + +Matches acceptable ensure values for service resources. + +Acceptable input examples: + +```shell +stopped +running +``` + +Unacceptable input example: + +```shell +true +false +``` + #### `Stdlib::Httpsurl` Matches HTTPS URLs. diff --git a/types/ensure/service.pp b/types/ensure/service.pp new file mode 100644 index 000000000..fba66acc9 --- /dev/null +++ b/types/ensure/service.pp @@ -0,0 +1 @@ +type Stdlib::Ensure::Service = Enum['stopped', 'running']