Forge Home

flatpak

Module for installing and managing Flatpak packages

10,054 downloads

1,660 latest version

4.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.6 (latest)
  • 0.2.5
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.1
  • 0.1.0
released Sep 11th 2017
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'brwyatt-flatpak', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add brwyatt-flatpak
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install brwyatt-flatpak --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

brwyatt/flatpak — version 0.1.0 Sep 11th 2017

flatpak

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 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 adds the Flatpak PPA on Launchpad to the system's repository and installs Flatpak.

Setup Requirements

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

This module requires the puppetlabs-apt module in order to manage Apt repos.

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:

  • package_ensure: Ensure value for the Flatpak package. Default: 'installed'

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:

  • ensure: If the package should be present (or installed) or absent (or uninstalled)
  • ref: (namevar) The name of the package reference to be installed (or removed)
  • remote: The name of the remote repo to install the package from

flatpak_remote

This type adds and removes Flatpak remotes.

Parameters:

  • ensure: If the remote should be present or absent
  • name: (namevar) The name of the remote
  • location: The location for the remote
  • from: if true, it specifies that location is a repo config file.

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.