Last active
April 23, 2023 09:18
-
-
Save yimeng/40de2f4b62388f9691d68e5c3a9d6f7a to your computer and use it in GitHub Desktop.
salt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /etc/salt/master.d/api.conf | |
| rest_cherrypy: | |
| port: 8000 | |
| ssl_crt: /etc/pki/tls/certs/localhost.crt | |
| ssl_key: /etc/pki/tls/certs/localhost.key | |
| /etc/salt/master.d/auth.conf | |
| external_auth: | |
| pam: | |
| saltapi: | |
| - .* | |
| - '@wheel' | |
| - '@runner' | |
| /etc/salt/master | |
| default_include: master.d/*.conf | |
| setfacl -m u:salt:r /etc/shadow | |
| curl -sSk https://xxxx:8000/login -H 'Accept: application/x-yaml' -d username=saltapi -d password=xxxx -d eauth=pam | |
| salt -a pam '*' test.ping -l trace | |
| echo 'saltapi' | passwd --stdin saltapi | |
| chmod 755 /etc/pki/tls/certs/localhost.* | |
| salt-call --local tls.create_self_signed_cert | |
| pve: | |
| python3.9 -m pip install markupsafe==2.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment