Skip to content

Commit

Permalink
setup custom bash prompts for the client machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory McCune committed Sep 20, 2019
1 parent 489ac3c commit 03f919e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
21 changes: 21 additions & 0 deletions client-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,24 @@
docker_container:
name: client
image: raesene/alpine-containertools
- name: add the host
add_host: name=client

- name: install Python in the cluster
hosts: client
connection: docker
gather_facts: no

tasks:
- name: Install Python
raw: apk update && apk add python

- name: Configure the demo client
hosts: client
connection: docker

tasks:
- name: Set the bash prompt
copy:
src: client_files/clientbashrc
dest: /root/.bashrc
1 change: 1 addition & 0 deletions client_files/clientbashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PS1="lab-client> "
1 change: 1 addition & 0 deletions client_files/democlientbashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PS1="demo-client> "
7 changes: 6 additions & 1 deletion demo-client-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
- name: Copy the Kubeconfig file
copy:
src: /tmp/demo-kubernetes-admin.conf
dest: /root/.kube/config
dest: /root/.kube/config

- name: Set the bash prompt
copy:
src: client_files/democlientbashrc
dest: /root/.bashrc



Expand Down

0 comments on commit 03f919e

Please sign in to comment.