В Пнд, 28/11/2016 в 15:03 -0800, MeggieBot пишет:
> We are pleased to announce the 2016.11.0 (Carbon) release of Salt!
Feature list look really interesting for me, thanks to all the saltstack
team for your work!
two small issues found during my tests:
1.
postgres_* states didn't load because execution module can't find initdb
on debian jessie systems with stock postgresql-9.4
in the docs binary directory mentioned:
postgres.pg_bin: '/usr/pgsql-9.5/bin/'
but execution module actually check for postgres.bins_dir:
def _find_pg_binary(util):
'''
... versionadded:: 2016.3.2
Helper function to locate various psql related binaries
'''
pg_bin_dir = __salt__['config.option']('postgres.bins_dir')
util_bin = salt.utils.which(util)
if not util_bin:
if pg_bin_dir:
return os.path.join(pg_bin_dir, util)
...
2. ssh_known_hosts.present now breaks w/o hash_known_hosts (2016.3
works)
Function: ssh_known_hosts.present
Result: False
Comment: An exception occurred in this state: Traceback (most
recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py",
line 1744, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/loader.py",
line 1702, in wrapper
return f(*args, **kwargs)
File
"/usr/lib/python2.7/dist-packages/salt/states/ssh_known_hosts.py", line
142, in present
timeout=timeout)
File
"/usr/lib/python2.7/dist-packages/salt/modules/ssh.py", line 1053, in
set_known_host
cmd_result =
__salt__['ssh.hash_known_hosts'](user=user, config=full)
File "<string>", line 2, in hash_known_hosts
File
"/usr/lib/python2.7/dist-packages/salt/utils/decorators/__init__.py",
line 186, in wrapped
return function(*args, **kwargs)
File
"/usr/lib/python2.7/dist-packages/salt/modules/ssh.py", line 1168, in
hash_known_hosts
os.stat(full, origmode)
TypeError: stat() takes exactly 1 argument (2 given)
sls:
ssh_known_hosts.present:
- user: {{ pillar['user'] }}
- enc: ecdsa-sha2-nistp256
- key: .....
Can be workarounded by hash_known_hosts: false
> --
> You received this message because you are subscribed to the Google
> Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
salt-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.