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

Add support to nomad acl tokens #7522

Closed
1 task done
apecnascimento opened this issue Nov 15, 2023 · 4 comments
Closed
1 task done

Add support to nomad acl tokens #7522

apecnascimento opened this issue Nov 15, 2023 · 4 comments
Labels
feature This issue/PR relates to a feature request has_pr module module

Comments

@apecnascimento
Copy link
Contributor

apecnascimento commented Nov 15, 2023

Summary

We currently only support the creation of jobs in Hashicorp Nomad. The idea is to have a module to manage acl tokens in nomad with the following capabilities:

  • Create tokens
  • Update tokens
  • Delete tokens

Issue Type

Feature Idea

Component Name

nomad_token

Additional Information

The module would be used as follows:

- name: Create boostrap token
  community.general.nomad_token:
    host: localhost
    token_type: bootstrap
    state: present

- name: Create acl token
  community.general.nomad_token:
    host: localhost
    name: "Dev token"
    token_type: client
    policies: 
      - readonly
    global_token: false
    state: absent

- name: "Update acl token Dev token""
  community.general.nomad_token:
    host: localhost
    name: "Dev token"
    token_type: client
    policies: 
      - readonly
      - devpolicy
    global_token: false
    state: absent

- name: Delete acl token
  community.general.nomad_token:
    host: localhost
    name: "Dev token"
    state: absent

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:
None

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added the module module label Dec 10, 2023
@lyrandy
Copy link
Contributor

lyrandy commented Aug 8, 2024

It seems like this issue was addressed by PR #7523 which was merged. Should we close this issue in the spirit of tidiness?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module
Projects
None yet
Development

No branches or pull requests

4 participants