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

step_ca_provisioner: make idempotent, remove 'updated' state #355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxhoesel
Copy link
Collaborator

This commit allows step_ca_provisioner to determine whether
a given provisioner has been changed, be that through creation
or an update.

We do this by comparing the provisioner config before and after
running the create/update command.

This has the side-effect of making this module check-mode-incompatible,
since there is no way to tell whether a provisioner has changed without
actually applying it.

This commit also fixes some behavior around the --create parameter
to ensure idempotency,
as well as some other minor details.

@maxhoesel maxhoesel added pr-major This PR introduces a breaking change! A major release will be required modules Something affecting one or more module labels Oct 31, 2023
@maxhoesel maxhoesel force-pushed the provisioner_state branch 4 times, most recently from cc03f6d to f4cefda Compare November 1, 2023 11:47
This commit allows `step_ca_provisioner` to determine whether
a given provisioner has been changed, be that through creation
or an update.

We do this by comparing the provisioner config before and after
running the `create/update` command.

This has the side-effect of making this module check-mode-incompatible,
since there is no way to tell whether a provisioner has changed without
actually applying it.

This commit also fixes some behavior around the --create parameter
to ensure idempotency,
as well as some other minor details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules Something affecting one or more module pr-major This PR introduces a breaking change! A major release will be required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant