inhumantsar.private-repos

private-repos

What is this?

This is for setting up configurations for private package repositories like PyPI, RPM, Docker, and others. It's similar to Artifactory.

How does it work?

The configurations for RPM and pip are created for everyone, so they need sudo permissions and will be written as root. However, Docker logins should be done as the specific user. In short: Connect as yourself, and avoid using sudo locally.

You need to change the variables below to fit your setup. Instructions on how to obtain your encrypted password are provided later. Important: The password you give to this playbook will be stored in plain text on your system, for example: ~/.pip/pip.conf

private_repo_username: 'jtest'
private_repo_password: 'mootoo'
private_repo_encrypted_password: 'abc123' # Only needed for RPM repositories

# Format is {{proto}}://{{base}}/{{prefix}}/...
private_repo_url_proto: 'https'
private_repo_url_base: 'artifactory.default.com'
private_repo_url_pathprefix: 'artifactory'

Update these with the names of your repositories in Artifactory. This is what you see in the repository URLs, for example: centos-local, someteam-docker, etc.

private_repo_rpm_repos: []
private_repo_pypi_repos: []
private_repo_docker_repos: []

How to get the encrypted password for RPM from Artifactory

  1. Go to https://artifactory.domain.com/artifactory/webapp/#/profile
  2. Enter your password again and click Unlock.
  3. Look for Authentication Settings and find the Encrypted Password field.
  4. Write down the password somewhere safe.
Installa
ansible-galaxy install inhumantsar.private-repos
Licenza
bsd-3-clause
Download
956
Proprietario