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

Support vmware_desktop Vagrant provider #33

Closed
ideologysec opened this issue Jan 7, 2020 · 0 comments
Closed

Support vmware_desktop Vagrant provider #33

ideologysec opened this issue Jan 7, 2020 · 0 comments
Assignees
Labels
deployment Deployment related issues ✨ enhancement New feature or request

Comments

@ideologysec
Copy link

Pretty easy, just need to switch the base box and change the provider configs a little bit.

# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

IP_ADDRESS = "10.10.10.5"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "hashicorp/bionic64"
  config.vm.network "private_network", ip: IP_ADDRESS
  # If we want to enroll nodes in the same network
  #config.vm.network "forwarded_port", guest: 443, host: 443
  config.vm.hostname = "osctrl-dev"
  config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
  config.vm.provision "shell" do |s|
    s.path = "deploy/provision.sh"
    s.args = [
      "--nginx", "--postgres", "-E", "--metrics", "--all-hostname",
      IP_ADDRESS, "--password", "admin"
    ]
    privileged = false
  end
  ["vmware_desktop", "virtualbox", "hyperv"].each do |provider|
    config.vm.provider provider do |v, override|
      v.memory = "1024"
      v.cpus = 1
    end
    config.vm.provider "virtualbox" do |v|
      v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    end
    config.vm.provider :vmware_desktop do |vmware|
      vmware.vmx["ethernet0.pcislotnumber"] = "32"
    end
  end
end
@javuto javuto added the ✨ enhancement New feature or request label Jan 14, 2020
@javuto javuto added this to the v0.2.4 milestone Jul 13, 2020
@javuto javuto added the deployment Deployment related issues label Jul 13, 2020
@javuto javuto self-assigned this Jul 13, 2020
@javuto javuto removed this from the v0.2.4 milestone Nov 14, 2020
@javuto javuto closed this as completed Dec 26, 2021
CptOfEvilMinions added a commit that referenced this issue Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Deployment related issues ✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants