You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.markdown
+47-1
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ This virtual resource will get collected by the `::splunk::forwarder` class if i
130
130
### Types
131
131
132
132
133
-
*`splunk_config`: This is a meta resource used to configur defaults for all the splunkforwarder and splunk types.
133
+
*`splunk_config`: This is a meta resource used to configur defaults for all the splunkforwarder and splunk types. This type should not be declared directly as it is declared in `splunk::params` and used internally by the types and providers.
134
134
135
135
*`splunk_authentication`: Used to manage ini settings in [authentication.conf][authentication.conf-docs]
136
136
*`splunk_authorize`: Used to manage ini settings in [authorize.conf][authorize.conf-docs]
@@ -150,6 +150,40 @@ This virtual resource will get collected by the `::splunk::forwarder` class if i
150
150
*`splunkforwarder_transforms`: Used to manage ini settings in [transforms.conf][transforms.conf-docs]
151
151
*`splunkforwarder_web`: Used to manage ini settings in [web.conf][web.conf-docs]
152
152
153
+
All of the above types use `puppetlabs/ini_file` as a parent and are declared in an identical way, and accept the following parameters:
154
+
155
+
*`section`: The name of the section in the configuration file
156
+
*`setting`: The setting to be managed
157
+
*`value`: The value of the setting
158
+
159
+
Both section and setting are namevars for the types. Specifying a single string as the title without a forward slash implies that the title is the section to be managed (if the section attribute is not defined). You can also specify the resource title as `section/setting` and ommit both `section` and `setting` params for a more shortform way of declaring the resource. Eg:
160
+
161
+
```puppet
162
+
splunkforwarder_output { 'useless title':
163
+
section => 'default',
164
+
setting => 'defaultGroup',
165
+
value => 'splunk_9777',
166
+
}
167
+
168
+
splunkforwarder_output { 'default':
169
+
setting => 'defaultGroup',
170
+
value => 'splunk_9777',
171
+
}
172
+
173
+
splunkforwarder_output { 'default/defaultGroup':
174
+
value => 'splunk_9777',
175
+
}
176
+
```
177
+
178
+
The above resource declarations will all configure the following entry in `outputs.conf`
179
+
180
+
```
181
+
[default]
182
+
defaultGroup=splunk_9997
183
+
```
184
+
185
+
Note: if the section contains forward slashes you should not use it as the resource title and should explicitly declare it with the `section` attribute.
186
+
153
187
154
188
## Parameters
155
189
@@ -288,6 +322,18 @@ no longer managed by the splunkforwarder_input type. Default to false.
288
322
*Optional* If set to true, outputs.conf will be purged of configuration that is
289
323
no longer managed by the splunk_output type. Default to false.
290
324
325
+
####`purge_props`
326
+
*Optional* If set to true, props.conf will be purged of configuration that is
327
+
no longer managed by the splunk_props type. Default to false.
328
+
329
+
####`purge_transforms`
330
+
*Optional* If set to true, transforms.conf will be purged of configuration that is
331
+
no longer managed by the splunk_transforms type. Default to false.
332
+
333
+
####`purge_web`
334
+
*Optional* If set to true, web.conf will be purged of configuration that is
335
+
no longer managed by the splunk_web type. Default to false.
336
+
291
337
####`pkg_provider`
292
338
*Optional* This will override the default package provider for the package
0 commit comments