create registry
Create a new dependency management registry
Synopsis
Create
This command will create a registry reference in torero's data store. torero supports creating registries that point to private PyPi and Ansible Galaxy registries for use with your Python and Ansible services.
By default, torero will have a single PyPi registry reference called default-pypi
that
points to the public PyPi registry and a single Ansible Galaxy registry reference called
default-galaxy
that points to the public Ansible Galaxy registry.
Handling Secret Values
The --password-name
and --token-name
flags used on both PyPi and Galaxy registries are
references to the names of secret resources that contain the actual password or token value.
This means that the actual password or token value is not stored in plain text in the registry
resource itself.
To create a secret resource, see torero create secret -h
.
For example, to create a registry that requires a token,
- Setup the secret store with an encryption file if you have not yet done so. For more information, see
torero create secret -h
- Create a secret that contains the token value. For example,
torero create secret my-pypi-token --value 'my-token-value'
. - Create the registry with the
--token-name
flag. For example,torero create registry pypi my-pypi-registry --url 'http://private-repo-hostname' --token-name my-pypi-token
. - All done! The registry
my-pypi-registry
now references the secretmy-pypi-token
for its token value. The true token value will be decrypted at runtime when a service is executed that requires the registry.
Examples
Create A PyPi Registry
Create a basic PyPi registry reference called my-pypi-registry
.
Run torero create registry pypi --help
for more information on PyPi registries
specifically.
>_ torero create registry pypi my-pypi-registry \
--url 'http://repo-hostname:8080/simple'
Create An Ansible Galaxy Registry
Create a basic Ansible Galaxy registry reference called my-galaxy-registry
.
Run torero create registry ansible-galaxy --help
for more information on Ansible
Galaxy registries specifically.
>_ torero create registry ansible-galaxy my-galaxy-registry \
--url 'http://repo-hostname:8080'
Options
-h, --help help for registry
Options inherited from parent commands
--config string Path to the configuration file
--raw Displays the result of the command in its raw format
--verbose Enable verbose output
SEE ALSO
- torero create - Create a resource
- torero create registry ansible-galaxy - Create a new ansible-galaxy registry
- torero create registry pypi - Create a new pypi registry