Created
June 26, 2015 18:11
-
-
Save Sauraus/5bbb5952aad2682ba7fc to your computer and use it in GitHub Desktop.
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
| # Support whyrun | |
| def whyrun_supported? | |
| true | |
| end | |
| action :create do | |
| if @current_resource.exists | |
| Chef::Log.info "#{ @current_resource } already exists - nothing to do." | |
| else | |
| converge_by("Create #{ @current_resource }") do | |
| create_user | |
| end | |
| end | |
| end | |
| def create_user | |
| user current_resource.name do | |
| comment current_resource.comment | |
| supports manage_home: true | |
| ignore_failure true | |
| end | |
| .... |
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
| my_lwrp 'eng' do | |
| comment user[:comment] | |
| ssh_keys user[:ssh_keys] | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment