Ansible Role github_project_createrepo

This role installs and configures github_project_createrepo.

Mandatory Requirements

If you use the github_project_createrepo Playbook, this is automatically done for you.

Tags

Tag

What it does

github_project_createrepo

Installs and configures github_project_createrepo

github_project_createrepo:configure

Deploys /etc/github_project_createrepo.yml

Mandatory Role Variables

Variable

Description

github_project_createrepo__github_repos

A list of dictionaries containing GitHub Repository from which the RPM-assets will be downloaded. Subkeys: Have a look at the project’s README

Example:

# mandatory
github_project_createrepo__github_repos:
  - github_user: 'mydumper'
    github_repo: 'mydumper'
    relative_target_path: 'mydumper/el/8'
    rpm_regex: 'mydumper-{latest_version}-\d\+.el8.x86_64.rpm'
  - github_user: 'exoscale'
    github_repo: 'cli'
    relative_target_path: 'exoscale/cli'
    # cannot use latest_version, as exoscale prefixes that with a "v", but there is no "v" in the rpm filename
    rpm_regex: 'exoscale-cli_\d+\.\d+\.\d+_linux_amd64\.rpm'

Optional Role Variables

Variable

Description

Default Value

github_project_createrepo__base_path

Directory under which all the repos will be placed. This directory should be served by a webserver.

'/var/www/html/github-repos'

github_project_createrepo__timer_enabled

Enables or disables the github-project-createrepo timer, analogous to systemctl enable/disable --now.

true

github_project_createrepo__webserver_user

The user under which the webserver runs. Will be used to set the correct FACL entries so that both users can access the files.

'apache'

Example:

# optional
github_project_createrepo__base_path: '/var/www/html/github-repos'
github_project_createrepo__timer_enabled: true
github_project_createrepo__webserver_user: 'nginx'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich