Puppet Class: fish

Inherits:
::fish::params
Defined in:
manifests/init.pp

Overview

fish - Used for installation and configuration of fish (fishshell.com/)

Examples:

include fish
class { 'fish':
  manage_repo    => false,
  package_name   => 'fish-custombuild',
}

Parameters:

  • manage_package (Boolean) (defaults to: $::fish::params::manage_package)

    Whether to manage the fish package

  • manage_repo (Boolean) (defaults to: $::fish::params::manage_repo)

    Whether to manage the package repositroy

  • package_name (String) (defaults to: $::fish::params::package_name)

    Name of the fish package

  • package_version (String) (defaults to: $::fish::params::package_version)

    Version of the fish package to install

Author:

  • Peter Souter



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'manifests/init.pp', line 23

class fish (
  $manage_package   = $::fish::params::manage_package,
  $manage_repo      = $::fish::params::manage_repo,
  $package_name     = $::fish::params::package_name,
  $package_version  = $::fish::params::package_version,
) inherits ::fish::params {

  # validate parameters here
  validate_bool($manage_package)
  validate_bool($manage_repo)

  validate_string($package_name)
  validate_string($package_version)

  class { '::fish::repo': } ->
  class { '::fish::install': } ->
  Class['::fish']

  # Update packages on repo refresh
  Class['::fish::repo'] ~>
  Class['::fish::install']
}