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
Next revision
Previous revision
linux:puppet:useful_docs [2022/11/22 10:09] 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` %>")
- 
 notify { "STDOUT: ${secretvalue}": } notify { "STDOUT: ${secretvalue}": }
 </code> </code>
linux/puppet/useful_docs.1669111745.txt.gz · Last modified: 2022/11/22 10:09 by dodger