Skip to content

Commit

Permalink
infra
Browse files Browse the repository at this point in the history
Signed-off-by: Bas Meijer <[email protected]>
  • Loading branch information
bbaassssiiee committed Dec 4, 2024
1 parent 05734d9 commit 6d4b66e
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $Stage = ENV['STAGE'] || "dev"
# Require JSON module
require 'json'
# Read JSON file with config details
guests = JSON.parse(File.read(File.join(File.dirname(__FILE__), "inventory", $Stage + ".json")))
guests = JSON.parse(File.read(File.join(File.dirname(__FILE__), "inventory", $STage, $Stage + ".json")))
# Local PATH_SRC for mounting
$PathSrc = ENV['PATH_SRC'] || "."
Vagrant.configure(2) do |config|
Expand Down
44 changes: 0 additions & 44 deletions inventory/dev.json

This file was deleted.

92 changes: 92 additions & 0 deletions inventory/dev/dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"name": "control01",
"autostart": true,
"cpus": 2,
"distro": "almalinux",
"family": "RedHat",
"gui": false,
"box": "bento/almalinux-8.10",
"ip_addr": "192.168.56.4",
"memory": "8192",
"no_share": true,
"primary": false,
"app_port": "22",
"forwarded_port": "2204"
},
{
"name": "control02",
"autostart": false,
"cpus": 2,
"distro": "almalinux",
"family": "RedHat",
"gui": false,
"box": "bento/almalinux-8.10",
"ip_addr": "192.168.56.5",
"memory": "8192",
"no_share": true,
"primary": false,
"app_port": "22",
"forwarded_port": "2205"
},
{
"name": "control03",
"autostart": false,
"cpus": 2,
"distro": "almalinux",
"family": "RedHat",
"gui": false,
"box": "bento/almalinux-8.10",
"ip_addr": "192.168.56.6",
"memory": "8192",
"no_share": true,
"primary": false,
"app_port": "22",
"forwarded_port": "2206"
},
{
"name": "worker10",
"autostart": true,
"cpus": 2,
"distro": "almalinux",
"family": "RedHat",
"gui": false,
"box": "bento/almalinux-8.10",
"ip_addr": "192.168.56.10",
"memory": "8192",
"no_share": true,
"primary": false,
"app_port": "22",
"forwarded_port": "2210"
},
{
"name": "worker11",
"autostart": false,
"cpus": 2,
"distro": "almalinux",
"family": "RedHat",
"gui": false,
"box": "bento/almalinux-8.10",
"ip_addr": "192.168.56.11",
"memory": "8192",
"no_share": true,
"primary": false,
"app_port": "22",
"forwarded_port": "2211"
},
{
"name": "worker12",
"autostart": false,
"cpus": 2,
"distro": "almalinux",
"family": "RedHat",
"gui": false,
"box": "bento/almalinux-8.10",
"ip_addr": "192.168.56.12",
"memory": "8192",
"no_share": true,
"primary": false,
"app_port": "22",
"forwarded_port": "2212"
}
]
3 changes: 3 additions & 0 deletions inventory/dev/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ controller ansible_host=192.168.56.3
cluster01 ansible_host=192.168.56.4
cluster02 ansible_host=192.168.56.5
cluster03 ansible_host=192.168.56.6
worker10 ansible_host=192.168.56.10
worker11 ansible_host=192.168.56.11
worker12 ansible_host=192.168.56.12


[dev:vars]
Expand Down

0 comments on commit 6d4b66e

Please sign in to comment.