rdu3: set root prompt for rdu3

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2025-05-21 15:40:04 -07:00
parent e4e4e305de
commit b9518cd6cd
2 changed files with 19 additions and 1 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

@ -577,7 +577,7 @@
owner=root
group=root
mode=0644
when: env == 'production' and datacenter != 'iad2'
when: env == 'production' and ( datacenter != 'iad2' or datacenter != 'rdu3' )
tags:
- base
- config
@ -598,6 +598,21 @@
- config
- prompt
# Set PS1 to show prod-rdu3 environment at PS1
#
- name: Set PS1 for prod rdu3 in /etc/profile.d
ansible.builtin.copy: >
src=setprodrdu3ps1.sh
dest="/etc/profile.d/setprodrud3ps1.sh"
owner=root
group=root
mode=0644
when: env == 'production' and datacenter == 'rdu3'
tags:
- base
- config
- prompt
# Set krb5 conf
- name: Configure krb5
ansible.builtin.template: src=krb5.conf.j2 dest=/etc/krb5.conf owner=root group=root mode=0644