Resource Type: registry_value

Defined in:
lib/puppet/type/registry_value.rb
Providers:
registry

Overview

Manages registry values on Windows systems.

The registry_value type can manage registry values. See the type and data attributes for information about supported registry types, e.g. REG_SZ, and how the data should be specified.

Autorequires: Any parent registry key managed by Puppet will be autorequired.

Properties

  • data (defaults to: '')

    The data stored in the registry value. Data should be specified as a string value but may be specified as a Puppet array when the type is set to array.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • type (defaults to: string)

    The Windows data type of the registry value. Puppet provides helpful names for these types as follows:

    • string => REG_SZ

    • array => REG_MULTI_SZ

    • expand => REG_EXPAND_SZ

    • dword => REG_DWORD

    • qword => REG_QWORD

    • binary => REG_BINARY

    Supported values:
    • string
    • array
    • dword
    • qword
    • binary
    • expand

Parameters

  • path

    The path to the registry value to manage. For example: 'HKLMSoftwareValue1', 'HKEY_LOCAL_MACHINESoftwareVendorValue2'. If Puppet is running on a 64-bit system, the 32-bit registry key can be explicitly manage using a prefix. For example: '32:HKLMSoftwareValue3'