Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 312b744

Browse files
committed
shim nginx_hosts -> nginx_vhosts
1 parent bf417e5 commit 312b744

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

lib/drupalvm/vagrant.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def get_vhost_aliases(vconfig)
9595
if vconfig['drupalvm_webserver'] == 'apache'
9696
aliases = get_apache_vhosts(vconfig['apache_vhosts'])
9797
else
98-
aliases = get_nginx_vhosts(vconfig['nginx_hosts'])
98+
# @todo shim for `nginx_hosts`.
99+
aliases = get_nginx_vhosts(vconfig.fetch('nginx_hosts', vconfig['nginx_vhosts']))
99100
end
100101
aliases = aliases.uniq - [vconfig['vagrant_ip']]
101102
# Remove wildcard subdomains.

provisioning/playbook.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
- include: tasks/config.yml
1111
tags: ['always']
1212

13+
- include: tasks/backwards-compatibility.yml
14+
tags: ['always']
15+
static: no
16+
1317
- include: "tasks/init-{{ ansible_os_family }}.yml"
1418
static: no
1519

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- name: nginx_hosts shim
3+
set_fact:
4+
nginx_vhosts: "{{ nginx_hosts }}"
5+
when: nginx_hosts is defined

0 commit comments

Comments
 (0)