bash

limited bash properties, manages default shell (/bin/sh)

jordi prats

eyp

5,466 downloads

5,466 latest version

4.6 quality score

Version information

  • 0.1.12 (latest)
released Apr 25th 2017
This version is compatible with:
  • RedHat
    ,
    CentOS
    ,
    Scientific
    ,
    OEL
    ,
    Debian
    ,
    Ubuntu
    ,
    SLES

Start using this module

Documentation

eyp/bash — version 0.1.12 Apr 25th 2017

bash

NTTCom-MS/eyp-bash: Build Status

Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Reference
  6. Limitations
  7. Development

Overview

manages some bash dfault settings

Module Description

Manages the following default settings:

  • HISTTIMEFORMAT
  • HISTFILESIZE
  • HISTSIZE
  • HISTCONTROL

Manages /bin/sh to point to /bin/bash

Setup

What bash affects

  • bash default settings: /etc/profile.d/history.sh
  • manages default shell: /bin/sh

Setup Requirements

This module requires pluginsync enabled

Beginning with bash

class { 'bash': }

Usage

It is able to create global aliases:

bash::alias { 'sl':
  command => "ls",
}

and per user alises:

bash::alias { 'sl':
  command => "ls",
  user => 'jordi',
}

Reference

classes

bash

  • default_sh: Manage default shell (/bin/sh) default: true
  • histtimeformat: (default: '%d%m%y %H%M%S -> ')
  • histfilesize: (default: 1000000)
  • histsize: (default: 1000000)
  • histcontrol: (default: ignoredups)

defines

bash::alias

  • aliasname: (default: resource's name)
  • command: command to aliase
  • user: optional, apply this alias just to a given user (default: undef)

Limitations

Should work anywhere, tested on:

  • CentOS 5
  • CentOS 6
  • CentOS 7
  • Ubuntu 14.04
  • SLES 11 SP3

Development

We are pushing to have acceptance testing in place, so any new feature should have some test to check both presence and absence of any feature

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request