robertdebock.harbor

Ansible Role Harbor

This role helps you install and set up Harbor on your system.

GitHub GitLab Downloads Version
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

State of Used Roles

These roles are used to prepare the system. You can also choose to prepare your system in a different way.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.core_dependencies Build Status GitHub Build Status GitLab
robertdebock.buildtools Build Status GitHub Build Status GitLab
robertdebock.epel Build Status GitHub Build Status GitLab
robertdebock.python_pip Build Status GitHub Build Status GitLab
robertdebock.docker Build Status GitHub Build Status GitLab
robertdebock.docker_compose Build Status GitHub Build Status GitLab
robertdebock.selinux Build Status GitHub Build Status GitLab

Context

This role works with many other roles. Check out the documentation for more information.

Here is a diagram of related roles: dependencies

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.

Informazioni sul progetto

Install and configure harbor on your system.

Installa
ansible-galaxy install robertdebock.harbor
Licenza
apache-2.0
Download
194
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.