Created
January 9, 2012 21:57
-
-
Save gerhard/1585177 to your computer and use it in GitHub Desktop.
Extending chef providers
This file contains 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
include Chef::Provider::SystemUser | |
action :create do | |
# super ? | |
# rvm specific work... | |
end |
This file contains 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
include Chef::Resource::SystemUser | |
# nothing is different from system/resources/user.rb |
This file contains 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
action :create do | |
# work | |
end |
This file contains 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
actions :create#, others... | |
attribute :name, :kind_of => String | |
attribute :password, :kind_of => String, :default => '' | |
def initialize(*args) | |
super | |
@action = :create | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting this when running chef-solo: