6
6
7
7
### Defined types
8
8
9
- * [ ` registry::service ` ] ( #registryservice ) : Defined resource type that manages service entries
10
- * [ ` registry::value ` ] ( #registryvalue ) : High level abstraction on top of registry_key and registry_value resources
9
+ * [ ` registry::service ` ] ( #registry--service ) : Defined resource type that manages service entries
10
+ * [ ` registry::value ` ] ( #registry--value ) : High level abstraction on top of registry_key and registry_value resources
11
11
12
12
### Resource types
13
13
16
16
17
17
## Defined types
18
18
19
- ### <a name =" registryservice " ></a >` registry::service `
19
+ ### <a name =" registry--service " ></a >` registry::service `
20
20
21
21
Manages the values in the key HKLM\System\CurrentControlSet\Services\$ name\
22
22
@@ -36,7 +36,7 @@ registry::service { puppet:
36
36
ensure => present,
37
37
display_name => 'Puppet Agent',
38
38
description => 'Periodically fetches and applies
39
- configurations from a Puppet Server.',
39
+ configurations from a Puppet Server.',
40
40
command => 'C:\PuppetLabs\Puppet\service\daemon.bat',
41
41
}
42
42
```
@@ -45,56 +45,55 @@ registry::service { puppet:
45
45
46
46
The following parameters are available in the ` registry::service ` defined type:
47
47
48
- * [ ` ensure ` ] ( #ensure )
49
- * [ ` display_name ` ] ( #display_name )
50
- * [ ` description ` ] ( #description )
51
- * [ ` command ` ] ( #command )
52
- * [ ` start ` ] ( #start )
48
+ * [ ` ensure ` ] ( #-registry--service-- ensure )
49
+ * [ ` display_name ` ] ( #-registry--service-- display_name )
50
+ * [ ` description ` ] ( #-registry--service-- description )
51
+ * [ ` command ` ] ( #-registry--service-- command )
52
+ * [ ` start ` ] ( #-registry--service-- start )
53
53
54
- ##### <a name =" ensure " ></a >` ensure `
55
-
56
- Data type: ` present, absent `
54
+ ##### <a name =" -registry--service--ensure " ></a >` ensure `
57
55
56
+ Data type: ` Enum['present', 'absent', 'UNSET'] `
58
57
58
+ Ensures the presence or absence of a registry key. Valid values: 'present', 'absent', 'UNSET'.
59
59
60
60
Default value: ` 'UNSET' `
61
61
62
- ##### <a name =" display_name " ></a >` display_name `
62
+ ##### <a name =" -registry--service-- display_name" ></a >` display_name `
63
63
64
- Data type: ` Any `
64
+ Data type: ` String[1] `
65
65
66
- The Display Name of the service. Defaults to the title of
67
- the resource.
66
+ The Display Name of the service. Defaults to the title of the resource.
68
67
69
68
Default value: ` 'UNSET' `
70
69
71
- ##### <a name =" description " ></a >` description `
70
+ ##### <a name =" -registry--service-- description" ></a >` description `
72
71
73
- Data type: ` Any `
72
+ Data type: ` String[1] `
74
73
75
- A description of the service
74
+ A description of the service. String value set to 'UNSET' by default.
76
75
77
76
Default value: ` 'UNSET' `
78
77
79
- ##### <a name =" command " ></a >` command `
78
+ ##### <a name =" -registry--service-- command" ></a >` command `
80
79
81
- Data type: ` Any `
80
+ Data type: ` String[1] `
82
81
83
- The command to execute
82
+ The command to execute. Set to 'UNSET' by default.
84
83
85
84
Default value: ` 'UNSET' `
86
85
87
- ##### <a name =" start " ></a >` start `
86
+ ##### <a name =" -registry--service-- start" ></a >` start `
88
87
89
- Data type: ` Any `
88
+ Data type: ` Enum['automatic', 'manual', 'disabled', 'UNSET'] `
90
89
91
90
The starting mode of the service. (Note, the native service
92
91
resource can also be used to manage this setting.)
93
- [ automatic, manual, disabled ]
92
+ Valid values: ' automatic', ' manual', ' disabled'
94
93
95
94
Default value: ` 'UNSET' `
96
95
97
- ### <a name =" registryvalue " ></a >` registry::value `
96
+ ### <a name =" registry--value " ></a >` registry::value `
98
97
99
98
Actions:
100
99
- Manage the parent key if not already managed.
@@ -126,28 +125,28 @@ class myapp {
126
125
127
126
The following parameters are available in the ` registry::value ` defined type:
128
127
129
- * [ ` key ` ] ( #key )
130
- * [ ` value ` ] ( #value )
131
- * [ ` type ` ] ( #type )
132
- * [ ` data ` ] ( #data )
128
+ * [ ` key ` ] ( #-registry--value-- key )
129
+ * [ ` value ` ] ( #-registry--value-- value )
130
+ * [ ` type ` ] ( #-registry--value-- type )
131
+ * [ ` data ` ] ( #-registry--value-- data )
133
132
134
- ##### <a name =" key " ></a >` key `
133
+ ##### <a name =" -registry--value-- key" ></a >` key `
135
134
136
135
Data type: ` Pattern[/^\w+/] `
137
136
138
137
The path of key the value will placed inside.
139
138
140
- ##### <a name =" value " ></a >` value `
139
+ ##### <a name =" -registry--value-- value" ></a >` value `
141
140
142
141
Data type: ` Optional[String] `
143
142
144
143
The name of the registry value to manage. This will be copied from
145
144
the resource title if not specified. The special value of
146
145
'(default)' may be used to manage the default value of the key.
147
146
148
- Default value: `` undef ` `
147
+ Default value: ` undef `
149
148
150
- ##### <a name =" type " ></a >` type `
149
+ ##### <a name =" -registry--value-- type" ></a >` type `
151
150
152
151
Data type: ` Pattern[/^\w+/] `
153
152
@@ -157,17 +156,21 @@ The type the registry value. Defaults to 'string'. See the output of
157
156
158
157
Default value: ` 'string' `
159
158
160
- ##### <a name =" data " ></a >` data `
159
+ ##### <a name =" -registry--value--data " ></a >` data `
160
+
161
+ Data type:
161
162
162
- Data type: `Optional[ Variant[
163
+ ``` puppet
164
+ Optional[Variant[
163
165
String,
164
166
Numeric,
165
167
Array[String]
166
- ]] `
168
+ ]]
169
+ ```
167
170
168
171
The data to place inside the registry value.
169
172
170
- Default value: `` undef ` `
173
+ Default value: ` undef `
171
174
172
175
## Resource types
173
176
@@ -191,26 +194,26 @@ Default value: `present`
191
194
192
195
The following parameters are available in the ` registry_key ` type.
193
196
194
- * [ ` path ` ] ( #path )
195
- * [ ` provider ` ] ( #provider )
196
- * [ ` purge_values ` ] ( #purge_values )
197
+ * [ ` path ` ] ( #-registry_key-- path )
198
+ * [ ` provider ` ] ( #-registry_key-- provider )
199
+ * [ ` purge_values ` ] ( #-registry_key-- purge_values )
197
200
198
- ##### <a name =" path " ></a >` path `
201
+ ##### <a name =" -registry_key-- path" ></a >` path `
199
202
200
203
The path to the registry key to manage
201
204
202
- ##### <a name =" provider " ></a >` provider `
205
+ ##### <a name =" -registry_key-- provider" ></a >` provider `
203
206
204
207
The specific backend to use for this ` registry_key ` resource. You will seldom need to specify this --- Puppet will
205
208
usually discover the appropriate provider for your platform.
206
209
207
- ##### <a name =" purge_values " ></a >` purge_values `
210
+ ##### <a name =" -registry_key-- purge_values" ></a >` purge_values `
208
211
209
- Valid values: `` true `` , `` false ` `
212
+ Valid values: ` true ` , ` false `
210
213
211
214
Common boolean for munging and validation.
212
215
213
- Default value: `` false ` `
216
+ Default value: ` false `
214
217
215
218
### <a name =" registry_value " ></a >` registry_value `
216
219
@@ -244,14 +247,14 @@ Default value: `string`
244
247
245
248
The following parameters are available in the ` registry_value ` type.
246
249
247
- * [ ` path ` ] ( #path )
248
- * [ ` provider ` ] ( #provider )
250
+ * [ ` path ` ] ( #-registry_value-- path )
251
+ * [ ` provider ` ] ( #-registry_value-- provider )
249
252
250
- ##### <a name =" path " ></a >` path `
253
+ ##### <a name =" -registry_value-- path" ></a >` path `
251
254
252
255
The path to the registry value to manage.
253
256
254
- ##### <a name =" provider " ></a >` provider `
257
+ ##### <a name =" -registry_value-- provider" ></a >` provider `
255
258
256
259
The specific backend to use for this ` registry_value ` resource. You will seldom need to specify this --- Puppet will
257
260
usually discover the appropriate provider for your platform.
0 commit comments