Add RADIUS authentication modules#501
Merged
Merged
Conversation
Co-authored-by: TerryHowe <104113+TerryHowe@users.noreply.github.com>
Co-authored-by: TerryHowe <104113+TerryHowe@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Ansible modules to support RADIUS
Add RADIUS authentication modules
Nov 18, 2025
TerryHowe
requested changes
Nov 18, 2025
Contributor
|
@copilot fix bug to write a config when the current state is empty. In hashivault_radius_config if Radius auth is newly enabled, it wont write the config to Vault. |
… empty The module was not configuring RADIUS when no existing config was present. Added check to set changed=True when current_state is empty, ensuring configuration is written on first run after enabling RADIUS auth method.
Contributor
|
Sorry if I'm doing this incorrectly! |
Fix: hashivault_radius_config now writes config when current_state is…
Contributor
|
@itsphoebe was able to show me that these changes worked for adding the mount and a user role
|
Owner
|
Is that an approval/lgtm? |
drewmullen
approved these changes
Dec 16, 2025
TerryHowe
approved these changes
Dec 16, 2025
Owner
|
Available with 5.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Implements Ansible modules for HashiCorp Vault RADIUS authentication using the hvac library's
RadiusAPI.Modules
Both modules implement idempotency via configuration comparison and support check mode.
Integration
hashivault_auth()for credential-based authenticationVAULT_AUTHTYPEdocumentation to includeradiusExample Usage
Authenticate via environment:
Test Coverage
test_radius_config.yml: Configuration idempotency and policy assignmentstest_radius_user.yml: User CRUD operations and policy updatesOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.