change the hostname var to id in the config stack

This commit is contained in:
Thomas S Hatch 2011-04-12 13:56:03 -06:00
parent 8055437e2d
commit b24801fc0d
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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': [],