Re: [vagrant-up] Error attempting to add additional disk

2017-08-15 Thread rhys.james.campbell via Vagrant
Thanks. It was copied and pasted from somewhere so something got mangled. Had to make a few additional changes to get it working with my box. Settled on this; device=0 [ "data", "log" ].each do |volume| # MariaDB volumes

[vagrant-up] Error attempting to add additional disk

2017-08-14 Thread rhys.james.campbell via Vagrant
Hello All, I've been trying to figure out how to add a second disk to my Vagrant hosts. I receive the following error on vagrant up; There was an error loading a Vagrantfile. The file being loaded > and the error message are shown below. This is usually caused by > a syntax error. > Path: >

[vagrant-up] Problem with Vagrantfile launching machines

2017-07-15 Thread rhys.james.campbell via Vagrant
Hello. I'm working with Vagrant for the first time trying to create a bunch of VM's for a MongoDB cluster. I've stumbled quite quickly. After executing "vagrant up" I receive the following error... /Users/rhys1/Documents/vagrant/mongo/Vagrantfile:22:in `block (2 levels) in > ': undefined

Re: [vagrant-up] Problem with Vagrantfile launching machines

2017-07-16 Thread rhys.james.campbell via Vagrant
great. Thanks. -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues:

[vagrant-up] Using a custom version of Ansible with Vagrant

2018-02-14 Thread rhys.james.campbell via Vagrant
Hello, Is there a way to instruct Vagrant to use a custom version of Ansible. I've forked the Ansible code and want to test a couple of modules without affecting my installed instance. Rhys -- This mailing list is governed under the HashiCorp Community Guidelines -

[vagrant-up] Re: Using a custom version of Ansible with Vagrant

2018-02-14 Thread rhys.james.campbell via Vagrant
Answer my own question here.. http://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#playbook-module-testing Performed via python venv. -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html.

Re: [vagrant-up] Incrementing a port number for forwarding

2018-11-23 Thread rhys.james.campbell via Vagrant
My full Vagrant file is as below. I've since "fixed" this by removing the increment and adding auto_correct: true to the port mapping. That works but I don;t see what I'm doing wrong the old way. Cheers, Rhys Vagrant.configure("2") do |config| nagios_forward_port= nrpe_hosts = [

Re: [vagrant-up] Incrementing a port number for forwarding

2018-11-26 Thread rhys.james.campbell via Vagrant
There are two Nagios servers. The first one should be allocated the port in the forwarding. The second one should get 8889 because I increment it right after the first one. So I basically want the port assigned as follows... testnagios01 - testnagios02 - 8889 This does not happen

Re: [vagrant-up] Incrementing a port number for forwarding

2018-11-26 Thread rhys.james.campbell via Vagrant
OK. This is strange. This... if host.eql?("testnagios01") config.vm.network "forwarded_port", guest: 80, host: end if host.eql?("testnagios02") config.vm.network "forwarded_port", guest: 80, host: 8889 end ==> testnagios01: Checking for

[vagrant-up] Incrementing a port number for forwarding

2018-11-22 Thread rhys.james.campbell via Vagrant
Hello All, I am trying to forward a port to a couple of servers in a Vagrant file but the variable is not being incremented for some reason... All I'm doing is this... if host.start_with?("testnagios") config.vm.network "forwarded_port", guest: 80, host: nagios_forward_port