mirror of
https://github.com/bitnami/containers.git
synced 2026-03-27 07:17:59 +08:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
group:
|
|
harbor:
|
|
exists: true
|
|
user:
|
|
harbor:
|
|
exists: true
|
|
file:
|
|
/var/lib/registry:
|
|
exists: true
|
|
mode: "0775"
|
|
owner: harbor
|
|
filetype: directory
|
|
/storage:
|
|
exists: true
|
|
mode: "0775"
|
|
owner: harbor
|
|
filetype: directory
|
|
/opt/bitnami/harbor-registry/bin/registry_DO_NOT_USE_GC:
|
|
exists: true
|
|
filetype: symlink
|
|
linked-to: registry
|
|
command:
|
|
# Ensure a set of directories exist and the non-root user has write privileges to them
|
|
check-directories-exist-with-user:
|
|
exec: ls -dl /etc/ssl/certs /etc/pki/tls/certs/ 2>/dev/null | grep "drwxrwxr-x.*harbor"
|
|
exit-status: 0
|
|
# Ensure permissions for Internal TLS
|
|
check-permissions-system-certs:
|
|
exec: ls -l /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt 2>/dev/null | grep "^.\{5\}w.*harbor"
|
|
exit-status: 0
|