Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to Pass puppet hashtable to powershell hash parameter

$
0
0
We have the following data defined in default.yaml module_ui::config_params: audit_log_filepath: "C:/temp/Audit.log" syndication_filepath1: "xsl/200/repcodechooser.xsl" syndication_filepath2: "xsl/106/repcodechooser.xsl" **Read the Hash into Puppet Hashtable** $config_hash = hiera("module_ui::config_params") **Execute Powershell with param as hashtable** exec { 'setup-webconfig': command => "& C:\ProgramData\PuppetLabs\code\modules\module_ui\files\ConfigFileProcess.ps1 -HieraDataHashTable $config_hash", provider => powershell, logoutput => true, } This will not convert to power shell hash table format . Is there a default support or any module available to convert puppet hastable format to power shell hastable format. Thanks in advance.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>