소스 검색

FQDN is the same as minion ID. Save DNS lookup.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 년 전
부모
커밋
9b10e41867
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bash/bashrc.root

+ 1 - 1
bash/bashrc.root

@@ -2,7 +2,7 @@
 
 # Note: PS1 and umask are already set in /etc/profile. You should not
 # need this unless you want different defaults for root.
-fqdn=$(hostname -f)
+fqdn="{{ grains['id'] }}"
 PS1='${debian_chroot:+($debian_chroot)}${fqdn}:\w\$ '
 # umask 022