-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
91 lines (89 loc) · 4.28 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Vagrant.require_version ">= 1.8.0"
Vagrant.configure(2) do |config|
config.vm.box = "opensuse/Leap-15.4.x86_64"
config.vm.define "machine1"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
ansible.groups = {
"trento-server" => ["machine1"],
"postgres-hosts" => ["machine1"],
"prometheus-hosts" => ["machine1"],
"rabbitmq-hosts" => ["machine1"]
}
ansible.extra_vars = {
web_postgres_password: "pass",
wanda_postgres_password: "wanda",
rabbitmq_password: "trento",
nginx_vhost_filename: "trento.conf",
prometheus_url: "http://localhost:9090",
web_admin_password: "adminpassword",
trento_server_name: "trento.local",
nginx_ssl_cert_as_base64: "false",
nginx_ssl_key_as_base64: "false",
nginx_ssl_cert: "
-----BEGIN CERTIFICATE-----
MIIEZDCCA0ygAwIBAgIUAue46Y/9kwT+zvPPW2xfuNv1+Z4wDQYJKoZIhvcNAQEL
BQAwXjELMAkGA1UEBhMCSVQxFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEcMBoGA1UE
CgwTRGVmYXVsdCBDb21wYW55IEx0ZDEaMBgGA1UEAwwRdHJlbnRvLmxvY2FsOjgw
ODAwHhcNMjQwMTIzMTUyODE1WhcNMzQwMTIwMTUyODE1WjBeMQswCQYDVQQGEwJJ
VDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBh
bnkgTHRkMRowGAYDVQQDDBF0cmVudG8ubG9jYWw6ODA4MDCCASIwDQYJKoZIhvcN
AQEBBQ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Ibx
89QK7Q6WersLi4nVmNCIODrL/SkeraJeZLUIXdDcvZlt4bFWmTx3EECJKoVL1/Q0
YlNx/FZYZBqcCr6hBhovbpMkbOFxX3Xuo2FMf7++tBrEwFom3r/9Wx1KMGkum73G
Sv9vlDqKqQKBgAg9IH51FVoJDSJHM19GLJ6i9raBhDWZztGIK/3zmCK6AJJn6gJk
A+XsrpnSi+LDJya9bIouhgXuPvkCghYJhf8zXRJGoEwou3leEI5kuhxJWzjSZQVP
P9WKsNyr6r3Ebwr/YvOtPytSNUAgWmbZPt76+h/IZQeRNVtPVIhxKPQpAoGABB/N
2DcAgyjM7OsL+KNf8HrEzoiyyg6oaGiTICpVR7kqovZN8QOKkXOq1xCY9rOZ/bj4
wVZOYItJ88AhxWVYjsUspdbpVuFH3F7MtpR00Txh2UvjJGad7KzhTsuVqIgQb03n
tWaZL/eFHw2a7X+3eDmoSxkFNqD1aoX7VthK8QECgYEAs99HdXW9LlGQeoUrG5UX
14Zm7CH/6TtwdWFpbcppJpipEtbDHyjpyiDlrgI4uxVilPnrBQtgzHCf8U2xQDJF
l0GpzDqUXDQI3wdzi8gVUBgPpjfVa9msafc7m6faT8myjHr/p6TJKj9Z36j58WHv
mpNiKDOPALNTs+Ukdkt5KlE=
-----END PRIVATE KEY-----
"
}
end
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 4
end
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 443, host: 8443
end