[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:20:55 UTC 2009


The following commit has been merged in the master branch:
commit 7ce902df27393821163b4200916baffb712f0d03
Author: James Turnbull <james at lovedthanlost.net>
Date:   Fri Sep 12 09:13:50 2008 +1000

    Adjusted hpuxuseradd user provider to confine to HP-UX and fixed HP-UX user provider path regression

diff --git a/CHANGELOG b/CHANGELOG
index 056e8f5..fd65d05 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,8 @@
 0.24.x
     Fixed debug messages in package type - thanks to Todd Zullinger for this fix
     
+    Adjusted hpuxuseradd user provider to confine to HP-UX
+
     Fixed #1566 - changed password property of the user type
 
     Fixed debug messages in package type
diff --git a/lib/puppet/provider/user/hpux.rb b/lib/puppet/provider/user/hpux.rb
index d50924c..672b77d 100644
--- a/lib/puppet/provider/user/hpux.rb
+++ b/lib/puppet/provider/user/hpux.rb
@@ -1,9 +1,10 @@
 Puppet::Type.type(:user).provide :hpuxuseradd, :parent => :useradd do
     desc "User management for hp-ux! Undocumented switch to special usermod because HP-UX regular usermod is TOO STUPID to change stuff while the user is logged in."
 
-    defaultfor :operatingsystem => :"hp-ux"
-
-    commands :modify => "/usr/sbin/usermod", :delete => "/usr/sbin/userdel", :add => "/usr/sbin/useradd"
+    defaultfor :operatingsystem => "hp-ux"
+    confine :operatingsystem => "hp-ux"
+    
+    commands :modify => "/usr/sam/lbin/usermod.sam", :delete => "/usr/sam/lbin/userdel.sam", :add => "/usr/sbin/useradd"
     options :comment, :method => :gecos
     options :groups, :flag => "-G"
     options :home, :flag => "-d", :method => :dir

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list