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

Improve account using meta feature #104

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

lafeychine
Copy link
Contributor

@lafeychine lafeychine commented Nov 7, 2023

I realised that the modification made #100 had two major flaws.

On one hand, there was too much logic in the playbook.

  • For example: Forgetting accounts__users in the osm2pgsql playbook drastically changes the semantics (because no longer overwrite the variable).
  • No possible configuration described solely by the role (for example, with osm2pgsql__user).

On the other hand, this was impossible to ensure the uniqueness of the user, which is a problem especially with roles like overpass-api where the name of the service user is used a lot.

I use meta, which is dedicated to this type of task.

Edit: Force-pushed to remove the ansible-lint issue about capitalise word

@lafeychine lafeychine force-pushed the lafeychine/account_meta branch from 7feaed7 to 3f9fd27 Compare November 7, 2023 21:14
@jocelynj jocelynj merged commit 641d31e into osm-fr:master Nov 7, 2023
1 check passed
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