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

vagrant: add vagrant-aws plugin #144799

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

risicle
Copy link
Contributor

@risicle risicle commented Nov 5, 2021

Motivation for this change

Got frustrated trying to get the vagrant-aws plugin working the "normal" way and so created a package for it. Generating the gemset_aws.nix for it was ugly, let's not go into it. Tried to essentially follow the pattern of the libvirt plugin. I realize this isn't the most extensible pattern, but it does the job for now.

Unfortunately the dependencies of vagrant-aws conflict with those of vagrant-libvirt so I've disabled it by default and added an assertion to alert anyone trying to enable both together. I realize this isn't great, but it solves the problem for me.

Package was requested in #121161.

Edit(@tomodachi94): Fixes #121161.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@risicle risicle marked this pull request as ready for review November 5, 2021 22:18
@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 19, 2022
Comment on lines -91 to +99
substitute ${./vagrant-libvirt.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \
substitute ${./vagrant-plugin.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \
--subst-var-by pname libvirt \
--subst-var-by ruby_version ${ruby.version} \
--subst-var-by vagrant_version ${version}
'' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you create a small helper. I consider adding vagrant-sshfs and reuse that code.

Comment on lines +5 to +6
# dependencies of these two plugins conflict
assert !(withLibvirt && withAws);
Copy link
Contributor

Choose a reason for hiding this comment

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

It is still the case in 2024 and what command did you use to generate the gemset ? Also use throwIf instead of assert

@stale stale bot removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Jan 31, 2024
@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict labels Mar 19, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 29, 2024
@tomodachi94 tomodachi94 added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vagrant-aws plugin for vagrant
4 participants