1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
|
# Reference
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
## Table of Contents
### Resource types
* [`ini_setting`](#ini_setting): ini_settings is used to manage a single setting in an INI file
* [`ini_subsetting`](#ini_subsetting): ini_subsettings is used to manage multiple values in a setting in an INI file
### Functions
* [`create_ini_settings`](#create_ini_settings): DEPRECATED. Use the namespaced function [`inifile::create_ini_settings`](#inifilecreate_ini_settings) instead.
* [`inifile::create_ini_settings`](#inifilecreate_ini_settings): This function is used to create a set of ini_setting resources from a hash
## Resource types
### <a name="ini_setting"></a>`ini_setting`
ini_settings is used to manage a single setting in an INI file
#### Properties
The following properties are available in the `ini_setting` type.
##### `ensure`
Valid values: `present`, `absent`
Ensurable method handles modeling creation. It creates an ensure property
Default value: `present`
##### `value`
The value of the setting to be defined.
#### Parameters
The following parameters are available in the `ini_setting` type.
* [`force_new_section_creation`](#force_new_section_creation)
* [`indent_char`](#indent_char)
* [`indent_width`](#indent_width)
* [`key_val_separator`](#key_val_separator)
* [`name`](#name)
* [`path`](#path)
* [`provider`](#provider)
* [`refreshonly`](#refreshonly)
* [`section`](#section)
* [`section_prefix`](#section_prefix)
* [`section_suffix`](#section_suffix)
* [`setting`](#setting)
* [`show_diff`](#show_diff)
##### <a name="force_new_section_creation"></a>`force_new_section_creation`
Valid values: ``true``, ``false``, `yes`, `no`
Create setting only if the section exists
Default value: ``true``
##### <a name="indent_char"></a>`indent_char`
The character to indent new settings with.
Default value: ` `
##### <a name="indent_width"></a>`indent_width`
The number of indent_chars to use to indent a new setting.
##### <a name="key_val_separator"></a>`key_val_separator`
The separator string to use between each setting name and value.
Default value: ` = `
##### <a name="name"></a>`name`
namevar
An arbitrary name used as the identity of the resource.
##### <a name="path"></a>`path`
The ini file Puppet will ensure contains the specified setting.
##### <a name="provider"></a>`provider`
The specific backend to use for this `ini_setting` resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.
##### <a name="refreshonly"></a>`refreshonly`
Valid values: ``true``, ``false``, `yes`, `no`
A flag indicating whether or not the ini_setting should be updated only when called as part of a refresh event
Default value: ``false``
##### <a name="section"></a>`section`
The name of the section in the ini file in which the setting should be defined.
Default value: `''`
##### <a name="section_prefix"></a>`section_prefix`
The prefix to the section name\'s header.
Default value: `[`
##### <a name="section_suffix"></a>`section_suffix`
The suffix to the section name\'s header.
Default value: `]`
##### <a name="setting"></a>`setting`
The name of the setting to be defined.
##### <a name="show_diff"></a>`show_diff`
Valid values: ``true``, `md5`, ``false``
Whether to display differences when the setting changes.
Default value: ``true``
### <a name="ini_subsetting"></a>`ini_subsetting`
ini_subsettings is used to manage multiple values in a setting in an INI file
#### Properties
The following properties are available in the `ini_subsetting` type.
##### `ensure`
Valid values: `present`, `absent`
Ensurable method handles modeling creation. It creates an ensure property
Default value: `present`
##### `value`
The value of the subsetting to be defined.
#### Parameters
The following parameters are available in the `ini_subsetting` type.
* [`delete_if_empty`](#delete_if_empty)
* [`insert_type`](#insert_type)
* [`insert_value`](#insert_value)
* [`key_val_separator`](#key_val_separator)
* [`name`](#name)
* [`path`](#path)
* [`provider`](#provider)
* [`quote_char`](#quote_char)
* [`section`](#section)
* [`setting`](#setting)
* [`show_diff`](#show_diff)
* [`subsetting`](#subsetting)
* [`subsetting_key_val_separator`](#subsetting_key_val_separator)
* [`subsetting_separator`](#subsetting_separator)
* [`use_exact_match`](#use_exact_match)
##### <a name="delete_if_empty"></a>`delete_if_empty`
Valid values: ``true``, ``false``
Set to true to delete the parent setting when the subsetting is empty instead of writing an empty string
Default value: ``false``
##### <a name="insert_type"></a>`insert_type`
Valid values: `start`, `end`, `before`, `after`, `index`
Where the new subsetting item should be inserted
* :start - insert at the beginning of the line.
* :end - insert at the end of the line (default).
* :before - insert before the specified element if possible.
* :after - insert after the specified element if possible.
* :index - insert at the specified index number.
Default value: `end`
##### <a name="insert_value"></a>`insert_value`
The value for the insert types which require one.
##### <a name="key_val_separator"></a>`key_val_separator`
The separator string to use between each setting name and value.
Default value: ` = `
##### <a name="name"></a>`name`
namevar
An arbitrary name used as the identity of the resource.
##### <a name="path"></a>`path`
The ini file Puppet will ensure contains the specified setting.
##### <a name="provider"></a>`provider`
The specific backend to use for this `ini_subsetting` resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.
##### <a name="quote_char"></a>`quote_char`
The character used to quote the entire value of the setting. Valid values are '', '\"' and \"'\"
Default value: `''`
##### <a name="section"></a>`section`
The name of the section in the ini file in which the setting should be defined.
Default value: `''`
##### <a name="setting"></a>`setting`
The name of the setting to be defined.
##### <a name="show_diff"></a>`show_diff`
Valid values: ``true``, `md5`, ``false``
Whether to display differences when the setting changes.
Default value: ``true``
##### <a name="subsetting"></a>`subsetting`
The name of the subsetting to be defined.
##### <a name="subsetting_key_val_separator"></a>`subsetting_key_val_separator`
The separator string between the subsetting name and its value. Defaults to the empty string.
Default value: `''`
##### <a name="subsetting_separator"></a>`subsetting_separator`
The separator string between subsettings. Defaults to the empty string.
Default value: ` `
##### <a name="use_exact_match"></a>`use_exact_match`
Valid values: ``true``, ``false``
Set to true if your subsettings don\'t have values and you want to use exact matches to determine if the subsetting
exists.
Default value: ``false``
## Functions
### <a name="create_ini_settings"></a>`create_ini_settings`
Type: Ruby 4.x API
DEPRECATED. Use the namespaced function [`inifile::create_ini_settings`](#inifilecreate_ini_settings) instead.
#### `create_ini_settings(Any *$args)`
The create_ini_settings function.
Returns: `Any`
##### `*args`
Data type: `Any`
### <a name="inifilecreate_ini_settings"></a>`inifile::create_ini_settings`
Type: Ruby 4.x API
This function is used to create a set of ini_setting resources from a hash
#### `inifile::create_ini_settings(Hash $settings, Optional[Hash] $defaults)`
The inifile::create_ini_settings function.
Returns: `Any`
##### `settings`
Data type: `Hash`
A hash of settings you want to create ini_setting resources from
##### `defaults`
Data type: `Optional[Hash]`
A hash of defaults you would like to use in the ini_setting resources
|