Skip to content

Commit

Permalink
Fix: vault_wordpress_env_defaults not populated during deploy
Browse files Browse the repository at this point in the history
Follow up on #1048
  • Loading branch information
tangrufus committed Dec 17, 2018
1 parent cb57393 commit 83f7163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Fix: `vault_wordpress_env_defaults` not populated during deploy ([#1049](https://github.com/roots/trellis/pull/1049))
* Add `vault_wordpress_env_defaults` ([#1048](https://github.com/roots/trellis/pull/1048))
* Allow overriding rollback variables ([#1047](https://github.com/roots/trellis/pull/1047))
* Require Vagrant >= 2.1.0 ([#1046](https://github.com/roots/trellis/pull/1046))
Expand Down
2 changes: 1 addition & 1 deletion roles/deploy/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ wordpress_env_defaults:
wp_siteurl: "{{ project.ssl.enabled | default(false) | ternary('https', 'http') }}://{{ project.site_hosts | map(attribute='canonical') | first }}/wp"
domain_current_site: "{{ project.site_hosts | map(attribute='canonical') | first }}"

site_env: "{{ wordpress_env_defaults | combine(project.env | default({}), vault_wordpress_sites[site].env) }}"
site_env: "{{ wordpress_env_defaults | combine(vault_wordpress_env_defaults | default({}), project.env | default({}), vault_wordpress_sites[site].env) }}"

0 comments on commit 83f7163

Please sign in to comment.