Closed phuongnd08 closed 12 years ago
Thanks for the suggestion. This should be done automatically now. You no longer need to wrap RVM configuration in $rvm_installed
if blocks.
I'm getting error with that, that says: cannot find stage 'main' on line 3 in system.pp. I'm using puppet 2.7.1 and no noop
@shamil, try adding include rvm
before include rvm::system
in your manifest files, or upgrade to Puppet 2.7.10 or newer.
Thanks, that helped :) But it seems $rvm_installed == 'true' still required...
Unfortunately with --noop
, that is the case.
However, if you run without --noop
and without $rvm_installed=='true'
it will actually install everything in one pass.
I'm not running with noop, the agent runs it through puppet-master, I've added include rvm
before the include rvm:system
, it seems now that I'm not getting error, but if I remove $rvm_installed == 'true'
i get an error: Could not find a default provider for rvm_gem
Perhaps there is an issue with Puppet 2.7.1, as it works on 2.7.10. So either: run in two passes with $rvm_installed == 'true'
, upgrade to 2.7.10, or open a separate issue and I'll see what I can do.
I'll upgrade to newer Puppet, many thanks for your help!
Puppet 2.6 introduced run stages (See http://docs.puppetlabs.com/guides/language_guide.html#run-stages) Can it possibly used to make everything happen in one pass?