Skip to content

Commit 3abdf8c

Browse files
committed
Add Apt auth configuration
This allows us to use packages from authenticated repositories such as those on Ark. This patch depends on https://review.opendev.org/c/openstack/kayobe/+/908413
1 parent cc51997 commit 3abdf8c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

etc/kayobe/apt.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ apt_repositories: "{{ stackhpc_apt_repositories if 'overcloud' in group_names el
7575
# repository mirrors are deployed.
7676
apt_disable_sources_list: "{{ 'overcloud' in group_names }}"
7777

78+
# Apt auth configuration for accessing the package repository mirror.
79+
stackhpc_apt_auth:
80+
- machine: "{{ stackhpc_repo_mirror_url }}"
81+
login: "{{ stackhpc_repo_mirror_username }}"
82+
password: "{{ stackhpc_repo_mirror_password }}"
83+
filename: "kayobe.conf"
84+
85+
# List of Apt auth configurations. Each item is a dict with the following keys:
86+
# * machine: 'machine' entry in the auth file
87+
# * login: 'login' entry in the auth file
88+
# * password: 'password' entry in the auth file
89+
# * filename: Name of a file in which to store the auth configuration. The
90+
# extension should be '.conf'.
91+
# Default is an empty list.
92+
apt_auth: "{{ stackhpc_apt_auth if 'overcloud' in group_names and stackhpc_repo_mirror_username is truthy else [] }}"
93+
7894
###############################################################################
7995
# Dummy variable to allow Ansible to accept this file.
8096
workaround_ansible_issue_8743: yes

0 commit comments

Comments
 (0)