Duologic.packagecloud
packagecloud.io Ansible Role
Overview
This role allows you to easily add packagecloud.io repositories to your RedHat and Debian systems using Ansible.
Note: This is a basic role that covers common scenarios and may not be very robust. We plan to develop a full Ansible module in the future.
Role Configuration
repository
- The user and repository address on packagecloud.io, for example,computology/packagecloud-test-packages
.master_token
(optional) - A valid master token for this repository, needed only for private repositories. It uses youransible_nodename
to generate a read token using our API for repository setup.os
- The operating system to use in the repository setup, according to packagecloud terms. For example,el
for Enterprise Linux orubuntu
.version
- The version of the operating system for repository setup, using packagecloud terms. For example,5
ortrusty
.legacy_gpg
- (Debian only) This is set toundefined
by default. Change this value to use the old packagecloud.io GPG key. NOTE: Only use this for repositories that haven't switched to their own unique GPG key. Check our blog post for more information.
Example
- { role: packagecloud, repository: capotej/apt-cacher-ng, os: ubuntu, version: trusty }
- { role: packagecloud, repository: capotej/apt-cacher-ng, os: ubuntu, version: trusty, legacy_gpg: true }
- { role: packagecloud, repository: corp/private-repo, os: centos, version: 6, master_token: "{{ encrypted_master_token_from_vault }}" }
Running Tests / Development
molecule test
Note: Make sure Docker is running and available.
TODO
- Add support for CentOS 5
- Handle situations where
pygpgme
cannot be installed
License
The MIT License (MIT)
Copyright (c) 2018 Computology, LLC
You are allowed to use this software freely, including copying, modifying, merging, publishing, distributing, sublicensing, and selling it, as long as you include the copyright notice and this permission notice in all copies or significant parts of the software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED. The authors will not be liable for any claims, damages, or other liabilities arising from the use of this software.
ansible-galaxy install Duologic.packagecloud