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

Use Vagrant to set the VM hostname #248

Closed
wants to merge 1 commit into from

Conversation

@aneeshusa
Copy link
Member

aneeshusa commented Mar 14, 2016

This has the benefit that Salt will automatically pick up on the
hostname and use it as the minion id, removing the need to manually
pass the minion ID in the Vagrantfile and when debugging inside the VM.

This is blocked on hashicorp/vagrant#7137 landing
and getting released in a new Vagrant version.

Reminder to self: update the wiki when this lands.


This change is Review on Reviewable

@edunham
Copy link
Contributor

edunham commented Mar 24, 2016

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

@bors-servo
Copy link
Contributor

bors-servo commented Jul 12, 2016

The latest upstream changes (presumably #394) made this pull request unmergeable. Please resolve the merge conflicts.

This has the benefit that Salt will automatically pick up on the
hostname and use it as the minion id, removing the need to manually
pass the minion ID in the Vagrantfile and when debugging inside the VM.
@aneeshusa aneeshusa force-pushed the aneeshusa:set-vagrant-hostname branch from 01e8aa0 to b4e43a0 Aug 9, 2016
@aneeshusa
Copy link
Member Author

aneeshusa commented Aug 9, 2016

Vagrant 1.8.5 will pass --retcode-passthrough to Salt, even in masterless mode. r? @edunham

@bors-servo
Copy link
Contributor

bors-servo commented Aug 17, 2016

The latest upstream changes (presumably #350) made this pull request unmergeable. Please resolve the merge conflicts.

@aneeshusa
Copy link
Member Author

aneeshusa commented Aug 19, 2016

I need to make another vagrant PR to add file_root and pillar_root options for the Salt provisioner, now that we're using those after #350, so this is blocked again.

jarondl added a commit to jarondl/saltfs that referenced this pull request Sep 27, 2016
The hacky `minion_id` method to pass `file-root` and `pillar-root` to
`salt-call` does not work since Vagrant 1.8.3.

If Vagrant accepts hashicorp/vagrant#7836 , this PR will use the new
argument. It also sets the hostname using the appropriate option,
superseeding servo#248.

DO NOT MERGE until Vagrant accepts the PR, and releases a new version.
@aneeshusa
Copy link
Member Author

aneeshusa commented Sep 8, 2017

Happily, this is no longer blocked as the Vagrant upstream feature this depended on has been merged and released as part of Vagrant 2.0: https://github.com/mitchellh/vagrant/blob/a124f6635844848f4369e620e1607701d22ddcb9/CHANGELOG.md.

I will try to update this PR soon.

@jdm jdm closed this Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.