modifying registry values?

8 views
Skip to first unread message

Jason McMahan

unread,
Feb 9, 2017, 11:17:39 AM2/9/17
to Puppet Users
Good day,
We are using the puppetlabs-registry module and would like to know is it possible to replace specific string with in a registry key then write it back?

For example if i wanted to set the following firewall rule (and i know there are modules, but would this is the best example i could come up with currently.)
v2.22|Action=Block|Active=TRUE|Dir=In|Protocol=1|Profile=Private|Profile=Public|ICMP4=8:*|Name=@FirewallAPI.dll,-28543|Desc=@FirewallAPI.dll,-28547|EmbedCtxt=@FirewallAPI.dll,-28502|
to
v2.22|Action=Allow|Active=FALSE|Dir=In|Protocol=1|Profile=Private|Profile=Public|ICMP4=8:*|Name=@FirewallAPI.dll,-28543|Desc=@FirewallAPI.dll,-28547|EmbedCtxt=@FirewallAPI.dll,-28502|

Is it possible to do this and if so could anyone suggest methods or a place i could read up on how to do this?

Thank you in advance, i appreciate any help or guidance.



Reply all
Reply to author
Forward
0 new messages