cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:iac:itaname:index.html



Middleware

Itamae


Example

execute 'apt-get update'

%w(libffi-dev libreadline6-dev libssl-dev make zlib1g-dev).each do |pkg|
  package pkg
end

http_request 'ruby' do
  path "/usr/local/src/ruby-2.3.0.tar.gz"
  url "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz"
  not_if "test -e /usr/local/src/ruby-2.3.0.tar.gz"
end

execute "tar xf ruby-2.3.0.tar.gz" do
  cwd '/usr/local/src'
  only_if "test -e /usr/local/src/ruby-2.3.0.tar.gz"
  not_if "test -e /usr/local/src/ruby-2.3.0"
end

execute './configure && make && make install' do
  cwd "/usr/local/src/ruby-2.3.0"
end



middleware/iac/itaname/index.html.txt ยท Last modified: 2017/05/07 by admin

Page Tools