summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/user/hpux.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/user/hpux.rb')
-rw-r--r--lib/puppet/provider/user/hpux.rb40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/puppet/provider/user/hpux.rb b/lib/puppet/provider/user/hpux.rb
index db8dd194e..50506c4cd 100644
--- a/lib/puppet/provider/user/hpux.rb
+++ b/lib/puppet/provider/user/hpux.rb
@@ -1,30 +1,30 @@
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."
+ 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"
- confine :operatingsystem => "hp-ux"
+ 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
+ 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
- verify :gid, "GID must be an integer" do |value|
- value.is_a? Integer
- end
+ verify :gid, "GID must be an integer" do |value|
+ value.is_a? Integer
+ end
- verify :groups, "Groups must be comma-separated" do |value|
- value !~ /\s/
- end
+ verify :groups, "Groups must be comma-separated" do |value|
+ value !~ /\s/
+ end
- has_features :manages_homedir, :allows_duplicates
+ has_features :manages_homedir, :allows_duplicates
- def deletecmd
- super.insert(1,"-F")
- end
+ def deletecmd
+ super.insert(1,"-F")
+ end
- def modifycmd(param,value)
- super.insert(1,"-F")
- end
+ def modifycmd(param,value)
+ super.insert(1,"-F")
+ end
end