# Inheritance for wordpress_sites.yml - prevent dublicated licence-key definition

**URL:** https://discourse.roots.io/t/inheritance-for-wordpress-sites-yml-prevent-dublicated-licence-key-definition/15506
**Category:** trellis
**Created:** 2019-05-09T13:35:09Z
**Posts:** 2

## Post 1 by @71m024 — 2019-05-09T13:35:09Z

I try to specify a licence-key for the db-migrate-pro plugin at one location.  
For me it seems logic to define it in all/vault.yml like the following example shows:

vault\_wordpress\_sites:  
–domain.com:  
----env:  
------wpmdb\_licence: XXXXXX

And then it should be used for all environments…  
Unfortunately this does not work so i tried to defined the key at the root of all/vault.yml and reuse it in env/vault.yml under vault\_wordpress\_sites:… with “{{wpmdb\_licence}}”

This did not work either so i defined it in the wordpress\_sites.yml of all environments separately :confused:

Do you have a solution for me, so i do not have to define the key redundant?

---

## Post 2 by @ben — 2019-05-09T17:31:42Z

> [@ACF Pro as a Composer dependency (without committing your license key unencrypted)](https://discourse.roots.io/t/acf-pro-as-a-composer-dependency-without-committing-your-license-key-unencrypted/6690/56):
>
> You can use vault\_wordpress\_env\_defaults (introduced by @TangRufus in [https://github.com/roots/trellis/pull/1048](https://github.com/roots/trellis/pull/1048))

---

## Post 3 by @system — 2019-06-20T13:35:10Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
