[vagrant-up] Is there an issue with assigning static IP address to custom boxes?

2016-09-22 Thread William Saxton
Not sure if this is a common issue, but I've easily set up a VM with static 
IP using the following:

Vagrantfile:

  *config.vm.define "swrmsca" do |swrmsca|*
*swrmsca.vm.box = "bento/centos-7.2"*
*swrmsca.vm.network "private_network", ip: "192.168.1.101"*
*swrmsca.vm.hostname = "swrmsca.local"*
*  end*

ifconfig output:

*[vagrant@swrmsca ~]$ ifconfig*
*...*
*enp0s8: flags=4163  mtu 1500*
*inet 192.168.1.101  netmask 255.255.255.0  broadcast 192.168.1.255*
*inet6 fe80::a00:27ff:fe2a:37c6  prefixlen 64  scopeid 0x20*

I went ahead and create this box, added some packages (puppet client), then 
repackaged it up as puppet_client.box.

*# vagrant package --output puppet_client.box*
*# vagrant box add puppet_client puppet_client.box*

When I try to bring up this VM, though, the static IP is never assigned:

Vagrantfile:

  *config.vm.define "swrmsca" do |swrmsca|*
*swrmsca.vm.box = "puppet_client"*
*swrmsca.ssh.insert_key = false*
*swrmsca.vm.network "private_network", ip: "192.168.1.101"*
*swrmsca.vm.hostname = "swrmsca.local"*
*  end*

ifconfig output:

*[vagrant@swrmsca ~]$ ifconfig*
*...*
*enp0s8: flags=4163  mtu 1500*
*inet6 fe80::a00:27ff:fe1a:209d  prefixlen 64  scopeid 0x20*


Did I do something wrong with the packaging?

-- 
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: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/775537ed-5237-4e00-95b9-05c802e0c21d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[vagrant-up] Why my ansible provisioner runs twice?

2016-09-22 Thread cannn
Hello All,

I have a question about my vagrant file: 
https://pastebin.mozilla.org/8912017

I simply created 3 different sections within my vagrant file to set up 3 
different servers with Ansible

Everything works properly but, for some reason, my ansible script runs 
twice during the server setup. This applies for all 3 servers that I have 
in that file.

Screenshot: http://i.imgur.com/tZJ5JLv.jpg

I haven't been able to figure out why this is happening. I am sure that my 
ansible playbooks doesn't have any condition to run it twice.

What am I missing here? 
Please help.

-- 
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: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/b4ae2e47-16cf-4b1b-a6dd-cc5ac36a27ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [vagrant-up] Why my ansible provisioner runs twice?

2016-09-22 Thread Alvaro Miranda Aguilera
hello

you have the ansible inside the virtuabox block

you may have pasted just before the end


On Thu, Sep 22, 2016 at 7:58 PM, cannn  wrote:

> Hello All,
>
> I have a question about my vagrant file: https://pastebin.mozilla.org/
> 8912017
>
> I simply created 3 different sections within my vagrant file to set up 3
> different servers with Ansible
>
> Everything works properly but, for some reason, my ansible script runs
> twice during the server setup. This applies for all 3 servers that I have
> in that file.
>
> Screenshot: http://i.imgur.com/tZJ5JLv.jpg
>
> I haven't been able to figure out why this is happening. I am sure that my
> ansible playbooks doesn't have any condition to run it twice.
>
> What am I missing here?
> Please help.
>
> --
> 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: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/vagrant-up/b4ae2e47-16cf-4b1b-a6dd-cc5ac36a27ca%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro
(+31)103400555

-- 
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: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewH9BaYDoe6s87qrY-vioQ9h1BQD-phfQ4OM4izDcuVPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [vagrant-up] Why my ansible provisioner runs twice?

2016-09-22 Thread cannn
You're gentleman and a scholar Alvaro.

Thank you very much! It solved the problem!

On Thursday, September 22, 2016 at 12:54:30 PM UTC-7, Alvaro Miranda 
Aguilera wrote:
>
> hello
>
> you have the ansible inside the virtuabox block
>
> you may have pasted just before the end
>
>
> On Thu, Sep 22, 2016 at 7:58 PM, cannn > 
> wrote:
>
>> Hello All,
>>
>> I have a question about my vagrant file: 
>> https://pastebin.mozilla.org/8912017
>>
>> I simply created 3 different sections within my vagrant file to set up 3 
>> different servers with Ansible
>>
>> Everything works properly but, for some reason, my ansible script runs 
>> twice during the server setup. This applies for all 3 servers that I have 
>> in that file.
>>
>> Screenshot: http://i.imgur.com/tZJ5JLv.jpg
>>
>> I haven't been able to figure out why this is happening. I am sure that 
>> my ansible playbooks doesn't have any condition to run it twice.
>>
>> What am I missing here? 
>> Please help.
>>
>> -- 
>> 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: https://github.com/mitchellh/vagrant/issues
>> IRC: #vagrant on Freenode
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to vagrant-up+...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/vagrant-up/b4ae2e47-16cf-4b1b-a6dd-cc5ac36a27ca%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Alvaro
> (+31)103400555
>

-- 
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: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/1bd59717-419b-4f5c-92f6-f0647be11425%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [vagrant-up] Why my ansible provisioner runs twice?

2016-09-22 Thread Alvaro Miranda Aguilera
Happy to help! :)

On Thu, Sep 22, 2016 at 10:57 PM, cannn  wrote:

> You're gentleman and a scholar Alvaro.
>
> Thank you very much! It solved the problem!
>
> On Thursday, September 22, 2016 at 12:54:30 PM UTC-7, Alvaro Miranda
> Aguilera wrote:
>>
>> hello
>>
>> you have the ansible inside the virtuabox block
>>
>> you may have pasted just before the end
>>
>>
>> On Thu, Sep 22, 2016 at 7:58 PM, cannn  wrote:
>>
>>> Hello All,
>>>
>>> I have a question about my vagrant file: https://pastebin.mozilla.org/8
>>> 912017
>>>
>>> I simply created 3 different sections within my vagrant file to set up 3
>>> different servers with Ansible
>>>
>>> Everything works properly but, for some reason, my ansible script runs
>>> twice during the server setup. This applies for all 3 servers that I have
>>> in that file.
>>>
>>> Screenshot: http://i.imgur.com/tZJ5JLv.jpg
>>>
>>> I haven't been able to figure out why this is happening. I am sure that
>>> my ansible playbooks doesn't have any condition to run it twice.
>>>
>>> What am I missing here?
>>> Please help.
>>>
>>> --
>>> 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: https://github.com/mitchellh/vagrant/issues
>>> IRC: #vagrant on Freenode
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Vagrant" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to vagrant-up+...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/vagrant-up/b4ae2e47-16cf-4b1b-a6dd-cc5ac36a27ca%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Alvaro
>> (+31)103400555
>>
> --
> 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: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/vagrant-up/1bd59717-419b-4f5c-92f6-f0647be11425%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro
(+31)103400555

-- 
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: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewAiyUL8WGWpv%2BrvQWMTMF8O7uL_t6gEsCk4AyhzGmxjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.