rdu3: set root prompt for rdu3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
e4e4e305de
commit
b9518cd6cd
2 changed files with 19 additions and 1 deletions
3
roles/base/files/setprodrdu3ps1.sh
Normal file
3
roles/base/files/setprodrdu3ps1.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Set PS1 based on env
|
||||
#
|
||||
[[ $- =~ i ]] && PS1="[\u@\h \W]\[$(tput setaf 3)\][PROD-IAD2]\[$(tput sgr0)\]\\$ \[\]"
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue