标签:cront roo 安装 时间 ... enable salt-key min ali
rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm yum install salt-master systemctl enable salt-master systemctl start salt-master
rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm yum install salt-minion -y systemctl enable salt-minion //修改配置 vim /etc/salt/minion ... master: <master_ip or domain_name> id: <hostname> ... systemctl start salt-minion
salt-key -L //列出所有已接受/未接受/拒绝的minion salt-key -a <minion_id> //接受此minion salt-key -A //接受所有的minion //对于有很多minion的情况,可以在/etc/salt/master配置查找如下行,去掉注释让master完成自动签发 auto_accept: True
salt * test.ping
salt ‘c2.heboan.com‘ sys.list_modules;
[root@c1 ~]# salt ‘c2.heboan.com‘ sys.list_functions cron c2.heboan.com: - cron.list_tab - cron.ls - cron.raw_cron - cron.rm - cron.rm_env - cron.rm_job - cron.set_env - cron.set_job - cron.set_special - cron.write_cron_file - cron.write_cron_file_verbose
[root@c1 ~]# salt ‘c2.heboan.com‘ sys.doc cron.list_tab ‘cron.list_tab:‘ Return the contents of the specified user‘s crontab CLI Example: salt ‘*‘ cron.list_tab root
[root@c1 ~]# salt ‘c2.heboan.com‘ cron.list_tab root c2.heboan.com: ---------- crons: env: pre: - #校准时间 - */5 * * * * /usr/sbin/ntpdate ntp.api.bz special:
标签:cront roo 安装 时间 ... enable salt-key min ali
原文地址:https://www.cnblogs.com/sellsa/p/9185415.html