append registry array (REG_MULTI_SZ) with puppet

197 views
Skip to first unread message

Helen Paterson

unread,
Mar 12, 2014, 12:24:20 PM3/12/14
to puppet...@googlegroups.com
 
Hi,
 
When add values to a key using the below puppet code it clears the current values on the server. Is there away to simply append a reg key value ?
 

class winregistry {
 
    registry_value { 'hklm\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\BackConnectionHostNames':
    ensure => present,
    type => array,
    data => ['myservername2.mydomain.com', 'myservername3.mydomain.com','myservername4.mydomain.com'],
                }
  
                      }

 

 

 

 

Josh Cooper

unread,
Mar 20, 2014, 6:46:00 PM3/20/14
to puppet...@googlegroups.com
Hi Helen,


On Wed, Mar 12, 2014 at 9:24 AM, Helen Paterson <helen.p...@gmail.com> wrote:
 
Hi,
 
When add values to a key using the below puppet code it clears the current values on the server. Is there away to simply append a reg key value ? 

Not currently. Please file a ticket at https://tickets.puppetlabs.com/browse/MODULES and add 'registry' as the component.

 

class winregistry {
 
    registry_value { 'hklm\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\BackConnectionHostNames':
    ensure => present,
    type => array,
    data => ['myservername2.mydomain.com', 'myservername3.mydomain.com','myservername4.mydomain.com'],
                }
  
                      }

 

 

 

 

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/337dac52-9f31-41ea-8679-2d3096457e60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Josh

--
Josh Cooper
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco - http://bit.ly/pupconf14
Register now and save $350! 
Reply all
Reply to author
Forward
0 new messages