mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
change the hostname var to id in the config stack
This commit is contained in:
parent
8055437e2d
commit
b24801fc0d
2 changed files with 7 additions and 3 deletions
|
@ -10,8 +10,12 @@
|
|||
# The directory to store the pki information in
|
||||
#pki_dir: /etc/salt/pki
|
||||
|
||||
# Explicitly declare the hostname rather than detecting it
|
||||
#hostname:
|
||||
# Explicitly declare the id for this minion to use, if left commented the id
|
||||
# will be the hostname as returned by the python call: socket.getfqdn()
|
||||
# Since salt uses detatched ids it is possible to run multiple minions on the
|
||||
# same machine but with different ids, this can be usefull for salt compute
|
||||
# clusters.
|
||||
#id:
|
||||
|
||||
# Where cache data goes
|
||||
#cachedir: /var/cache/salt
|
||||
|
|
|
@ -18,7 +18,7 @@ def minion_config(path):
|
|||
opts = {'master': 'mcp',
|
||||
'master_port': '4506',
|
||||
'pki_dir': '/etc/salt/pki',
|
||||
'hostname': socket.getfqdn(),
|
||||
'id': socket.getfqdn(),
|
||||
'cachedir': '/var/cache/salt',
|
||||
'conf_file': path,
|
||||
'disable_modules': [],
|
||||
|
|
Loading…
Add table
Reference in a new issue