From 5e5b745bc57a81e9b199961f264cfc5fb9c128d8 Mon Sep 17 00:00:00 2001 From: Julien Pellet Date: Sat, 1 Feb 2014 21:31:00 +0100 Subject: [PATCH] switch to system wide install --- environments/vagrant-rails.json | 25 +++++++++---------------- roles/ruby.json | 4 ++-- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/environments/vagrant-rails.json b/environments/vagrant-rails.json index 42cbdd1..9929ea0 100644 --- a/environments/vagrant-rails.json +++ b/environments/vagrant-rails.json @@ -6,23 +6,16 @@ "chef_type": "environment", "default_attributes": {}, "override_attributes": { + "ruby_build":{ + "upgrade":"sync" + }, "rbenv": { - "user_installs": [ - { - "user": "vagrant", - "rubies": [ - "2.1.0" - ], - "global": "2.1.0", - "gems": { - "2.1.0": [ - { - "name": "bundler" - } - ] - } - } - ] + "rubies":["2.1.0"], + "gems":{ + "2.1.0":[ + {"name":"bundler"} + ] + } } } } diff --git a/roles/ruby.json b/roles/ruby.json index 7ac7bb2..c2b599e 100644 --- a/roles/ruby.json +++ b/roles/ruby.json @@ -4,8 +4,8 @@ "description": "Ruby with rbenv", "run_list": [ "recipe[ruby_build]", - "recipe[rbenv::user_install]", - "recipe[rbenv::user]", + "recipe[rbenv::system_install]", + "recipe[rbenv::system]", "recipe[rbenv]" ], "default_attributes": {},