manages some bash dfault settings
Manages the following default settings:
- HISTTIMEFORMAT
- HISTFILESIZE
- HISTSIZE
- HISTCONTROL
Manages /bin/sh to point to /bin/bash
- bash default settings: /etc/profile.d/history.sh
- manages default shell: /bin/sh
This module requires pluginsync enabled
class { 'bash': }
It is able to create global aliases:
bash::alias { 'sl':
command => "ls",
}
and per user alises:
bash::alias { 'sl':
command => "ls",
user => 'jordi',
}
- 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)
- aliasname: (default: resource's name)
- command: command to aliase
- user: optional, apply this alias just to a given user (default: undef)
Should work anywhere, tested on:
- CentOS 5
- CentOS 6
- CentOS 7
- Ubuntu 14.04
- SLES 11 SP3
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
- 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