-
Notifications
You must be signed in to change notification settings - Fork 14
/
Vagrantfile
51 lines (44 loc) · 2.13 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- mode: ruby -*-
# vi: set ft=ruby :
#####################################################################################
# Copyright 2016 Normation SAS
#####################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#####################################################################################
Vagrant.configure("2") do |config|
config.vm.define "server" do |server|
server.vm.box = "ubuntu/jammy64"
server.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
server.vm.provision :shell, :path => "https://repository.rudder.io/tools/rudder-setup",
:args => ["setup-server", "latest"],
:env => {"ADMIN_USER" => "admin", "ADMIN_PASSWORD" => "admin"}
server.vm.network :private_network, ip: "192.168.42.10"
server.vm.hostname = "server.rudder.local"
server.vm.network :forwarded_port, guest: 443, host: 8081
end
config.vm.define "node" do |node|
node.vm.box = "ubuntu/jammy64"
node.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "512"]
end
node.vm.provision :shell, :path => "https://repository.rudder.io/tools/rudder-setup",
:args => ["setup-agent", "latest", "192.168.42.10"]
node.vm.provision :shell, :inline => "echo 'SUCCESS: You can now access the Rudder web interface on https://localhost:8081/ with admin/admin credentials'"
node.vm.network :private_network, ip: "192.168.42.11"
node.vm.hostname = "node.rudder.local"
end
end