Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

ayedo.polycrate

Ansible collection for the Polycrate API. Based on the official ansible-collections/collection_template.

FQCN: ayedo.polycrate

Modules talk to /api/v1/hosts/ and catalog endpoints. They do not call Hetzner, OpenStack, or other IaaS APIs.

GitHub and Ansible Galaxy publishing are out of band.

Install (from a local clone)

ansible-galaxy collection install ./ayedo.polycrate

Auth

Same as polycrate-sdk: Authorization: Bearer <token>.

Parameter Environment
endpoint POLYCRATE_ENDPOINT
token POLYCRATE_TOKEN

Modules

Module API
ayedo.polycrate.host create / PATCH / DELETE Host
ayedo.polycrate.product_info GET /api/v1/products/{id}/
ayedo.polycrate.provider_info GET /api/v1/providers/{id}/
ayedo.polycrate.pop_info GET /api/v1/pops/{id}/

Example

- hosts: localhost
  gather_facts: false
  tasks:
    - name: Ensure a generic VM
      ayedo.polycrate.host:
        name: web-1
        workspace_id: "{{ workspace_id }}"
        product_id: "{{ host_product_id }}"
        kind: vm
        role: generic

Tests

ansible-test sanity --docker -v
ansible-test units --docker -v

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages