diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-12-10 03:12:25 -0600 |
---|---|---|
committer | kaustubh-d <kaustubh@clogeny.com> | 2014-07-31 11:13:48 +0530 |
commit | 530596e0f7359ee7649a1ae2752958835c3c0920 (patch) | |
tree | f2e8ba853922ac59f40e1ce6005ce4d13cc318a2 /lib/chef/provider/user/aix.rb | |
parent | 8141b11d25b61c17588cb01691bc3044b782a7e6 (diff) | |
download | chef-530596e0f7359ee7649a1ae2752958835c3c0920.tar.gz |
aix: useradd doesnt support -r like other unix, so sytem account is created by adding to "system" group.
Diffstat (limited to 'lib/chef/provider/user/aix.rb')
-rw-r--r-- | lib/chef/provider/user/aix.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/provider/user/aix.rb b/lib/chef/provider/user/aix.rb index feaa8f8e01..46917ab0de 100644 --- a/lib/chef/provider/user/aix.rb +++ b/lib/chef/provider/user/aix.rb @@ -31,6 +31,13 @@ class Chef super end + # Aix does not support -r like other unix, sytem account is created by adding to 'system' group + def useradd_options + opts = [] + opts << "-g" << "system" if new_resource.system + opts + end + private def add_password if @current_resource.password != @new_resource.password && @new_resource.password |