Forge Home

squeezelite

Manage squeezelite via Puppet

10,000 downloads

9,738 latest version

3.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.1.1 (latest)
  • 0.1.0
released Jul 23rd 2014
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 'ub0r-squeezelite', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ub0r-squeezelite
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ub0r-squeezelite --version 0.1.1

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

ub0r/squeezelite — version 0.1.1 Jul 23rd 2014

squeezelite

Table of Contents

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

Overview

This module installs and manages the squeezelite package and service. It's tested on Debian and Ubuntu systems. Other distribution may need only minor changes for package names.

Setup

What squeezelite affects

This package will create three files:

  • /usr/local/bin/squeezelite
  • /etc/default/squeezelite
  • /etc/init.d/squeezelite

Beginning with squeezelite

include '::squeezelite' is enough to get started. If you wish to pass in parameters specifying the player name, then:

class { '::squeezelite':
  player_name => 'boooooooombox',
}

Usage

All interaction with the squeezelite module can be done with the main class.

Reference

Classes

Public classes

  • squeezelite: Main class, includes all other classes

Private classes

  • squeezelite::install: Handles package install.
  • squeezelite::config: Handles configuration and init file.
  • squeezelite::service: Handles the service.

###Parameters

##player_name

player name shown in logitech media server
optional, defaults to hostname

##soundcard

Set the soundcard
example: "sysdefault:CARD=ALSA"
optional

##mac_address

Change the mac address
Note: when left commented squeezelite will use the mac address of your ethernet card or wifi adapter, which is what you want. If you change it to something different, it will give problems is you use mysqueezebox.com.
optional

##server_ip

Change the IP address of your squeezebox server
optional

##auto_play

Start playing when starting the service
optional, defaults to false

##alsa_params

Set ALSA parameters
example: "80"
optional

##log_file

path to a log file
only useful in combination with log_level
optional

##log_level

example: "all=debug"
only useful in combination with log_file
optional

Limitations

This module has been build and tested agains Puppet 3.6 and higher.

The module has been tested on:

  • Debian 6/7
  • Ubuntu 14.04

Development

Just fork and send PR on github.