Table of Contents
- Setup - The basics of getting started with flatpak
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
- Contributors - List of those who've helped to make the module better
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.
What flatpak affects
This module adds the Flatpak PPA on Launchpad to the system's repository and installs Flatpak.
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
To install Flatpak for use in your Puppet manifests, simply include it into your manifests.
Installs the Flatpak PPA and installs Flatpak
package_ensure: Ensure value for the Flatpak package. Default: 'installed'
repo_file_name: Optional name for the repo source file. Defaults to the PPA naming scheme to avoid duplicate repository files.
Adds the Gnome SDK remote to Flatpak. Includes the
flatpak class to ensure
Flatpak is installed first.
This class has no parameters.
This type installs (or uninstalls) Flatpak apps.
ensure: If the package should be
arch: The package architecture to be installed. Cannot be used if
branch: The package branch to be installed. Cannot be used if
name: (namevar) The name of the package to be installed (or removed)
ref: The package ref to install. This can be any valid pakcage ref, from simply the package name up to a full Identifier Triple ("name/arch/branch"). Cannot be used if
remote: The name of the remote repo to install the package from. Required if
ensureis "installed" or "present".
If defined, this type will install the package identified in the
parameter. Otherwise, it will attempt to generate an Identifier Triple from
the values of
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.
This type adds and removes Flatpak remotes.
ensure: If the remote should be
name: (namevar) The name of the remote
location: The location for the remote
true, it specifies that location is a repo config file.
flatpak type. Default provider.
flatpak_remote type. Default provider.
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.
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.
The list of contributors can be found at: https://github.com/brwyatt/puppet-flatpak/graphs/contributors.