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

metal_project_ssh_key #65

Closed
t0mk opened this issue Mar 27, 2023 · 2 comments
Closed

metal_project_ssh_key #65

t0mk opened this issue Mar 27, 2023 · 2 comments

Comments

@t0mk
Copy link
Contributor

t0mk commented Mar 27, 2023

Create module for metal_project_ssh_key.

Analogical to resource equinix_metal_project_ssh_key in terraform-provider-equinix:

Module should

  • be in plugins/modules/metal_project_ssh_key.py
  • follow development conventions
  • be idempotent
  • support check_mode if it's an _info module
  • have doc fields for (ansible-specdoc)[https://github.com/linode/ansible-specdoc] (see metal_project.py for an example
    • module_spec
    • specdoc_example
    • result_sample
    • SPECDOC_METAL
    • (DOCUMENATION, EXAMPLES and RETURN will be generated by make docs)
  • have an integration test in tests/integration/targets/metal_project_ssh_key/tasks/main.yml
  • (semi-optional) pass sanity test:
    $ cd .ansible/collections/ansible_collections/equinix/cloud
    $ ansible-test sanity -v --docker --python 3.10 metal_project_ssh_key.py

See the newest added module to get an idea how to do implement this.

@displague displague added this to the v0.2 milestone Apr 26, 2023
@t0mk
Copy link
Contributor Author

t0mk commented May 18, 2023

This should be an Ansible interface to
https://github.com/equinix-labs/metal-python/blob/main/equinix_metal/equinix_metal/api/ssh_keys_api.py

..using methods that match *project_ssh_key$

It's very analogical to metal_ssh_key, the difference is that ssh_key is owned by user, and project_key_key is owned by a project. There's a PR for metal_ssh_key support. This should be very similar, just you'd need a project for testing.
#94
.. see the diff.

There is some development documentation at
https://github.com/equinix-labs/ansible-collection-equinix/blob/development.md/DEVELOPMENT.md

@t0mk
Copy link
Contributor Author

t0mk commented Aug 15, 2023

closed by #107

@t0mk t0mk closed this as completed Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants