Ask Your Question
0

puppet registry module giving issues.

asked 2016-05-10 06:59:27 -0500

suman gravatar image

I created one of the sample module as given on docs.puppet.com on master having a class named criticalpolicy. The content of the init.pp manifest is: include criticalpolicy class critical_policy { registry::value { 'Legal Notice Caption': key => '\HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System', value => 'legalnoticecaption', data => 'Legal Notice', } registry::value { 'Legal Notice Text': key => '\HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System', value => 'legalnoticetext', data => 'Login constitutes acceptance of end user license agreement', } }

The class is included in a corresponding node group. When I try to run puppet agent from windows node, I get the error attached: C:\fakepath\error.png

Please help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-05-10 08:15:20 -0500

be good to see value.pp where the error is occurring.

it appears that you're referencing your hash incorrectly (says no value for $key)

have a look at: reference hash val

edit flag offensive delete link more

Comments

Yes the error is in value.pp file for the puppet's registry module. I have used all the hashes correctly and not able to figure out what's wrong here.

suman gravatar imagesuman ( 2016-05-10 13:38:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-05-10 06:59:27 -0500

Seen: 26 times

Last updated: May 10 '16