ansible-container-registry - Ansible role to deploy a container registry
Project description
A role to deploy a container registry. For now, the role only support Docker Registry v2.
Role Variables
Name |
Default Value |
Description |
---|---|---|
container_registry_debug |
false |
Enable debug option in Docker |
container_registry_deploy_docker |
true |
Whether or not to deploy Docker |
container_registry_deploy_docker_distribution |
true |
Whether or not to deploy Docker Distribution |
container_registry_deployment_user |
centos |
User which needs to manage containers |
container_registry_docker_options |
–log-driver=journald –signature-verification=false –iptables=false –live-restore |
Options given to Docker configuration |
container_registry_insecure_registries |
[] |
Array of insecure registries |
container_registry_network_options |
[undefined] |
Docker networking options |
container_registry_host |
localhost |
Docker registry host |
container_registry_port |
8787 |
Docker registry port |
container_registry_mirror |
[undefined] |
Docker registry mirror |
container_registry_storage_options |
-s overlay2 |
Docker storage options |
container_registry_selinux |
false |
Whether or not SElinux is enabled for containers |
container_registry_additional_sockets |
[undefined] |
Additional sockets for containers |
container_registry_skip_reconfiguration |
false |
Do not perform container registry reconfiguration if it’s already configured |
container_registry_logins |
[] |
A dictionary containing registries and a username and a password associated with the registry. Example: {‘docker.io’: {‘myusername’: ‘mypassword’}, ‘registry.example.com:8787’: {‘otheruser’: ‘otherpass’}} |
Requirements
ansible >= 2.4
python >= 2.6
Dependencies
None
Example Playbooks
Modify Image
The following playbook will deploy a Docker registry:
- hosts: localhost
become: true
roles:
- container-registry
License
Apache 2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ansible-role-container-registry-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b8d729b489aba88b9db78e4ab48d7ccf72e6274b43aaaa03eab7cda2af1870e |
|
MD5 | a58f5c91fc7bdc9cdf9424e53da078ef |
|
BLAKE2b-256 | 0c428c92cff6ba467fecc7dfdacde4efd951db5bf3124c9eaf25c39f3ebf37e2 |
Hashes for ansible_role_container_registry-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f576e72ef7a12a7bf1106d816c177b75f11e9b29f03190f5f97a86430ba6368c |
|
MD5 | 8e4437d6ae200e43774c408dd8ab2026 |
|
BLAKE2b-256 | d5bb50b8cbf9ef962d0cfece4d2f5f200913b7dedd77ec1794e61ff60b2b4d09 |