saltstack-runners
创建目录
mkdir -p /srv/salt/_runner ; cd /srv/salt/_runner
修改配置文件
runner_dirs: [‘/srv/salt/_runner’]
编写runner
1 | #!/usr/bin/evn python |
调用
sudo salt-run public.push
saltstack-runners
mkdir -p /srv/salt/_runner ; cd /srv/salt/_runner
runner_dirs: [‘/srv/salt/_runner’]
1 | #!/usr/bin/evn python |
sudo salt-run public.push
saltstack-runners