Forge Home

bash

Manage BASH via puppet.

11,460 downloads

3,822 latest version

5.0 quality score

Version information

  • 1.1.2 (latest)
  • 1.1.1 (deleted)
  • 1.1.0 (deleted)
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Jan 18th 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.0.0 < 7.0.0
  • ArchLinux, CentOS, Debian, OracleLinux, RedHat, Ubuntu

Start using this module

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

Add this module to your Puppetfile:

mod 'zanloy-bash', '1.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add zanloy-bash
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install zanloy-bash --version 1.1.2

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

zanloy/bash — version 1.1.2 Jan 18th 2019

puppet-bash

Build Status

Manage BASH via puppet.

Bash is the GNU Project's shell. Bash is the Bourne Again SHell. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification.

Usage

Install bash with default values

class { '::bash': }

Install bash with vi-mode keybinds

class { '::bash':
  vi_mode => true,
}

Class parameters

  • package
    • Default: os-specific
    • Description: Package name of bash to install
  • bashrc
    • Default: os-specific
    • Description: The path for system bashrc
  • bashrcd
    • Default: '/etc/bashrc.d'
    • Description: The path for the dynamic bashrc directory
  • bashrcd_purge
    • Allowed values: [true, false]
    • Default: true
    • Description: Whether the module should purge unmanaged files in bashrc.d
  • environment
    • Default: ''
    • Description: The environment for the node. If set to 'production' then the bash prompt uses red colors to alert the user that they are in production.
  • trim_suffix
    • Default: ''
    • Description: The suffix to trim from the fqdn for the bash prompt.
    • Example: '.example.com' will create a prompt for db.dev.example.com that shows as [ user@db.dev ~ ]
  • vi_mode
    • Allowed valued: [true, false]
    • Description: Whether to use vi keybinds instead of emacs.
  • additional_lines
    • Default: []
    • Description: An array of lines to be added at the end of /etc/bashrc
    • Example: ['umask 022']