brwyatt / puppet-flatpak

Puppet module for installing and managing Flatpak packages
https://forge.puppet.com/brwyatt/flatpak
GNU Lesser General Public License v3.0
6 stars 10 forks source link

flatpak

Build Status

GitHub license GitHub issues GitHub forks GitHub stars

Puppet Forge Puppet Forge - downloads Puppet Forge - scores

Table of Contents

  1. Description
  2. Setup - The basics of getting started with flatpak
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module
  7. Contributors - List of those who've helped to make the module better

Description

This module (optionally) installs Flatpak from the developer's PPA on Launchpad and offers two defined types, one for adding/removing Remotes and another for installing/removing Flatpak applications.

This module was created to allow for managing/installing Flatpak-based application distributions, as some developers have started to move away from more traditional system packages such as apt/deb and rpm/yum, instead leveraging Flatpak's ability to be one-size-fits all.

Setup

What flatpak affects

This module (optionally) adds the Flatpak PPA on Launchpad to the system's repository (if manage_repo is true - default for Debian family) and installs Flatpak.

Setup Requirements

Currently, this module only supports Ubuntu and RedHat, but may work with other Debian- based or RedHat-based distributions.

This module requires the puppetlabs-apt module in order to manage Apt repos (if manage_repo is true).

Beginning with flatpak

To install this module, call:

puppet module install brwyatt-flatpak

Usage

To install Flatpak for use in your Puppet manifests, simply include it into your manifests.

include ::flatpak

Reference

Classes

flatpak

Installs the Flatpak PPA and installs Flatpak

Parameters:

flatpak::remotes::gnome

Adds the Gnome SDK remote to Flatpak. Includes the flatpak class to ensure Flatpak is installed first.

This class has no parameters.

Defined Types

flatpak

This type installs (or uninstalls) Flatpak apps.

Parameters:

If defined, this type will install the package identified in the ref parameter. Otherwise, it will attempt to generate an Identifier Triple from the values of name/arch/branch. If no parameters are explicitly defined, this will result in attempting to install the package with the resource's name and the remote's default architecture and branch.

flatpak_remote

This type adds and removes Flatpak remotes.

Parameters:

Providers

flatpak

Implements the flatpak type. Default provider.

flatpak_remote

Implements the flatpak_remote type. Default provider.

Limitations

Currently, this module can only install on Debian-based systems and has not been tested on distributions other than Ubuntu 16.04. It may or may not work on other Debian-based distributions, but makes no claims regarding such. This will not currently work at all on RHEL-based systems.

Development

Feel free to file issues in the GitHub issue tracker for the repository, or submit Pull Requests.

I may not have much time to work on (or test) this myself, so help to expand current functionality (especially to make it work for more people) is greatly appreciated and encouraged.

Contributors

The list of contributors can be found at: https://github.com/brwyatt/puppet-flatpak/graphs/contributors.