Skip to content

Instantly share code, notes, and snippets.

@thr3a
Last active June 13, 2016 10:16
Show Gist options
  • Save thr3a/13803d3a30d1c677ed2325e78d4b5fda to your computer and use it in GitHub Desktop.
Save thr3a/13803d3a30d1c677ed2325e78d4b5fda to your computer and use it in GitHub Desktop.

vagrant編

vagrantのディレクトリに bundle init

以下を追加

gem 'itamae'
gem 'itamae-plugin-recipe-rtn_rbenv'

適当に test.rb

tahara:vagrant tahara$ cat 
execute 'apt-get update' do
  command 'apt-get update -y'
end

package "build-essential" do
  action :install
end

include_recipe 'rtn_rbenv::user'
include_recipe 'rtn_rbenv::system'
tahara:vagrant tahara$ 

node.json

{
  "rtn_rbenv": {
    "user": "vagrant",
    "versions": {
      "2.3.0": [
        {
          "name": "bundler",
          "force": true
        }
      ]
    },
    "global": "2.3.0"
  }
bundle exec itamae ssh --vagrant test.rb -j node.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment