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