说明:salt_api可参考文档:https://salt-api.readthedocs.io/en/latest/
后续会继续文章介绍salt_api
1 安装配置:#
1 | rpm -ihv python-cherrypy-5.6.0-2.el7.noarch.rpm |
2.配置#
1 | vim /etc/salt/master.d/api.conf |
3.添加用户#
1 | useradd -M -s /sbin/nologin saltapi |
4.验证#
1 | curl -k https://192.168.48.222:8000/login -H 'Accept: application/x-yaml' -d username='saltapi' -d password='saltapi' -d eauth='pam' |