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

issue-258 - Create a single machine Vagrantfile #369

Merged
merged 1 commit into from
Jul 13, 2015

Conversation

ravbaba
Copy link
Contributor

@ravbaba ravbaba commented Jul 7, 2015

Created a single machine Vagrantfile

@@ -5,8 +5,8 @@ consul_advertise: "{{ ansible_eth1.ipv4.address }}"
consul_bind_addr: "{{ ansible_eth1.ipv4.address }}"
marathon_hostname: "{{ ansible_eth1.ipv4.address }}"
mesos_hostname: "{{ ansible_eth1.ipv4.address }}"
mesos_master_quorum: 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (mesos_master_quorum and consul_bootstrap_expect) could probably be removed from here now as we are passing it explicitly.

@enxebre
Copy link
Contributor

enxebre commented Jul 8, 2015

We probably want to add how to use the standalone version in the Vagrant Docs.
Otherwise lgtm

I'd be in favour of making a one dynamic Vagrantfile supporting any number of masters/slaves including the standalone so we DRY. Then the yaml file with the settings could be set as an environment var. e.g vagrant_cluster=vagrant-standalone.yaml

@tayzlor
Copy link
Member

tayzlor commented Jul 9, 2015

The work here looks mostly fine, needs rebased and a couple of comments addressing.
Some docs would be nice too + the ability to launch it via a bootstrap script (similar the multi-vm one would be good).

@ravbaba
Copy link
Contributor Author

ravbaba commented Jul 9, 2015

I will try put the logic to one Vagrantfile as enxebre suggested and clean the code, I will update the documentation as well. Tayzlor I am gonna use the same script which we use now (apollo-launch.sh) everything what we need to do is to set an environment var which switch vagrant configuration between two files (vagrant.yml/vagrant-standalone.yml).

Thank you for your answers.


node = conf['masters']

mesos_zk_url = "zk://"+node['ip']+":2181/mesos"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you line all the = up so its a bit more readable here (same below)

@tayzlor
Copy link
Member

tayzlor commented Jul 12, 2015

PR looks ready to merge, but looks like it needs rebased due to some conflict first. If you do that, we can merge it

@ravbaba
Copy link
Contributor Author

ravbaba commented Jul 12, 2015

I've just fixed the conflict. Tayzlor, could you merge it.

tayzlor added a commit that referenced this pull request Jul 13, 2015
issue-258 - Create a single machine Vagrantfile
@tayzlor tayzlor merged commit 1d91977 into Capgemini:master Jul 13, 2015
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

Successfully merging this pull request may close these issues.

4 participants