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

Declarative configuration #155

Open
JohnAZoidberg opened this issue Nov 5, 2019 · 0 comments
Open

Declarative configuration #155

JohnAZoidberg opened this issue Nov 5, 2019 · 0 comments

Comments

@JohnAZoidberg
Copy link

targetcli has saveconfig to save the current configuration as a JSON file and to later import it, restoring the targets.
This is super useful to configure the targets on reboot.

The JSON config, however, has to be initially created by manually running the targetcli commands.
This has a few drawbacks:

  • The commands have to be run on the production system. They don't only generate the config but actually configure targets in the kernel
  • The commands fail when the target is already there
  • Unlike targetcli clearconfig; targetcli restoreconfig, individual commands don't start from a clean slate
  • Activating the configuration for the first time is different than later times (individual commands vs restoreconfig)

What I am looking for, is to describe my desired target configuration and then switch to it - keeping the already configured targets, removing not-anymore configured targets and adding new targets.

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