Page MenuHomePhabricator

vagrant roles enable monobook --provision: Could not find a directory environment named 'vagrant' anywhere in the path
Closed, ResolvedPublic

Description

MediaWiki-Vagrant
Virtualbox: 5.2.18
Vagrant: 2.2.0
Host OS: Ubuntu 16.04

The error below occurs when running vagrant roles enable monobook --provision

~/vagrant$ vagrant roles enable monobook --provision
==> default: Running provisioner: lsb_check...
==> default: Running provisioner: file_perms...
==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20181019-16371-1vkcm4z.sh
==> default: Running provisioner: puppet...
==> default: Running Puppet with environment vagrant...
==> default: /usr/lib/ruby/vendor_ruby/puppet/environments.rb:38:in `get!': Could not find a directory environment named 'vagrant' anywhere in the path: /vagrant/puppet/environments. Does the directory exist? (Puppet::Environments::EnvironmentNotFound)
==> default: 	from /usr/lib/ruby/vendor_ruby/puppet/application_support.rb:29:in `push_application_context'
==> default: 	from /usr/lib/ruby/vendor_ruby/puppet/application.rb:337:in `run'
==> default: 	from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
==> default: 	from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
==> default: 	from /usr/bin/puppet:5:in `<main>'
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.

monobook provision error.png (768×2 px, 584 KB)

Event Timeline

Priyajha22 claimed this task.

Hi , Everyone

For T207491 , It is working as expected now, After I added path of vagrant inside puppet manifest file.
Thanks@Aklapper for giving hint of T193153, it was really helpful.