Don't base 'vagrant' on virtualization (prep for Proxmox)

This commit is contained in:
Sam A. 2023-10-04 18:42:56 +02:00
parent d0b23d4ef5
commit f8b4e49f7f
Signed by untrusted user: samsapti
GPG Key ID: CBBBE7371E81C4EA
2 changed files with 7 additions and 2 deletions

7
Vagrantfile vendored
View File

@ -27,7 +27,12 @@ Vagrant.configure(2) do |config|
if provisioned?
config.ssh.guest_port = PORT
ansible.extra_vars = {
ansible_port: PORT
ansible_port: PORT,
from_vagrant: true
}
else
ansible.extra_vars = {
from_vagrant: true
}
end
end

View File

@ -6,7 +6,7 @@
vars:
ldap_dn: "dc=data,dc=coop"
vagrant: "{{ ansible_virtualization_role == 'guest' }}"
vagrant: "{{ from_vagrant is defined and from_vagrant }}"
letsencrypt_enabled: "{{ not vagrant }}"
base_domain: "{{ 'datacoop.devel' if vagrant else 'data.coop' }}"