miccheng / vagrant-lamp-centos63

Vagrant setup for CentOS 6.3 LAMP stack (Linux, Apache, MySQL and PHP).
38 stars 23 forks source link

Error Yum Mac #2

Open giuseppelopes opened 11 years ago

giuseppelopes commented 11 years ago

When i try vagrant up on my mac show this error:

MacBook-Pro-de-Giuseppe:phpdev giuseppelopes$ vagrant halt [default] Attempting graceful shutdown of VM... MacBook-Pro-de-Giuseppe:phpdev giuseppelopes$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] -- 80 => 8080 (adapter 1) [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! [default] Setting hostname... [default] Configuring and enabling network interfaces... [default] Mounting shared folders... [default] -- /vagrant [default] -- /projects [default] -- /tmp/vagrant-puppet/manifests [default] -- /tmp/vagrant-puppet/modules-0 [default] Running provisioner: puppet... Running Puppet with init.pp... Error: Could not find class yum for phpdev.local on node phpdev.local Error: Could not find class yum for phpdev.local on node phpdev.local The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' --detailed-exitcodes /tmp/vagrant-puppet/manifests/init.pp || [ $? -eq 2 ]

harhoo commented 11 years ago

Same

miccheng commented 11 years ago

Which version of Vagrant are you running? Have you upgraded to the latest?

miccheng commented 11 years ago

So apparently the newer version of Vagrant (or Puppet) doesn't let me import manifests files from the same manifests folder. Some configuration changes. So as a temporary measure, i have combined all the external puppet files into 1 file.

Let me know if this fixes the problem. Do close this ticket if its fixed.

harhoo commented 11 years ago

Huzzah. It works (or at least I can get up phpinfo() - not tried much more than that). There were a few error messages - not sure whether any of these have any relevance:

.... Running Puppet with init.pp... Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults .... Error: Command exceeded timeout Error: /Stage[main]/Phpdevweb/Exec[yum-update]/returns: change from notrun to 0 failed: Command exceeded timeout ..... Then at the end:

The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' --detailed-exitcodes /tmp/vagrant-puppet/manifests/init.pp || [ $? -eq 2 ]

miccheng commented 11 years ago

Ok... Planning to refactor everything soon.