Update to salt-2014.1.11.
This commit is contained in:
parent
1211126b61
commit
9cf3b5467b
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.39 2014/09/08 07:56:37 ajacoutot Exp $
|
# $OpenBSD: Makefile,v 1.40 2014/09/10 06:08:42 ajacoutot Exp $
|
||||||
|
|
||||||
# optional dependencies
|
# optional dependencies
|
||||||
# https://github.com/saltstack/salt/blob/develop/doc/conf.py#L42
|
# https://github.com/saltstack/salt/blob/develop/doc/conf.py#L42
|
||||||
@ -16,9 +16,8 @@
|
|||||||
|
|
||||||
COMMENT = remote execution and configuration management system
|
COMMENT = remote execution and configuration management system
|
||||||
|
|
||||||
MODPY_EGG_VERSION = 2014.1.10
|
MODPY_EGG_VERSION = 2014.1.11
|
||||||
DISTNAME = salt-${MODPY_EGG_VERSION}
|
DISTNAME = salt-${MODPY_EGG_VERSION}
|
||||||
REVISION = 15
|
|
||||||
|
|
||||||
CATEGORIES = sysutils net devel
|
CATEGORIES = sysutils net devel
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (salt-2014.1.10.tar.gz) = 8XX8A4WEn+VXwMkbAzGSbazWZa4Lo6oNWFvXZw0T7cU=
|
SHA256 (salt-2014.1.11.tar.gz) = gLlFGlbSKC5GlklluqJwY/XiazdKD45Yg7IIcw2vbhw=
|
||||||
SIZE (salt-2014.1.10.tar.gz) = 2813318
|
SIZE (salt-2014.1.11.tar.gz) = 2820888
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
$OpenBSD: patch-salt_states_user_py,v 1.2 2014/09/02 17:18:55 ajacoutot Exp $
|
$OpenBSD: patch-salt_states_user_py,v 1.3 2014/09/10 06:08:42 ajacoutot Exp $
|
||||||
|
|
||||||
https://github.com/saltstack/salt/commit/e7df337b5549309867e672ea3362f63b584d5c98
|
https://github.com/saltstack/salt/commit/e7df337b5549309867e672ea3362f63b584d5c98
|
||||||
|
|
||||||
--- salt/states/user.py.orig Fri Aug 1 20:38:41 2014
|
--- salt/states/user.py.orig Tue Sep 9 22:42:17 2014
|
||||||
+++ salt/states/user.py Fri Aug 29 16:58:36 2014
|
+++ salt/states/user.py Wed Sep 10 08:05:20 2014
|
||||||
@@ -57,7 +57,8 @@ def _changes(name,
|
@@ -61,6 +61,7 @@ def _changes(name,
|
||||||
fullname='',
|
|
||||||
roomnumber='',
|
roomnumber='',
|
||||||
workphone='',
|
workphone='',
|
||||||
- homephone=''):
|
homephone='',
|
||||||
+ homephone='',
|
+ loginclass=None,
|
||||||
+ loginclass=None):
|
date=0,
|
||||||
'''
|
mindays=0,
|
||||||
Return a dict of the changes required for a user if the user is present,
|
maxdays=999999,
|
||||||
otherwise return False.
|
@@ -146,6 +147,12 @@ def _changes(name,
|
||||||
@@ -119,6 +120,12 @@ def _changes(name,
|
|
||||||
if 'user.chhomephone' in __salt__:
|
if 'user.chhomephone' in __salt__:
|
||||||
if homephone is not None and lusr['homephone'] != homephone:
|
if homephone is not None and lusr['homephone'] != homephone:
|
||||||
change['homephone'] = homephone
|
change['homephone'] = homephone
|
||||||
@ -27,27 +25,23 @@ https://github.com/saltstack/salt/commit/e7df337b5549309867e672ea3362f63b584d5c9
|
|||||||
|
|
||||||
return change
|
return change
|
||||||
|
|
||||||
@@ -140,7 +147,8 @@ def present(name,
|
@@ -169,6 +176,7 @@ def present(name,
|
||||||
fullname=None,
|
|
||||||
roomnumber=None,
|
roomnumber=None,
|
||||||
workphone=None,
|
workphone=None,
|
||||||
- homephone=None):
|
homephone=None,
|
||||||
+ homephone=None,
|
+ loginclass=None,
|
||||||
+ loginclass=None):
|
date=None,
|
||||||
'''
|
mindays=None,
|
||||||
Ensure that the named user is present with the specified properties
|
maxdays=None,
|
||||||
|
@@ -349,6 +357,7 @@ def present(name,
|
||||||
@@ -277,7 +285,8 @@ def present(name,
|
|
||||||
fullname,
|
|
||||||
roomnumber,
|
roomnumber,
|
||||||
workphone,
|
workphone,
|
||||||
- homephone)
|
homephone,
|
||||||
+ homephone,
|
+ loginclass,
|
||||||
+ loginclass)
|
date,
|
||||||
|
mindays,
|
||||||
if changes:
|
maxdays,
|
||||||
if __opts__['test']:
|
@@ -367,6 +376,8 @@ def present(name,
|
||||||
@@ -290,6 +299,8 @@ def present(name,
|
|
||||||
# The user is present
|
# The user is present
|
||||||
if 'shadow.info' in __salt__:
|
if 'shadow.info' in __salt__:
|
||||||
lshad = __salt__['shadow.info'](name)
|
lshad = __salt__['shadow.info'](name)
|
||||||
@ -55,8 +49,8 @@ https://github.com/saltstack/salt/commit/e7df337b5549309867e672ea3362f63b584d5c9
|
|||||||
+ lcpre = __salt__['user.get_loginclass'](name)
|
+ lcpre = __salt__['user.get_loginclass'](name)
|
||||||
pre = __salt__['user.info'](name)
|
pre = __salt__['user.info'](name)
|
||||||
for key, val in changes.items():
|
for key, val in changes.items():
|
||||||
if key == 'passwd':
|
if key == 'passwd' and not empty_password:
|
||||||
@@ -307,6 +318,8 @@ def present(name,
|
@@ -408,6 +419,8 @@ def present(name,
|
||||||
if 'shadow.info' in __salt__:
|
if 'shadow.info' in __salt__:
|
||||||
if lshad['passwd'] != password:
|
if lshad['passwd'] != password:
|
||||||
spost = __salt__['shadow.info'](name)
|
spost = __salt__['shadow.info'](name)
|
||||||
@ -65,7 +59,7 @@ https://github.com/saltstack/salt/commit/e7df337b5549309867e672ea3362f63b584d5c9
|
|||||||
# See if anything changed
|
# See if anything changed
|
||||||
for key in post:
|
for key in post:
|
||||||
if post[key] != pre[key]:
|
if post[key] != pre[key]:
|
||||||
@@ -315,6 +328,9 @@ def present(name,
|
@@ -416,6 +429,9 @@ def present(name,
|
||||||
for key in spost:
|
for key in spost:
|
||||||
if lshad[key] != spost[key]:
|
if lshad[key] != spost[key]:
|
||||||
ret['changes'][key] = spost[key]
|
ret['changes'][key] = spost[key]
|
||||||
@ -75,17 +69,15 @@ https://github.com/saltstack/salt/commit/e7df337b5549309867e672ea3362f63b584d5c9
|
|||||||
if ret['changes']:
|
if ret['changes']:
|
||||||
ret['comment'] = 'Updated user {0}'.format(name)
|
ret['comment'] = 'Updated user {0}'.format(name)
|
||||||
changes = _changes(name,
|
changes = _changes(name,
|
||||||
@@ -330,7 +346,8 @@ def present(name,
|
@@ -434,6 +450,7 @@ def present(name,
|
||||||
fullname,
|
|
||||||
roomnumber,
|
roomnumber,
|
||||||
workphone,
|
workphone,
|
||||||
- homephone)
|
homephone,
|
||||||
+ homephone,
|
+ loginclass,
|
||||||
+ loginclass)
|
date,
|
||||||
|
mindays,
|
||||||
if changes:
|
maxdays,
|
||||||
ret['comment'] = 'These values could not be changed: {0}'.format(
|
@@ -470,7 +487,8 @@ def present(name,
|
||||||
@@ -361,7 +378,8 @@ def present(name,
|
|
||||||
roomnumber=roomnumber,
|
roomnumber=roomnumber,
|
||||||
workphone=workphone,
|
workphone=workphone,
|
||||||
homephone=homephone,
|
homephone=homephone,
|
||||||
@ -94,4 +86,4 @@ https://github.com/saltstack/salt/commit/e7df337b5549309867e672ea3362f63b584d5c9
|
|||||||
+ loginclass=loginclass):
|
+ loginclass=loginclass):
|
||||||
ret['comment'] = 'New user {0} created'.format(name)
|
ret['comment'] = 'New user {0} created'.format(name)
|
||||||
ret['changes'] = __salt__['user.info'](name)
|
ret['changes'] = __salt__['user.info'](name)
|
||||||
if all((password, 'shadow.info' in __salt__)):
|
if 'shadow.info' in __salt__ and not salt.utils.is_windows():
|
||||||
|
Loading…
Reference in New Issue
Block a user