A Puppet module to manage the files used by BashRC
A basic example is as follows:
include ::bashrc
You can also use natively Hiera :
include ::bashrc
bashrc::aliases:
- 'sayhello="echo Bonjour"'
bashrc::users:
- username: 'root'
homedirectory: '/root'
managelocalbashrc: true
- username: 'myotherusername'
homedirectory: '/home/myotherusername'
managelocalbashrc: true
If you use Hiera and you want to use the hierarchy using this Puppet syntax :
class { '::bashrc':
aliases => hiera_array('bashrc::aliases'),
users => hiera_array('bashrc::users'),
extensions => hiera_array('bashrc::extensions'),
}
In this way, you can merge (with hiera_array
) the parameters
A class for managing the bashrc configuration files
aliases
bashrcdirectory
bashrcd_puppet_filename
etcbashfile
extensions
grep_color_value
maildirectory
manage_custom_bashrc
manage_etc_file
manage_skeltons
profileddirectory
ps1_colored
ps1_default
ps1_screen
selected_pager
selected_editor
selected_editor_path
skeldirectory
template_etc_bashrc
template_etc_profile
users
history_control
history_size
history_file_size
history_time_format
This module has only been tested on my Debian and Centos servers. I can not guarantee for any other Operating System
You are pleased to fork this module and adapt it for you needs. I am open to any Pull Request :-)
Thanks to contributors : lvicainne, beckonconn, markruys