Version information
released Apr 25th 2017
This version is compatible with:
- , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'eyp-bash', '0.1.12'
Learn more about managing modules with a PuppetfileDocumentation
eyp/bash — version 0.1.12 Apr 25th 2017
bash
Table of Contents
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
CHANGELOG
0.1.12
- bugfix: allow empty umask.sh
0.1.11
- added bash::umask
0.1.10
- changed header priority for bash::environment and bash::alias
0.1.9
- added order variable to bash::environment and bash::alias
0.1.8
- added bash::environment to be able to add environment variables
0.1.7
- added bash::prompt to be able to change user's prompt
Dependencies
- puppetlabs/stdlib (>= 1.0.0)
- puppetlabs/concat (>= 1.2.3)