Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must Run apt-get update Before RVM Will Install #101

Open
jonahbron opened this issue Oct 17, 2013 · 2 comments
Open

Must Run apt-get update Before RVM Will Install #101

jonahbron opened this issue Oct 17, 2013 · 2 comments

Comments

@jonahbron
Copy link

When booting a new system, RVM will not successfully install on the first try. First you must SSH into the box and run sudo apt-get update, then re-run vagrant provision for it to work. Is there a way around this? I tried adding a require to the command, but that had no effect at all. It even shows its acknowledgement of that requirement up in the debug output, but it does not actually run it.

@naps62
Copy link

naps62 commented Oct 29, 2013

i'm also seeing this issue

@andl
Copy link

andl commented Oct 30, 2013

since rvm_install is executed brefore main stage https://github.com/blt04/puppet-rvm/blob/master/manifests/init.pp#L2

My workaround is run apt-get update before main stage as well:

stage {'preinstall':
  before => Stage['main']
}
class apt_get_update {
  exec {'apt-get update':
    command => '/usr/bin/apt-get -yq update'
  }
}
class { 'apt_get_update':
  stage => preinstall
}
class {'rvm': }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants