当我启动salt minions时,我得到了一些错误: Error while bringing up minion for multi-master. Is master at salt-server00001.nix.us.companyworld.company.com responding?
2019-10-16 11:57:27,935 [salt.minion ][ERROR ][34679] Error while bringing up minion for multi-master. Is master at usazrcncm10286.nix.us
给定这个字符串:用下一个方法用ÑIóÝ7áÔtV†°dvÔ抄!Ï=4à)µ Å!Úã̓¸§cî£ÖošaUÕÝ€÷÷p³6ò¥ˆa,生成的SecureRandom:
public String getSalt() throws UnsupportedEncodingException {
String salt = null;
SecureRandom random = new SecureRandom();
byte[] saltArr = new byte[64];
random.nextBytes(saltArr);
salt = ne
当从盐主linux盒运行命令时,我总是得到类似于以下结果的结果:
[root@salt-master ~]# salt 'target-server' cmd.run 'date'
target-server:
Fri Jul 24 22:41:44 UTC 2015
怎样才能只得到命令的结果,而不是目标服务器的结果呢?
[root@salt-master ~]# salt 'target-server' cmd.run 'date' --SOMETHING I HAVE TO DO---
Fri Jul 24 22:41
首先是事实:
Debian GNU/Linux 8.6 (jessie)
盐主2016.3.3 (硼)
盐业2016.3.3 (硼)
我试着使用描述的节点组。
nodegroups:
web: 'salt-master1,salt-master2'
如果我跑..。
salt -N web test.ping
..。其结果是:
No minions matched the target. No command was sent, no jid was assigned.
ERROR: No return received
将节点组更改为:
nodegrou
我正在配置一个本地的Salt设置,我遇到了一些麻烦。我的设置是: CentOS: Red Hat Enterprise Linux Server release 7.7 (Maipo) Salt: salt 3000.1 我有一个非常基本的配置,没有任何改变,从默认的主机或Minion配置。 我的目录结构如下: /srv/salt/apache/init.sls
/srv/salt/uptodate/common.sls 如果我运行以下命令: salt '*' state.sls apache Test=true 它会正确地应用apache文件夹中的sls文件。如果我运行:
我正在尝试使用pip在盐母版上安装一个库pycryptodome,但是安装后版本报告没有正确显示它。然而,我注意到的是,新安装的版本是针对pycrypto而不是pycryptodome更新的。
我需要重新装任何东西吗。或者有其他方法来安装它?
在版本报告下面。
ro@salt:~$ sudo salt --versions-report
Salt Version:
Salt: 3000.2
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
==17209== Conditional jump or move depends on uninitialised value(s)
==17209== at 0x402E7C5: __GI___rawmemchr (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==17209== by 0x40CE921: _IO_str_init_static_internal (strops.c:45)
==17209== by 0x40B0B76: __isoc99_vsscanf (isoc99_vsscanf.c:
我想执行以下命令:
1) salt '*' state.sls test
(test是.sls文件的名称,其and路径是/srv/salt/test.sls)
结果是:
minion-10-211-55-3:
Data failed to compile:
----------
No matching sls found for 'test' in env 'base'
2)salt '*' cp.get_file salt://hello.txt c:/new/hello.txt makedirs=True
( hell
当我尝试使用salt cloud部署到亚马逊EC2时,我得到了这个错误:
[root@salt salt]# salt-cloud -p ec2_private_win_r3.xlarge server00009
[ERROR ] AWS Response Status Code and Error: [401 401 Client Error: Unauthorized] {'Errors': {'Error': {'Message': 'AWS was not able to validate the provided acces