Forge Home

pi

Fruit Pi module

2,774 downloads

647 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.0.0 (latest)
  • 0.1.0
released Sep 16th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'lsst-pi', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add lsst-pi
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install lsst-pi --version 1.0.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

lsst/pi — version 1.0.0 Sep 16th 2024

Fruit Pi Management Module

Overview

Manages features specific to raspberrypi and related fruit flavored hardware.

/boot/cmdline.txt

puppet

class { 'pi::cmdline':
  reboot     => false,  # reboots are problematic for acceptance testing
  parameters => {
    'coherent_pool=1M'     => {},
    'bcm2708_fb.fbwidth=0' => {},
    'bcm2708_fb.fbswap=1'  => {},
  },
}

pi::cmdline::parameter { '8250.nr_uarts=0': }
pi::cmdline::parameter { 'coherent_pool=1M': }
pi::cmdline::parameter { 'snd_bcm2835.enable_headphones=0': }

hiera

pi::cmdline::reboot: false
pi::cmdline::parameters:
  coherent_pool=1M: {}
  bcm2708_fb.fbwidth=0: {}
  bcm2708_fb.fbswap=1: {}
  8250.nr_uarts=0: {}
  coherent_pool=1M: {}
  snd_bcm2835.enable_headphones=0: {}

/boot/config.txt

puppet

class { 'pi::config':
  reboot    => false,  # reboots are problematic for acceptance testing
  fragments => {
    'dtoverlay=pps-gpio,gpiopin=4' => {
      'order' => 99,
    },
    'dtparam=i2c_arm=on'           => {
      'order' => 1,
    },
    'dtparam=spi=on'               => {},
    'serial port'                  => {
      # lint:ignore:strict_indent
      'content' => @("CONTENT"),
        enable_uart=1
        init_uart_baud=9600
        | CONTENT
      # lint:endignore
    },
  },
}

pi::config::fragment { 'disable_overscan=1': }
pi::config::fragment { 'dtparam=audio=on':
  order => 1,
}
pi::config::fragment { 'hdmi_mode=1':
  order => 99,
}
pi::config::fragment { 'foo':
  content => "hdmi_safe=1\n",
}

hiera

pi::config::reboot: false
pi::config::fragments:
  dtoverlay=pps-gpio,gpiopin=4':
    order: 99
  dtparam=i2c_arm=on:
    order: 1
  dtparam=spi=on: {}
  'serial port':
    content: |
      enable_uart=1
      init_uart_baud=9600
  disable_overscan=1:  {}
  dtparam=audio=on:
    order: 1
  hdmi_mode=1:
    order: 99
  foo:
    content: "hdmi_safe=1\n"