robertdebock.harbor
Ansible Role Harbor
This role helps you install and set up Harbor on your system.
GitHub | GitLab | Downloads | Version |
---|---|---|---|
Example Playbook
This is a simple example from molecule/default/converge.yml
and is tested every time changes are made.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: robertdebock.harbor
Before running this, you need to prepare your machine using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: robertdebock.bootstrap
- role: robertdebock.core_dependencies
- role: robertdebock.buildtools
- role: robertdebock.epel
- role: robertdebock.python_pip
- role: robertdebock.docker
- role: robertdebock.docker_compose
- role: robertdebock.selinux
You can find more details and examples on using these roles.
Role Variables
You can set your own variable values in defaults/main.yml
:
---
# default values for harbor
# What version do you want to install?
harbor_version: "2.6.0"
# Would you like to install online or offline?
harbor_installation_type: online
# Specify the IP or FQDN of the machine where you want to deploy Harbor.
harbor_hostname: "{{ ansible_fqdn }}"
# Set an initial password for the Harbor admin.
harbor_admin_password: "Harbor12345"
# Use harbor_external_url if you want to enable an external proxy.
# Choose either harbor_hostname or harbor_external_url
harbor_external_url: ""
Requirements
- Python packages listed in requirements.txt.
State of Used Roles
These roles are used to prepare the system. You can also choose to prepare your system in a different way.
Context
This role works with many other roles. Check out the documentation for more information.
Here is a diagram of related roles:
Compatibility
This role has been tested on these container images:
Container | Tags |
---|---|
Alpine | All |
Debian | All |
Fedora | All |
Ubuntu | All |
You need at least Ansible version 2.12. Tests have been conducted on:
- The previous version.
- The current version.
- The development version.
If you encounter any issues, please report them on GitHub.
License
This project is licensed under Apache-2.0.
Author Information
Created by robertdebock.
Consider sponsoring me.
ansible-galaxy install robertdebock.harbor