Metadata-Version: 2.5
Name: trytond_ansible_credentials
Version: 8.0.0.1
Summary: Ansible Credentials Module
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <clemens.hupka@backend.at>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: ansible,api-token,credentials,ssh,tryton,vault
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.10
Requires-Dist: cryptography
Requires-Dist: trytond-ansible<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Description-Content-Type: text/x-rst

Ansible Credentials
===================

The ``ansible_credentials`` module provides credential types and
credential models for SSH keys, vault passwords, and API tokens.

Features
--------

- **Credential Types**: Pre-seeded built-in types for Machine (SSH),
  Vault, GitHub, GitLab, AWS, GCP, and Azure.  Custom types can be
  created with a JSON input schema defining additional fields.
- **Credentials**: Store credentials with built-in fields for
  username, password, SSH key, SSH key passphrase, vault password,
  API token, and become (sudo) password.  Sensitive fields use
  ``Char`` field type with ``strip=False``.
- **Custom Inputs**: Arbitrary key-value pairs per credential via
  ``ansible.credential.input``, with type selection (string, integer,
  float, boolean, secret, text).
- **Team Access Control**: Optional ``res.group`` reference on each
  credential for access scoping.
- **get_inputs()**: Returns a dict combining built-in fields and
  custom inputs, suitable for passing to ansible-playbook as extra
  vars.

Configuration
-------------

After installing the module, navigate to *Ansible > Credentials* to
manage credential types and credentials.

Built-in credential types are seeded automatically on installation.

Dependencies
------------

- Tryton modules: ``ir``, ``res``, ``ansible``.

Models
------

- ``ansible.credential.type`` — ``CredentialType``: defines a
  credential type with a kind (ssh, vault, net, scm, cloud, custom)
  and an optional JSON schema for custom input fields.
- ``ansible.credential`` — ``Credential``: stores a credential
  referencing a credential type, with built-in sensitive fields and
  custom inputs.
- ``ansible.credential.input`` — ``CredentialInput``: stores custom
  field values for a credential.

Cron Jobs
---------

None.

Wizards
-------

None.
