Created
February 20, 2015 21:57
-
-
Save scarolan/180fabedabab763ff299 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
package "emacs" do | |
action :install | |
end | |
package "emacs" do | |
action :remove | |
end | |
# example for installing multiple packages | |
#%w(emacs telnet httpd vim-enhanced).each do |p| | |
# You will want to store the package list in the default attributes file | |
# This line goes in attributes/default.rb | |
# default['base']['packages'] = %w(emacs telnet httpd vim-enhanced) | |
# then you can simply access it from the node object | |
node['base']['mypackages'].each do |p| | |
package p do | |
action :install | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment