Created
September 5, 2014 22:31
-
-
Save vinyar/21eefd687e4a308b3034 to your computer and use it in GitHub Desktop.
attribute structure that I like
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
attributes: | |
default['winsecureos']['services']['foo'] = { | |
:action => [ :stop, :disable ], | |
:name => 'ALG', | |
:description => 'Application Layer Gateway Service'} | |
default['winsecureos']['services']['foo1'] = { | |
:action => [ :stop, :manual ], | |
:name => 'AppMgmt', | |
:description => 'Application Management'} | |
Recipe: | |
node['winsecureos']['services'].each do |key, value| | |
ge_win_services value.description do | |
name value.name | |
description value.description | |
action value.action | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment