Closed ashwoods closed 13 years ago
it works without the import class and having all the files under manifests. there is a quirk on how import works with puppet solo i think
I'm finding the same issue. I had to include the following line in my base.pp:
import "/tmp/vagrant-puppet/modules-0/rvm/manifests/init.pp"
That opened another bunch of issues which are similar to #12
Please pull the latest changes to the puppet-rvm module and add import "rvm"
above include rvm::system
in your manifest file (lucid.pp, base.pp, etc.). Also, be sure the puppet-rvm module is cloned into a directory called rvm
, not puppet-rvm
.
Due to the way puppet works, you will have to run vagrant provision
twice. The first time puppet is run it installs rvm. The second time it is run, it installs any rubies and gems you have configured.
I have tested the latest commits with the lucid32 box and it appears to work. I'm closing this bug, put please comment/reopen if you are still experiencing problems.
@hunter, you should be able to remove the import "/tmp/vagrant-puppet/modules-0/rvm/manifests/init.pp"
line.
confirmed that it works with latest update. thx!
ashley@kyopel:~/work/novapost/rh2_env$ vagrant provision [default] Running provisioner: Vagrant::Provisioners::Puppet... [default] Running Puppet with rh2.pp... [default] stdin: is not a tty [default] info: Loading facts in rvm_installed [default] [default] warning: Could not retrieve fact fqdn [default] [default] notice: Scope(Class[main]): Operating autodiscovery: Ubuntu and running with DEBUG=True [default] [default] warning: Host is missing hostname and/or domain: lucid32 [default] [default] debug: importing '/tmp/vagrant-puppet/modules-0/base/manifests/init.pp' in environment production [default] [default] debug: Automatically imported base from base into production [default] [default] debug: Failed to load library 'shadow' for feature 'libshadow' [default] [default] debug: Failed to load library 'selinux' for feature 'selinux' [default] [default] debug: Failed to load library 'ldap' for feature 'ldap' [default] [default] debug: importing '/tmp/vagrant-puppet/modules-0/cloudcrowd/manifests/init.pp' in environment production [default] [default] debug: Automatically imported cloudcrowd from cloudcrowd into production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/wget/manifests/init.pp' in environment production [default] [default] debug: Automatically imported wget::fetch from wget/fetch into production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/init.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/dependencies-ubuntu.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/passenger.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/dependencies-centos.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/system.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/passenger-ubuntu-pre.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/passenger-centos-pre.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/dependencies.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/passenger-centos-post.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/passenger-ubuntu-post.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/classes/passenger-gem.pp' in environment production [default] [default] debug: importing '/tmp/vagrant-puppet/modules-2/rvm/manifests/definitions/system_user.pp' in environment production [default] [default] Could not find class rvm::system for lucid32 at /tmp/vagrant-puppet/modules-0/cloudcrowd/manifests/init.pp:45 on node lucid32