Merge "Setup bash history to contain standard timestamps (RFC3339)"
This commit is contained in:
commit
865ef69ca0
1
modules/openstack_project/files/bash-history.sh
Normal file
1
modules/openstack_project/files/bash-history.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
export HISTTIMEFORMAT="%Y-%m-%dT%T%z "
|
@ -248,6 +248,15 @@ class openstack_project::server (
|
|||||||
ensure => absent,
|
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' {
|
if $::osfamily == 'Debian' {
|
||||||
# Ubuntu installs their whoopsie package by default, but it eats through
|
# Ubuntu installs their whoopsie package by default, but it eats through
|
||||||
# memory and we don't need it on servers
|
# memory and we don't need it on servers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user