Disables modifying password of user 09/59409/2
authorTim Rozet <trozet@redhat.com>
Thu, 22 Jun 2017 15:19:19 +0000 (11:19 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 23 Jun 2017 19:27:44 +0000 (19:27 +0000)
Until we have support for detecting if an existing user's password
matches the desired password, we need to disable support for setting it.
The current behavior is we don't know what the current password is so we
always configure it.  This means our puppet module is not idempotent and
triggers ODL to restart everytime puppet is run, which is bad.

The request to add support for the idm tool to be able to check password
is:  https://bugs.opendaylight.org/show_bug.cgi?id=8721

Note this does not affect odl usernames.  We still detect if a user
already exists and if not create it with the desired password.

Change-Id: I64a23ad6fe68d1afb765f46c6b54f7291d25b47e
Signed-off-by: Tim Rozet <trozet@redhat.com>
lib/puppet/provider/odl_user/idm.rb

index 95a777553cfb2043fbd815e49d97349ff99e6977..7d6f8b02106e6881851c75810d5c821761080eac 100644 (file)
@@ -29,7 +29,7 @@ Puppet::Type.type(:odl_user).provide(:idm) do
   end
 
   def password
-    return false
+    return @resource[:password]
   end
 
   def password=(password)