Merge "Setup bash history to contain standard timestamps (RFC3339)"

This commit is contained in:
Zuul 2018-02-28 19:21:02 +00:00 committed by Gerrit Code Review
commit 865ef69ca0
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
export HISTTIMEFORMAT="%Y-%m-%dT%T%z "

View File

@ -248,6 +248,15 @@ class openstack_project::server (
ensure => absent,
}
# Setup RFC3339 bash history timestamps
file { '/etc/profile.d/bash-history.sh':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/openstack_project/bash-history.sh',
}
if $::osfamily == 'Debian' {
# Ubuntu installs their whoopsie package by default, but it eats through
# memory and we don't need it on servers