Skip to content

Commit

Permalink
Added IPv4 addr to VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
solimand committed Mar 4, 2022
1 parent 9af7bf0 commit 2e72617
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Overview
This repository contains Vagrant-Ansible code to:
- create two centos virtual machines
- install docker inside them
- ...

# Requirements
- **pyvmomi** via ```pip install```
- [**Vagrant**](https://www.vagrantup.com/)
Expand All @@ -6,6 +12,7 @@
- vagrant
- libvirt
- virtualbox
- Current IPv4 addresses of the VMs: 192.168.56.11/12 - Do not choose an IP that overlaps with any other IP space on your system. This can cause the network to not be reachable.

# Environment
- OS: _Arch Linux_
Expand Down
2 changes: 2 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Vagrant.configure("2") do |config|
ansible.playbook = 'local.yml'
end
centos1.vm.synced_folder ".", "/vagrant"
centos1.vm.network "private_network", ip: "192.168.56.11"
end

config.vm.define "centos_local_2" do |centos2|
Expand All @@ -18,6 +19,7 @@ Vagrant.configure("2") do |config|
ansible.playbook = 'local.yml'
end
centos2.vm.synced_folder ".", "/vagrant"
centos2.vm.network "private_network", ip: "192.168.56.12"
end

# TODO testing...
Expand Down

0 comments on commit 2e72617

Please sign in to comment.