apache: pkg: - installed service: - running - watch: - pkg: apache - file: /etc/httpd/conf/httpd.conf - user: apache user.present: - uid: 87 - gid: 87 - home: /var/www/html - shell: /bin/nologin - require: - group: apache group.present: - gid: 87 - require: - pkg: apache/etc/httpd/conf/httpd.conf: file.managed: - source: salt://apache/httpd.conf - user: root - group: root - mode: 644
salt ‘*‘ cmd.run ‘update‘ #在所有的客户端执行‘update‘ 命令
salt-key -L #列车未认证的节点
salt-key -a #添加、接受客户端认证
salt-key -A #添加、接受所有客户端的认证
salt简单配置
时间: 2024-10-08 00:02:12