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

feat: Configuration validation. fix #518 #592

Merged

Conversation

bastienwirtz
Copy link
Contributor

SUMMARY

Following discussion on #565, this patch implement the validation during install / update only

ISSUE TYPE

Feature Pull Request

COMPONENT NAME

config tasks

ADDITIONAL INFORMATION

All configuration files must be given to the validate command at once (partial conf might raise some issue regarding missing some required items), so it's not possible to use the validate arg og the ansibvle.builtin.copy module used to template the config (cc @rndmh3ro).

@rndmh3ro
Copy link
Collaborator

LGTM!

It'd be nice if you could add your rationale to the task itself so people who read the code will get an understanding why it is the way it is.

@bastienwirtz
Copy link
Contributor Author

@rndmh3ro @nre-ableton Updated !

@rndmh3ro rndmh3ro merged commit 6095e10 into ansible-collections:master Feb 22, 2024
16 checks passed
isakrubin added a commit to car-info/ansible-consul that referenced this pull request Jun 10, 2024
* upstream/master:
  Remove deprecated molecule/centos-stream-8
  Fix rolling restart by waiting for consul leave and after restart
  Update molecule.yml
  --- (ansible-collections#597)
  Bump idna from 3.3 to 3.7 in the pip group across 1 directory (ansible-collections#596)
  Fix CI badge in README (ansible-collections#595)
  Fix ubuntu 22.04 molecule test to actually run on 22.04 (ansible-collections#594)
  feat: Configuration validation. fix ansible-collections#518 (ansible-collections#592)
  Fix error when creating gossip key (ansible-collections#558)
  adding become to service restarts (ansible-collections#571)
  Bump the pip group across 1 directories with 1 update (ansible-collections#590)
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

Successfully merging this pull request may close these issues.

2 participants