Created
March 23, 2015 18:46
-
-
Save trekr5/d4cd96a032a819dc93e3 to your computer and use it in GitHub Desktop.
restriction of access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def svc_create_user(user,shadow_password) | |
user user do | |
supports :manage_home => true | |
comment "chef created service user: #{user}" | |
home "/home/#{user}" | |
shell 'usr/sbin/nologin' | |
action :create | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment