inuits/puppet-bash

Name: puppet-bash

Owner: Inuits

Description: A puppet module to manage bash PS1

Created: 2015-08-06 20:32:13.0

Updated: 2015-08-06 20:32:14.0

Pushed: 2015-08-06 20:36:59.0

Homepage: null

Size: 100

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Puppet module to manage PS1 prompt

The initial goal of this module is to manage PS1 prompt of bash shell, in order to change the hostname by the FQDN.

How it works

This module adds a '/etc/profile.d/PS1.sh' script wich contains the right PS1.

Supported platforms
Problems

\H in the PS1 prompt prints the hostname instead of the FQDN on some hosts. This is due to /etc/hostname or /etc/sysconfig/network configuration.

We use $::fqdn instead.

Tricks about Debian

The PS1 is defined inside each user's bashrc. I don't want to overwrite the bashrc in the skeleton directory, so until I find a beter solution, the FQDN is printed only for the root user.

Usage
s{
ash':
show_fqdn => true,


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.