User Tools

Site Tools


linux:puppet:useful_docs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:puppet:useful_docs [2022/11/22 10:11] dodgerlinux:puppet:useful_docs [2022/11/22 10:14] (current) dodger
Line 11: Line 11:
  
 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: 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 ruby>+<code java>
 $password = "12345" $password = "12345"
 $secretvalue = inline_template("<%= `/bin/echo ${password} | /usr/bin/base64` %>") $secretvalue = inline_template("<%= `/bin/echo ${password} | /usr/bin/base64` %>")
linux/puppet/useful_docs.txt · Last modified: 2022/11/22 10:14 by dodger