saltstack/salt — Issue #576: virtualenv issue (etc default and location)
Author: teichopsia
Created: 2012-01-26 02:48:06+00:00
State: open

install salt via pip in a virtualenv and the salt tools still reference /etc/ hardcoded for the master/minion/pki config defaults:

salt$ grep /etc/ *.py
client.py: def __init__(self, c_path='/etc/salt/master'):
config.py: 'pki_dir': '/etc/salt/pki',
config.py: 'pki_dir': '/etc/salt/pki',
__init__.py: default='/etc/salt/minion',
__init__.py: default='/etc/salt/master',
__init__.py: default='/etc/salt/minion',

-c and SALT_MASTER_CONFIG both work as intended however.

also, etc that gets installed into the virtualenv is a directory above said virtualenv for some reason:

salt/bin/activate
salt/bin/salt-master
...
etc/salt/master.template
etc/salt/master