Installing a puppet module from a manifest script

I ran into this problem as well. The trick is to download the modules using a vagrant shell command before the puppet provisioner runs. config.vm.provision :shell do |shell| shell.inline = “mkdir -p /etc/puppet/modules; puppet module install puppetlabs/nodejs; puppet module install puppetlabs/apache” end config.vm.provision :puppet do |puppet| puppet.manifests_path = “puppet/manifests” puppet.manifest_file = “site.pp” end Order is … Read more

How to enable internet access inside Vagrant?

If you are using Vagrant + VirtualBox + Ubuntu, you might want to add the following block to your VagrantFile: config.vm.provider “virtualbox” do |v| v.customize [“modifyvm”, :id, “–natdnshostresolver1”, “on”] v.customize [“modifyvm”, :id, “–natdnsproxy1”, “on”] end If you are using ubuntu, and you think your firewall is on, here’s how you turn off the firewall: sudo … Read more

The IP address configured for the host-only network is not within the allowed ranges

I found the “issue” started to happen after VirtualBox 6.1.26. The way to solve is creating a new file at /etc/vbox/networks.conf on your macOS with content * 10.0.0.0/8 192.168.0.0/16 * 2001::/64 Make sure including the asterisks *. Then the issue should be gone. Regarding the networks.conf content, it can be found at https://www.virtualbox.org/manual/ch06.html#network_hostonly

Vagrant execute script or command after every guest restart (vagrant up)

you can use run: ‘always’ config.vm.provision :shell, path: “vagrant/bootstrap.sh”, run: ‘always’ This will make sure your command are executed every time your VM is starting (vagrant up or vagrant reload) If you need only certain commands to be always run, you can split your script config.vm.provision :shell, path: “vagrant/bootstrap1.sh” config.vm.provision :shell, path: “vagrant/bootstrap2.sh”, run: ‘always’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)