diff --git a/mdd-data/org/validate-local.yml b/mdd-data/org/validate-local.yml index a270c7d..cb553cb 100644 --- a/mdd-data/org/validate-local.yml +++ b/mdd-data/org/validate-local.yml @@ -5,4 +5,8 @@ mdd_schemas: - name: banner file: 'local/banner.schema.yml' - name: dns - file: 'local/dns.schema.yml' + file: 'local/dns.schema.yml.j2' + validate_vars: + dns_servers: + - 208.67.222.222 + - 208.67.220.220 diff --git a/play.sh b/play.sh index 4ad01af..8da80b5 100755 --- a/play.sh +++ b/play.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -IMAGE=ghcr.io/model-driven-devops/mdd:1.2.2 +IMAGE=ghcr.io/model-driven-devops/mdd:1.2.3 OPTIONS="--env ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3" if [[ ! -z "$ANSIBLE_VAULT_PASSWORD_FILE" ]]; then diff --git a/requirements.yml b/requirements.yml index bbb6ece..f01bd11 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,7 +1,7 @@ collections: - name: https://github.com/ciscodevnet/ansible-cml.git type: git - - name: https://github.com/model-driven-devops/ansible-mdd.git,1.2.2 + - name: https://github.com/model-driven-devops/ansible-mdd.git,1.2.3 type: git - name: https://github.com/model-driven-devops/ansible-nso.git type: git diff --git a/schemas/local/dns.schema.yml b/schemas/local/dns.schema.yml.j2 similarity index 91% rename from schemas/local/dns.schema.yml rename to schemas/local/dns.schema.yml.j2 index bf3996d..541ecdd 100644 --- a/schemas/local/dns.schema.yml +++ b/schemas/local/dns.schema.yml.j2 @@ -39,6 +39,4 @@ properties: description: DNS server address type: string format: ipv4 - enum: - - 208.67.222.222 - - 208.67.220.220 + enum: {{ validate_vars.dns_servers }}