Commit c9549e26 authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

Update Vagrantfile

parent 362fc499
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vbguest.auto_update = true
# create Google Cloud Platform Management (mgmt) node
config.vm.define :terraform_mgmt do |terraform_mgmt_config| = "ubuntu/bionic64"
terraform_mgmt_config.vm.hostname = "terraform-mgmt" :private_network, ip: ""
terraform_mgmt_config.vm.synced_folder ".", "/home/vagrant/devops101", mount_options: ["dmode=775"]
terraform_mgmt_config.vm.provider "virtualbox" do |vb| = "terraform-mgmt"
opts = ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize opts
vb.memory = "1024"
terraform_mgmt_config.vm.provision :shell, path: ""
config.ssh.username = 'centos'
config.vm.allowed_synced_folder_types = [:rsync]
#config.ssh.private_key_path = "~/.ssh/"
#config.vm.synced_folder '.', '/vagrant', disabled: true, type: 'rsync'
config.vm.define "ohpc" do |ohpc| = ''
ohpc.vm.hostname = "ohpc"
ohpc.vm.provider :openstack do |ohpc|
ohpc.server_name = 'ohpc'
ohpc.floating_ip = ""
ohpc.image = 'CentOS-7-x86_64-GenericCloud-1905'
config.vm.define "ood" do |ood| = "centos/7"
# version placeholder for selecting specific vagrant boxes
# used mainly for debugging and sanity checking
# leave commented to use the latest version in the local cache
#ood.vm.box_version = "1804.02"
ood.vm.hostname = "ood" "private_network", ip: "", virtualbox__intnet: "compute" "forwarded_port", guest: 80, host: 8080,
auto_correct: true "forwarded_port", guest: 443, host: 8443,
auto_correct: true
# define user's key and insecure default
# insecure default is required for initial provisioning
#config.ssh.private_key_path = ["~/.ssh/id_rsa", "~/.vagrant.d/insecure_private_key"]
# append user's key to vagrant config to avoid overwrite of existing authorized_keys
#config.vm.provision "ssh_pub_key", type: "shell" do |s|
# ssh_pub_key = File.readlines("#{Dir.home}/.ssh/").first.strip
# s.inline = <<-SHELL
# echo #{ssh_pub_key} >> /home/centos/.ssh/authorized_keys
config.vm.provision "shell", inline: <<-SHELL
if [ -f /vagrant/ ]; then
. /vagrant/
hostnamectl set-hostname ohpc
yum install -y epel-release
yum install -y ansible git vim bash-completion
yum install -y NetworkManager
systemctl restart NetworkManager
nmcli con mod "Wired connection 1" "eth1"
ansible-playbook -c local -i /vagrant/CRI_XCBC/hosts -l `hostname` /vagrant/CRI_XCBC/site.yaml -b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment