summaryrefslogtreecommitdiff
path: root/sysutils/py-salt/files
diff options
context:
space:
mode:
authorJason Unovitch <junovitch@FreeBSD.org>2016-07-13 01:53:45 +0000
committerJason Unovitch <junovitch@FreeBSD.org>2016-07-13 01:53:45 +0000
commit6fae8107d21fbaa1c7f144000564de22c17fde07 (patch)
tree9877e09887c211f61ddb7d5323859e002c793bbe /sysutils/py-salt/files
parentAdd information about CVE-2016-2119 vulnerability in Samba suits. (diff)
sysutils/py-salt: add patches to handle runtime regressions in 2016.3.x
Fixes cron.file from upstream issue #34094/#34095 [1]. This will be in 2016.3.2. - https://github.com/saltstack/salt/issues/34094 - https://github.com/saltstack/salt/pull/34095 Restore patch for upstream issue #33608. This was patched in 2016.3.0 but removed in the maintainer update to 2016.3.1 in r417508. However the patch has yet to be merged upstream. [2] - https://github.com/saltstack/salt/issues/33608 PR: 210627 [1], 210395 [2] Reported by: Andres Montalban <amontalban@gmail.com> Approved by: Christer Edwards <christer.edwards@gmail.com> (maintainer) MFH: 2016Q3
Notes
Notes: svn path=/head/; revision=418455
Diffstat (limited to 'sysutils/py-salt/files')
-rw-r--r--sysutils/py-salt/files/patch-salt_grains_core.py12
-rw-r--r--sysutils/py-salt/files/patch-salt_states_cron.py28
2 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/py-salt/files/patch-salt_grains_core.py b/sysutils/py-salt/files/patch-salt_grains_core.py
new file mode 100644
index 000000000000..04794a04deff
--- /dev/null
+++ b/sysutils/py-salt/files/patch-salt_grains_core.py
@@ -0,0 +1,12 @@
+# Issue #33608
+# https://github.com/saltstack/salt/issues/33608
+--- salt/grains/core.py.orig 2016-05-25 22:30:31 UTC
++++ salt/grains/core.py
+@@ -1422,6 +1422,7 @@ def os_data():
+ else:
+ grains['os'] = grains['kernel']
+ if grains['kernel'] == 'FreeBSD':
++ grains.update(_bsd_cpudata(grains))
+ try:
+ grains['osrelease'] = __salt__['cmd.run']('freebsd-version -u').split('-')[0]
+ except salt.exceptions.CommandExecutionError:
diff --git a/sysutils/py-salt/files/patch-salt_states_cron.py b/sysutils/py-salt/files/patch-salt_states_cron.py
new file mode 100644
index 000000000000..325f446d7f18
--- /dev/null
+++ b/sysutils/py-salt/files/patch-salt_states_cron.py
@@ -0,0 +1,28 @@
+# Fixes cron.file from upstream issue #34094/#34095 [1]. This will be in
+# 2016.3.2.
+# https://github.com/saltstack/salt/issues/34094
+# https://github.com/saltstack/salt/pull/34095
+--- salt/states/cron.py.orig 2016-06-13 22:17:50 UTC
++++ salt/states/cron.py
+@@ -540,6 +540,7 @@ def file(name,
+ __env__,
+ context,
+ defaults,
++ False, # skip_verify
+ **kwargs
+ )
+ except Exception as exc:
+@@ -573,12 +574,12 @@ def file(name,
+ ret['comment'] = 'Unable to manage file: {0}'.format(exc)
+ return ret
+
++ cron_ret = None
+ if ret['changes']:
+ cron_ret = __salt__['cron.write_cron_file_verbose'](user, cron_path)
+ ret['changes'] = {'diff': ret['changes']['diff']}
+ ret['comment'] = 'Crontab for user {0} was updated'.format(user)
+ elif ret['result']:
+- cron_ret = None
+ ret['comment'] = 'Crontab for user {0} is in the correct ' \
+ 'state'.format(user)
+