wolfspyre / puppet-bashrc

a puppet module to manage bashrc additions
2 stars 5 forks source link

Class: bashrc

Build Status

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with bashrc
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This class manages additions to bashrc system-wide. This facilitates a means to run a pre-defermined list of scripts which are fed data derived from puppet for all users on the system.

Currently implemented functionality:

Work-In-Progress functionality:

Setup

What bashrc affects

Setup Requirements

Beginning with bashrc

Usage

This module is intended to be a foundation which can accept other extensions. Each piece of functionality is enabled or disabled in topscope, which inherits its' parameter values from class topscope.

Each submodule has default values in bashrc::config.

bashrc::setup is reponsible for the alterations to /etc/bashrc and the creation of /etc/profile.d

bashrc::prompt is responsible for prompt customizations like enabling or disabling and changing the colorization, enabling git branch awareness and enhancements.

Hiera Example for example profile module

profile::bashrc::enable_git_completion:  true
profile::bashrc::enable_prompt_color:    true
profile::bashrc::enable_prompt_mods:     true
profile::bashrc::enable_svcstat:         true
profile::bashrc::prompt_git_color:       'cyan'
profile::bashrc::prompt_git_enable:      true
profile::bashrc::prompt_leftblock:       '\u'
profile::bashrc::prompt_primary_color:   'blue'
profile::bashrc::prompt_rightblock:      '\h \W'
profile::bashrc::prompt_secondary_color: 'green'
profile::bashrc::prompt_separator:       '@'
profile::bashrc::svcstat_hash:
  apache: {
    name:   'Apache',
    string: 'apache2'
  }

Parameters

Requirements

Reference

Limitations

Development

Wolf Noble wolf@wolfspyre.com

Contributions

Please fork this project, add your improvements, and submit a pull request. This way, we'll all get better tools

svcstat.py