iad2: set prompt in iad2 to avoid confusion

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-06 13:51:16 -07:00
parent 3749cf4a3b
commit 9b49971cae
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# Set PS1 based on env
#
[[ $- =~ i ]] && PS1="[\u@\h \W]\[$(tput setaf 3)\][PROD-IAD2]\[$(tput sgr0)\]\\$ \[\]"

View file

@ -496,6 +496,21 @@
- config
- prompt
#Set PS1 to show prod-iad2 environment at PS1
#
- name: set PS1 for prod in /etc/profile.d
copy: >
src=setprodiad2ps1.sh
dest="/etc/profile.d/setprodiad2ps1.sh"
owner=root
group=root
mode=0644
when: env == 'production' and datacenter == 'iad2'
tags:
- base
- config
- prompt
# Set krb5 conf
- name: configure krb5
template: src=krb5.conf.j2 dest=/etc/krb5.conf owner=root group=root mode=0644