Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3195

"Munging failed" error when using registry::value

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • registry
    • None
    • Modules
    • 1
    • Modules 2017-01-25, Modules 2017-02-08
    • Automate
    • Seen in the field

    Description

      Using puppetlabs/registry version 1.1.3, the following Puppet code causes the error message shown below:

      registry::value { 'Disable DomainProfile firewall':
        key   => 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\DomainProfile',
        value => 'EnableFirewall',
        data  => '0',
        type  => 'dword',
      }
      

      Error: Failed to apply catalog: Parameter path failed on Registry_key[HKLM\SYSTE
      M\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfil
      e]: Munging failed for value "HKLM\\SYSTEM\\CurrentControlSet\\Services\\SharedA
      ccess\\Parameters\\FirewallPolicy\\DomainProfile" in class path: Cannot alias Re
      gistry_key[HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\Firewa
      llPolicy\DomainProfile] to "hklm\\system\\currentcontrolset\\services\\sharedacc
      ess\\parameters\\firewallpolicy\\domainprofile" at /etc/puppetlabs/code/environm
      ents/production/modules/registry/manifests/value.pp:67; resource ["Registry_key"
      , "hklm\\system\\currentcontrolset\\services\\sharedaccess\\parameters\\firewall
      policy\\domainprofile"] already declared at /etc/puppetlabs/code/environments/pr
      oduction/modules/registry/manifests/value.pp:67 at /etc/puppetlabs/code/environm
      ents/production/modules/registry/manifests/value.pp:67
      

      This is being seen on a Windows 2012 server that is an agent of a master running PE 2015.3.3.

      Attachments

        Issue Links

          Activity

            People

              wilson Wilson McCoubrey
              nate.mccurdy Nate McCurdy
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support