Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent unwanted vars in schema-enforcer ansible #149

Open
bjorntimmer opened this issue Jan 17, 2023 · 0 comments
Open

Prevent unwanted vars in schema-enforcer ansible #149

bjorntimmer opened this issue Jan 17, 2023 · 0 comments

Comments

@bjorntimmer
Copy link

I'm creating checks to validate host and group vars for an Ansible project. I've defined all my checks and assigned them to my groups with the “schema_enforcer_schema_ids” var. Now I've some groups that need to be validated on VLAN configuration and some groups that have the requirement to have the VLANs dict absent.

For the first one, where the VLANs dict should be present and validated, it's an easy one and is working. However, for the second one, I'm struggling with schema-enforcer. Is there a way to instruct schema-enforcer, with Ansible, that an object is optional are shouldn't be present in the host or group vars?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant