For some reason trellis doesn’t see the matching site names for my production config. Here’s my (production)vault:
vault_mysql_root_password: <redacted>
# Documentation: https://roots.io/trellis/docs/security/
vault_users:
- name: "{{ admin_user }}"
password: <redacted>
salt: "<redacted>"
# Variables to accompany `group_vars/production/wordpress_sites.yml`
# Note: the site name (`example.com`) must match up with the site name in the above file.
vault_wordpress_sites:
carre.ninja:
env:
db_password: <redacted>
auth_key: "<redacted>"
secure_auth_key: "<redacted>"
logged_in_key: "<redacted>"
nonce_key: "<redacted>"
auth_salt: "<redacted>"
secure_auth_salt: "<redacted>"
logged_in_salt: "<redacted>"
nonce_salt: "<redacted>"
and my wordpress_site file:
# Documentation: https://roots.io/trellis/docs/remote-server-setup/
# `wordpress_sites` options: https://roots.io/trellis/docs/wordpress-sites
# Define accompanying passwords/secrets in group_vars/production/vault.yml
wordpress_sites:
carre.ninja:
site_hosts:
- canonical: carre.ninja
redirects:
- www.carre.ninja
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
repo: git@github.com:dodo/carre.ninja.git # replace with your Git repo URL
repo_subtree_path: site # relative path to your Bedrock/WP directory in your repo
branch: master
multisite:
enabled: false
ssl:
enabled: true
provider: letsencrypt
cache:
enabled: false
here’s the exact output:
Invalid WordPress sites configuration: site names in `wordpress_sites` must
have matching entry in `vault_wordpress_sites`.
Sites without a matching vault entry:
* `carre.ninja`
Update `group_vars/production/vault_wordpress_sites.yml` to continue.
Docs: https://roots.io/trellis/docs/wordpress-sites/#passwordssecrets
fatal: [138.197.3.141]: FAILED! => {
"changed": false,
"failed": true
}