linux:puppet:useful_docs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:puppet:useful_docs [2022/11/22 10:07] – created dodger | linux:puppet:useful_docs [2022/11/22 10:14] (current) – dodger | ||
---|---|---|---|
Line 8: | Line 8: | ||
[[https:// | [[https:// | ||
+ | === Quote === | ||
+ | |||
+ | If you want to execute any command on Puppet Master server you can use inline_template function with ERB template inside and Ruby code for execute shell command: | ||
+ | <code java> | ||
+ | $password = " | ||
+ | $secretvalue = inline_template("< | ||
+ | notify { " | ||
+ | </ | ||
+ | |||
+ | P.S. If you just want to encode string to Base64 format you can import puppetlabs-stdlib module and use base64 function from it: | ||
+ | <code ruby> | ||
+ | $secretvalue = base64(' | ||
+ | </ |
linux/puppet/useful_docs.1669111662.txt.gz · Last modified: 2022/11/22 10:07 by dodger