Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devops13242/ansible-playbook-docker-registry
Install and configure docker registry with native basic authentication and secure it using TLS
https://github.com/devops13242/ansible-playbook-docker-registry
ansible docker-registry
Last synced: 6 days ago
JSON representation
Install and configure docker registry with native basic authentication and secure it using TLS
- Host: GitHub
- URL: https://github.com/devops13242/ansible-playbook-docker-registry
- Owner: devops13242
- License: apache-2.0
- Created: 2024-01-17T13:48:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-20T12:45:30.000Z (about 1 year ago)
- Last Synced: 2024-11-21T19:12:56.550Z (2 months ago)
- Topics: ansible, docker-registry
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible playbook docker registry
The Ansible playbook installs and configures docker registry with native basic authentication and secures it using TLS.
## Parameters
* `htpasswd_file` - local path of the authentication file
* `tls_certificate_file` - local path of the ssl certificate file
* `tls_key_file` - local path of the ssl key file## Example of an inventory file
`hosts` file:
```ini
[all]
10.5.0.221 htpasswd_file=/home/test/htpasswd tls_certificate_file=/home/test/repocert.pem tls_key_file=/home/test/repokey.pem
```## Install docker registry
```shell
$ ansible-playbook -i hosts docker-registry.yml
```The ansible playbook:
* creates `/opt/docker-registry/` directory
* uploads htpasswd file to `/opt/docker-registry/auth/htpasswd`
* uploads ssl certificate to `/opt/docker-registry/certs/domain.crt`
* uploads ssl key to `/opt/docker-registry/certs/domain.key`
* creates `/opt/docker-registry/registry/` directory to store registry data
* starts docker registry