Merge pull request #116 from rvm/default-non-root-user

Default non root user
This commit is contained in:
Piotr Kuczynski
2016-11-11 21:41:06 +01:00
committed by GitHub
3 changed files with 12 additions and 12 deletions

View File

@@ -27,16 +27,16 @@ script:
|| (echo 'Idempotence test: fail' && exit 1)
- >
~/.rvm/wrappers/default/ruby -v
| grep -q '2.1.2'
| grep -q '2.3.1'
&& (echo 'Default ruby test: pass' && exit 0)
|| (echo 'Default ruby test: fail' && exit 1)
- >
ls ~/.rvm/rubies
| grep -q 'ruby-2.1.0'
| grep -q 'ruby-2.2.5'
&& (echo 'Multiple rubies test: pass' && exit 0)
|| (echo 'Multiple rubies test: fail' && exit 1)
- >
ansible-playbook $SITE_AND_INVENTORY --connection=local --extra-vars='rvm1_delete_ruby=ruby-2.1.0'
ansible-playbook $SITE_AND_INVENTORY --connection=local --extra-vars='rvm1_delete_ruby=ruby-2.2.5'
| grep -q 'ok=1.*failed=0'
&& (echo 'Delete ruby test: pass' && exit 0)
|| (echo 'Delete ruby test: fail' && exit 1)

View File

@@ -11,19 +11,19 @@ rvm1_bundler_install: True
# Delete a specific version of ruby (ie. ruby-2.1.0)
rvm1_delete_ruby:
# Install path for rvm (defaults to system wide)
rvm1_install_path: '/usr/local/rvm'
# Install path for rvm (defaults to user based install)
rvm1_install_path: '~/.rvm'
# Add or remove any install flags
# NOTE: If you are doing a USER BASED INSTALL then
# make sure you ADD the --user-install flag below
rvm1_install_flags: '--auto-dotfiles'
# NOTE: If you are doing a ROOT BASED INSTALL then
# make sure you REMOVE the --user-install flag below
rvm1_install_flags: '--auto-dotfiles --user-install'
# Add additional ruby install flags
rvm1_ruby_install_flags:
# Set the owner for the rvm directory
rvm1_user: 'root'
rvm1_user: 'ubuntu'
# URL for the latest installer script
rvm1_rvm_latest_installer: 'https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer'

View File

@@ -5,10 +5,10 @@
vars:
rvm1_rubies:
- 'ruby-2.1.0'
- 'ruby-2.1.2'
- 'ruby-2.2.5'
- 'ruby-2.3.1'
rvm1_install_path: '/home/travis/.rvm'
rvm1_install_flags: '--auto-dotfiles --user-install'
rvm1_user: travis
roles:
- rvm1-ansible