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

Config Groups #42

Closed
5 tasks done
jon-nfc opened this issue May 31, 2024 · 39 comments
Closed
5 tasks done

Config Groups #42

jon-nfc opened this issue May 31, 2024 · 39 comments
Assignees
Labels
impact::0 Migrated from Gitlab This issue/PR was migrated from GitLab see #213 priority::3 type::feature type for Issues and Merge Requests. Can also be used in discussion in comments and commits
Milestone

Comments

@jon-nfc
Copy link
Member

jon-nfc commented May 31, 2024

Add a feature for the config management module for host groups.

Use Case

be able to assign a host to a group for the purpose of config management. the groups can have configuration assigned to it that is then rendered as part of the hosts configuration.

Details

Groups can be stored in a single model groups with the following fields

  • id primary key
  • name name of the group
  • parent primary id of the parent group or null for group with no parent
  • config json of groups config
  • created dtg created
  • modified dtg modified

Config rendering

  • function within model to render config

Config rendering can be done via a function that is a recursive lookup. the lookup returns the config of the child group and merges it with the current group overriding any config that conflicts with that of the child group. conflicting settings override precedence is child group then groups from left to right. A hosts config will always override that of any group config.

Config validation

  • Exception Configuration is invalid

Any configuration will need to have it validated as valid json.

Hosts

  • new field config_groups

Host group storage will not need a model as the hosts model can be modified to include a single field that is a one to many field. this will allow a host to be assigned to multiple groups.

Requirements

  • history is maintained
  • API endpoint for config groups and rendered config
@jon-nfc
Copy link
Member Author

jon-nfc commented May 31, 2024

marked this issue as blocking #33

@jon-nfc
Copy link
Member Author

jon-nfc commented May 31, 2024

added 5m of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented May 31, 2024

added 23m of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented May 31, 2024

marked this issue as blocking #43

@jon-nfc
Copy link
Member Author

jon-nfc commented May 31, 2024

removed the relation with #33

@jon-nfc
Copy link
Member Author

jon-nfc commented May 31, 2024

marked this issue as blocking #33

@jon-nfc
Copy link
Member Author

jon-nfc commented May 31, 2024

marked this issue as blocking #44

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit c9982e43be233044937ea673d2afc6d13321803b

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 36eb9d34109e7832b72ee0bb5f532a12e1ee7579

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 1e56d8a2abe83526d3d2a80f9b452722c2fffa8e

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit fdeae21

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 746b7ac

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit d422f2f

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit a7d195d

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

marked the checklist item Exception Configuration is invalid as completed

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 7abcc8b6dc86b1e58c5a8bf0e8971043ad8a371e

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 69d07701b2f6a8532a6282a38899776dde77d79e

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 3e2b10a6947f4a11c8e9bf4e9ff4361bf03d08e7

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit fc2b47a4cf3b6a0af4ec9b4f8f47e327e64499bd

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit fff51e3

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit df27a7d

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 7eee0a2

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 39bfbd2

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit c9098f5

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

mentioned in commit 5cb155e

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

marked the checklist item new field config_groups as completed

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

added 13h 35m of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 2, 2024

subtracted 13h 35m of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit 1f35f44

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit 9e4ee4e9a666fc6cdaf05bd66dc36000dc7eac98

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit aeef107026e950b2f27934843c6f4e0f2ad34e8b

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit 62e605d

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit 55f0db2

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit 5873897

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

marked the checklist item function within model to render config as completed

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

marked the checklist item history is maintained as completed

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

marked the checklist item API endpoint for config groups and rendered config as completed

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit 0a17329

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 3, 2024

mentioned in commit 23a06be

@jon-nfc jon-nfc self-assigned this Aug 8, 2024
@jon-nfc jon-nfc closed this as completed Aug 8, 2024
@jon-nfc jon-nfc added the Migrated from Gitlab This issue/PR was migrated from GitLab see #213 label Aug 8, 2024
This was referenced Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact::0 Migrated from Gitlab This issue/PR was migrated from GitLab see #213 priority::3 type::feature type for Issues and Merge Requests. Can also be used in discussion in comments and commits
Projects
Archived in project
Development

No branches or pull requests

1 participant