iagctl create registry
Create a new dependency management registry.
The iagctl create registry command creates a registry in your gateway’s data store. You can create registries that point to private PyPI and Ansible Galaxy registries for use with your Python and Ansible services.
By default, IAG includes a PyPI registry called default-pypi that points to the public PyPI registry and an Ansible Galaxy registry called default-galaxy that points to the public Ansible Galaxy registry. For more information, see Create an Ansible Galaxy registry.
Syntax
Handle secret values
Use the --password-name and --token-name flags to reference secret resources that contain password or token values. This approach ensures that IAG doesn’t store the password or token in plain text within the registry.
For example, to create a registry that requires a token:
- Configure your IAG secret store with an encryption file.
- Create a secret that contains the token value:
- Create a registry with the
--token-nameflag:
The registry my-pypi-registry now references the secret my-pypi-token for its token value. IAG decrypts the token at runtime when you run a service that requires the registry.
For more information about creating secret resources, see iagctl create secret.
Examples
Create a PyPI registry
The following example creates a basic PyPI registry called my-pypi-registry:
iagctl create registry pypi --help.Create an Ansible Galaxy registry
The following example creates a basic Ansible Galaxy registry called my-galaxy-registry:
iagctl create registry ansible-galaxy --help.