2015.8.3 新版功能.
The salt proxy beacon is meant to facilitate configuring
multiple proxies on one or many minions. This should simplify
configuring and managing multiple salt-proxy
processes.
base:
'p8000':
- p8000
This says that Salt's pillar should load some values for the proxy p8000
from the file /srv/pillar/p8000.sls (if you have not changed your default pillar_roots)
p8000.sls
---------
proxy:
# set proxytype for your proxymodule
proxytype: ssh_sample
host: saltyVM
username: salt
password: badpass
This should complete the proxy setup for p8000
salt_proxy
beaconbeacons:
salt_proxy:
- p8000: {}
Once this beacon is configured it will automatically start the salt-proxy
process. If the salt-proxy
process is terminated the beacon will
re-start it.
salt-key -y -a p8000
The following keys are going to be accepted:
Unaccepted Keys:
p8000
Key for minion p8000 accepted.
salt p8000 pkg.list_pkgs