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

Error when running vagrant up --provider virtualbox #1

Open
pgporada opened this issue Aug 4, 2015 · 1 comment
Open

Error when running vagrant up --provider virtualbox #1

pgporada opened this issue Aug 4, 2015 · 1 comment

Comments

@pgporada
Copy link

pgporada commented Aug 4, 2015

OS

Ubuntu 14.04

Vagrant version

Installed Version: 1.7.4
Latest Version: 1.7.4

Here is what happens when I start the vagrants up

==> swarm-1: ----> Installing puppet
==> swarm-1: Successfully installed facter-2.4.4
==> swarm-1: Successfully installed json_pure-1.8.2
==> swarm-1: Successfully installed puppet-3.7.5
==> swarm-1: 3 gems installed
==> swarm-1: Successfully installed facter-2.4.4
==> swarm-1: 1 gem installed
==> swarm-1: Running provisioner: hosts...
==> swarm-1: Running provisioner: puppet...
==> swarm-1: Running Puppet with base.pp...
==> swarm-1: stdin: is not a tty
==> swarm-1: Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
==> swarm-1:    (at /var/lib/gems/2.0.0/gems/puppet-3.7.5/lib/puppet/settings.rb:1139:in `issue_deprecation_warning')
==> swarm-1: Debug: Runtime environment: puppet_version=3.7.5, ruby_version=2.0.0, run_mode=user, default_encoding=UTF-8
==> swarm-1: ldapname is deprecated and will be removed in a future version
==> swarm-1: Debug: Loading external facts from /var/lib/puppet/facts.d
==> swarm-1: Error loading fact /usr/lib/ruby/vendor_ruby/facter/macosx.rb: cannot load such file -- cfpropertylist
==> swarm-1: Facter::Util::EC2.has_euca_mac? is deprecated; see the Facter::EC2 classes instead
==> swarm-1: Facter::Util::EC2.has_openstack_mac? is deprecated; see the Facter::EC2 classes instead
==> swarm-1: Facter::Util::EC2.has_ec2_arp? is deprecated; see the Facter::EC2 classes instead
==> swarm-1: Debug: hiera(): Hiera YAML backend starting
==> swarm-1: Debug: hiera(): Looking up classes in YAML backend
==> swarm-1: Debug: hiera(): Looking for data source swarm-1
==> swarm-1: Debug: hiera(): Looking for data source common
==> swarm-1: Debug: hiera(): Found classes in common
==> swarm-1: Error: Could not find class apt for swarm-1.danlawinc.com on node swarm-1.danlawinc.com
==> swarm-1: Error: Could not find class apt for swarm-1.danlawinc.com on node swarm-1.danlawinc.com
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Additionally, I needed to install the a vagrant plugin to prevent the following error

vagrant plugin install vagrant-hosts
11:49 AM:phil@PhilsLaptop (master) ~/vagrantworkshop/puppet-docker-swarm-example$ vagrant up --provider virtualbox                                                  
Bringing machine 'swarm-1' up with 'virtualbox' provider...
Bringing machine 'swarm-2' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The 'hosts' provisioner could not be found.

puppet provisioner:
* The configured module path doesn't exist: /home/phil/vagrantworkshop/puppet-docker-swarm-example/modules
* The configured module path doesn't exist: /home/phil/vagrantworkshop/puppet-docker-swarm-example/vendor/modules
@stwomack
Copy link

vagrant plugin install vagrant-hosts

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

2 participants