R
Size: a a a
*
test.ping я ловлю такое:salt-ssh '*' test.ping
albb_hk_c_01:
----------
retcode:
1
stderr:
Traceback (most recent call last):
File "<string>", line 244, in <module>
File "<string>", line 419, in <module>
File "<string>", line 362, in main
File "<string>", line 265, in get_executable
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
stdout:
/bin/scp
*
/etc/sysctl.conf:
file:
- managed
{% if grains['host'] == 'bcs1' %}
- source: salt://sysctl/sysctl.conf_bcs1
{% elif grains['host'] == 'bcs3' %}
- source: salt://sysctl/sysctl.conf_bcs1
{% elif grains['host'] == 'bcs2' %}
- source: salt://sysctl/sysctl.conf_bcs1
{% endif %}
sysctlrun:
cmd.run:
- name: sysctl -p
GG
KP
KP
KP
sysctl_map:
vm.swappiness: 20
foor.bar: 30
{% for k, v in sysctl_map.items() %}
{{ k }}={{ v }}
{% endfor %}KL