Forge Home


Install and manage the snapd service for installing and managing snap packages.


37,195 latest version

5.0 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

  • 1.4.0 (latest)
  • 1.3.0
  • 1.2.0
released May 29th 2021
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.0.0 < 6.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'ethanhs-snapd', '1.4.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ethanhs-snapd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ethanhs-snapd --version 1.4.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.



ethanhs/snapd — version 1.4.0 May 29th 2021


Table of Contents

  1. Description
  2. Setup - The basics of getting started with snapd
  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


This module manages the snapd package and service. snapd is a tool that enables the installation of snap packages on a Linux system.

See the official website for more detailed information.


What snapd affects

This module currently manages the following items:

  • The snapd package.
  • The snapd service.


To use this module simply include it:

class { 'snapd': }


include ::snapd

Install packages using the package provider

package { ['phpstorm', 'atom']:
  ensure   => latest,
  provider => snap,

package { 'spotify':
  ensure   => purged,
  provider => snap,

Unsupported Operating Systems

If your OS is not listed in Limitations it may still work regardless.

Debian Sid for example should work without any changes.



This is the main class. Currently it has no configurable items.


Supported Operating Systems:

  • Debian 9 & 10
  • Ubuntu 16.04, 18.04, & 20.04
  • Fedora 34 & 33

Supported Puppet Versions:

  • Puppet Enterprise >= 2015.2
  • Puppet Open Source >= 4.0.0


We provide a basic package provider which allows installs, install options, and removes, we will need to add latest,query and update support in the future.


To contribute to the development of this module please raise a pull request.

Particular help is currently highly desired particularly on the following items:

  • Package provider query,latest and update functionality
  • Support for more Operating Systems.
  • More testing.