File tree 9 files changed +35
-17
lines changed
9 files changed +35
-17
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ sudo yum -y install epel-release
13
13
sudo yum -y install curl vim-enhanced wget python-pip patch psmisc figlet golang
14
14
sudo yum -y install https://dprince.fedorapeople.org/tmate-2.2.1-1.el7.centos.x86_64.rpm
15
15
16
- sudo pip install lolcat
17
-
18
16
# for tripleo-repos install:
19
17
sudo yum -y install python-setuptools python-requests
20
18
@@ -38,7 +36,7 @@ sudo tripleo-repos current-tripleo
38
36
39
37
TRIPLEO_A=${TRIPLEO_VERSION: 0: 2}
40
38
TRIPLEO_B=${TRIPLEO_VERSION: 2: 2}
41
- echo Pinned to tripleo version $TRIPLEO_A /$TRIPLEO_B /$TRIPLEO_VERSION | lolcat
39
+ echo Pinned to tripleo version $TRIPLEO_A /$TRIPLEO_B /$TRIPLEO_VERSION | highlight
42
40
sudo sed -i -e
" {[email protected] /centos7/.*@trunk.rdoproject.org/centos7/$TRIPLEO_A /$TRIPLEO_B /$TRIPLEO_VERSION @}" /etc/yum.repos.d/delorean.repo
43
41
44
42
sudo yum -y update
63
61
64
62
# Set hostname properly.
65
63
HOSTNAME=` host $LOCAL_IP | cut -f 5 -d ' ' | sed s/.$//`
66
- echo $HOSTNAME | lolcat
64
+ echo $HOSTNAME | highlight
67
65
sudo hostnamectl set-hostname $HOSTNAME
68
66
69
67
# We need this before tripleo now because octavia expects keys.
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ parameter_defaults:
50
50
$PARAMETERS_EXTRA
51
51
EOF_CAT
52
52
53
- lolcat $SCRIPTDIR /standalone_parameters.yaml
53
+ highlight $SCRIPTDIR /standalone_parameters.yaml
54
54
55
55
sudo openstack tripleo deploy \
56
56
--templates $SCRIPTDIR /tripleo-heat-templates \
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ source common.sh
6
6
# NOTE: this is the openstack admin section
7
7
export OS_CLOUD=standalone
8
8
9
- openstack endpoint list | lolcat
9
+ openstack endpoint list | highlight
10
10
11
11
if ! openstack flavor show tiny; then
12
12
openstack flavor create --ram 1024 --disk 10 --vcpu 2 --public tiny
@@ -54,10 +54,10 @@ if ! openstack image show amphora-image; then
54
54
fi
55
55
56
56
HOST_LOCALDOMAIN=` hostname -A | sed ' s/ /\n/g' | grep localdomain`
57
- echo $HOST_LOCALDOMAIN | lolcat
57
+ echo $HOST_LOCALDOMAIN | highlight
58
58
neutron port-update --binding:host_id=$HOST_LOCALDOMAIN $( openstack port list -c ID -c Name | grep health | cut -f2 -d " " )
59
59
60
- echo To test: openstack loadbalancer create --vip-subnet-id public-subnet --name lb1 | lolcat
60
+ echo To test: openstack loadbalancer create --vip-subnet-id public-subnet --name lb1 | highlight
61
61
62
62
# Create a user without any admin priviledges
63
63
if ! openstack project show openshift; then
@@ -121,7 +121,7 @@ Host $NETWORK.*
121
121
EOF
122
122
fi
123
123
124
- lolcat << EOF
124
+ highlight << EOF
125
125
Undercloud installed and configured. To test:
126
126
127
127
export OS_CLOUD=openshift
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ set -ex
4
4
source common.sh
5
5
6
6
eval " $( go env) "
7
- echo " $GOPATH " | lolcat # should print $HOME/go or something like that
7
+ echo " $GOPATH " | highlight # should print $HOME/go or something like that
8
8
9
9
function sync_go_repo_and_patch {
10
10
DEST=" $GOPATH /src/$1 "
11
- figlet " Syncing $1 " | lolcat
11
+ figlet " Syncing $1 " | highlight
12
12
13
13
if [ ! -d $DEST ]; then
14
14
mkdir -p $DEST
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ set -ex
4
4
5
5
source common.sh
6
6
7
- figlet " Building the Installer" | lolcat
7
+ figlet " Building the Installer" | highlight
8
8
9
9
eval " $( go env) "
10
- echo " $GOPATH " | lolcat # should print $HOME/go or something like that
10
+ echo " $GOPATH " | highlight # should print $HOME/go or something like that
11
11
12
12
pushd " $GOPATH /src/github.com/openshift/installer"
13
13
export MODE=dev
Original file line number Diff line number Diff line change 5
5
source common.sh
6
6
7
7
eval " $( go env) "
8
- echo " $GOPATH " | lolcat
8
+ echo " $GOPATH " | highlight
9
9
10
10
11
11
pushd " $GOPATH /src/github.com/openshift/ci-operator"
Original file line number Diff line number Diff line change @@ -30,3 +30,23 @@ export OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE="registry.svc.ci.openshift.org/o
30
30
# You can get the latest hash here:
31
31
# https://trunk.rdoproject.org/centos7/current-tripleo/commit.yaml
32
32
TRIPLEO_VERSION=' 25698ebfff692178450478b5207b09ca99d277b2_aba8ec54'
33
+
34
+ # Use some color to highlight actionable output
35
+ highlight () {
36
+ set +x
37
+
38
+ local IFS
39
+ local set_bold
40
+ local reset
41
+
42
+ set_bold=" $( tput setaf 3) $( tput bold) "
43
+ reset=" $( tput sgr0) "
44
+
45
+ set -- " ${1:-/ dev/ stdin} " " ${@: 2} "
46
+
47
+ for f in " $@ " ; do
48
+ while read -r line; do
49
+ printf " %s%s%s\n" " $set_bold " " $line " " $reset "
50
+ done < " $f "
51
+ done
52
+ }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ source common.sh
12
12
13
13
LB_FLOATING_IP=$( openstack server show ${CLUSTER_NAME} -api -f value -c addresses | cut -d " " -f 2)
14
14
15
- echo " Attempting to expose cluster's API on floating IP: ${LB_FLOATING_IP} " | lolcat
15
+ echo " Attempting to expose cluster's API on floating IP: ${LB_FLOATING_IP} " | highlight
16
16
17
17
if ! grep -q ${LB_FLOATING_IP} /etc/hosts ; then
18
18
(echo " ${LB_FLOATING_IP} api.${CLUSTER_NAME} .shiftstack.com" && grep -v " api.${CLUSTER_NAME} .shiftstack.com" /etc/hosts) | sudo tee /etc/hosts
Original file line number Diff line number Diff line change 5
5
source common.sh
6
6
7
7
eval " $( go env) "
8
- echo " $GOPATH " | lolcat
8
+ echo " $GOPATH " | highlight
9
9
10
10
if [ " $( cat /proc/sys/user/max_user_namespaces) " = " 0" ]; then
11
11
echo 10000 | sudo tee /proc/sys/user/max_user_namespaces
@@ -17,7 +17,7 @@ if ! grep -q $USER /etc/subgid ; then
17
17
echo $USER :10000:65536 | sudo tee -a /etc/subgid
18
18
fi
19
19
20
- figlet " Run docker registry" | lolcat
20
+ figlet " Run docker registry" | highlight
21
21
22
22
OVERRIDE_IMAGES=" "
23
23
sudo podman rm -f registry || true
You can’t perform that action at this time.
0 commit comments