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

Write failsafe hosts to file #74

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Conversation

pederhan
Copy link
Member

When the failsafe is hit, we need some way to inspect the hosts that are to be added/removed. This PR makes the application dump the hostnames to add and remove to a JSON file in a user-configuration location with the option zac.failsafe_file.

The JSON file has the following structure:

{
  "add": [
    "host1.example.com",
    "host2.example.com",
  ],
  "remove": [
    "host3.example.com",
    "host4.example.com"
  ]
}

@pederhan pederhan merged commit 364bfe8 into unioslo:master Mar 14, 2024
3 checks passed
@pederhan pederhan deleted the dump-failsafe-hosts branch March 14, 2024 10:54
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.

1 participant