python/psf-salt

Salt Master Vagrant Provisioning Error

scottilee opened this issue · 0 comments

Provisioning the Salt master through Vagrant produces the following error, which seems to be caused by a reference (https://github.com/python/psf-salt/blob/master/salt/_states/consul.py#L5) to a non-existent Pillar value (https://github.com/python/psf-salt/blob/master/pillar/dev/consul.sls or https://github.com/python/psf-salt/blob/master/pillar/prod/consul.sls):

    salt-master: [ERROR   ] An exception occurred in this state: Traceback (most recent call last):
    salt-master:   File "/usr/lib/python3/dist-packages/salt/state.py", line 1919, in call
    salt-master:     **cdata['kwargs'])
    salt-master:   File "/usr/lib/python3/dist-packages/salt/loader.py", line 1918, in wrapper
    salt-master:     return f(*args, **kwargs)
    salt-master:   File "/var/cache/salt/minion/extmods/states/consul.py", line 5, in external_service
    salt-master:     token = __pillar__['consul']['acl']['tokens']['default']
    salt-master: KeyError: 'default'