Hi Raghuram, yes this is achieved with the subscribe meta parameter. For example:
registry_value { 'disable_defender': ensure => present, type => dword, path => 'HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\DisableAntiSpyware', value => 1 } reboot { 'regkey_reboot': subscribe => Registry_value['disable_defender'] } Kind regards, *Kevin Reeuwijk* Sr Principal Sales Engineer, EMEA On Monday, December 21, 2020 at 10:31:46 AM UTC+1 baisani...@gmail.com wrote: > Hi All > > Is it possible to create a subscription to registry creation so that once > registry entry is created then we can restart the box/machine? For creating > the registry entry I'm using create_resources function. > Thanks > Raghuram Baisani > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/42f65e85-df4b-4bf4-8f08-c577e083aa9cn%40googlegroups.com.