GG
Size: a a a
GG
GG
*
cat /srv/pillar/top.sls?
base:
'*':
- data
cat /srv/pillar/data.sls
info: some data
salt-ssh '*' saltutil.refresh_pillar
albb_hk_c_01:
False
чяднт
*
Executing job with jid 20210621130707661001
-------------------------------------------
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Override __grains__: <module 'salt.loaded.int.wrapper.grains' from '/usr/lib/python3.6/site-packages/salt/client/ssh/wrapper/grains.py'>
[DEBUG ] Could not LazyLoad saltutil.refresh_pillar: 'saltutil.refresh_pillar' is not available.
[DEBUG ] Performing shimmed, blocking command as follows:
saltutil.refresh_pillar
[DEBUG ] Executed SHIM command. Command logged to TRACE
[DEBUG ] Child Forked! PID: 2221684 STDOUT_FD: 12 STDERR_FD: 15
[DEBUG ] VT: Salt-SSH SHIM Terminal Command executed. Logged to TRACE
[DEBUG ] RETCODE 47.243.138.112: 0
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded nested.output
*
*
salt-ssh '*' state.sls tinc
[CRITICAL] Rendering SLS 'base:tinc' failed: while constructing a mapping
in "<unicode string>", line 3, column 1
found conflicting ID '/etc/tinc/meshnet/tinc-up'
in "<unicode string>", line 42, column 1
*
init.sls
{% for tinc_ip, tinc_host in pillar.items() %}
/etc/tinc/meshnet/tinc-up:
file:
- managed
- mode: 755
- source: salt://tinc/meshnet/tinc-up.jinja
- template: jinja
- context:
tinc_ip: {{ tinc_ip }}
{% endfor %}
meshnet/tinc-up.jinja
#!/bin/sh
ip link set $INTERFACE up
ip addr add {{ tinc_ip }}/32 dev $INTERFACE
ip route add 10.20.0.0/24 dev $INTERFACE
KP
KP
KP
R
KP
YZ
KP