Saltstack-在gpg解密模块中添加多行加密值

时间:2019-01-08 08:37:02

标签: gpgpu salt-stack salt

在选项文本中,我不知道如何添加多行加密值,如下所示,我尝试使用'''...'''和'...',但是看不到不懂此文本语法。

salt -v '*' gpg.decrypt gnupghome=/etc/salt/gpgkeys bare=False text='''-----BEGIN PGP MESSAGE-----
 Version: GnuPG v2.0.22 (GNU/Linux)
 hQEMA86rrGwfdO21AQf/SS8jTuotjgbX4U+RBegTLw+3WkTPX0vaXT4S2S/ILhde
 bbG15MWTM9FVGyE2EcqFoxaireW8lzPW7H+qW1A8vps5saCeZ4uoMmzpbCC5NQBb
 IzxCKjTyl700QBvqiAOhvSG9Vxz5ZRuuo5smxuSKDMFx+wUnXuaC4vOsd3xWiBkd
 l+2zRY8h01ztRH8u5cdrr9+2AK/Vc5vZ1nczF122saIjJ3SA6d39YdjD1mwOIvh2
 Iv5/UhScLLPNYmSgQKBj2BqXLi6bzG9DpbHwB9vSgODDv0irBkIHxp6cMrdrXruC
 WMZGLmeFWpGJkSFU6z2ytkgaT69aZQx7J1ZXO0yGaNJdAVaxa30zX/8axuBnSN8D
 ZV2VHagEq+0Z293pS/EcSnPSY2zh/uaGUiVJmnMpNjt7YorXcXx42NiJA2CAlQIw
 TaGLU0dSCQThLBR0uhaLCygkP4xjBDl4A8ACUcsb
 =p7zt
 -----END PGP MESSAGE-----'''
Executing job with jid 20190108082442885066
-------------------------------------------

nginxr:
    ERROR executing 'gpg.decrypt': filename or text must be passed.
salt -v -v '*' gpg.decrypt gnupghome=/etc/salt/gpgkeys bare=False   0.48s user 0.09s system 47% cpu 1.195 total

有什么主意吗?

0 个答案:

没有答案