Some post provision script testing
Pulling from https://terra.cde.services/postinstallscripttest.sh
#!/usr/bin/env bash
touch "$HOME/testing"
echo $(hostname -f) >> "$HOME/testing"
(softlayer) tycho ~VIRTUAL_ENV ◎ slcli --format raw vs list -D cde.services
42423927 ams03u14 159.8.220.123 10.136.96.23 ams03 NULL
42423929 dal13centos7 169.48.78.107 10.186.187.90 dal13 NULL
42423925 dal13u16 169.48.66.133 10.186.187.69 dal13 NULL
42423943 sjc04cent6 169.62.78.67 10.87.45.56 sjc04 NULL
42423931 wdc04deb7 169.63.74.141 10.65.30.79 wdc04 NULL
42423937 wdc07deb8 169.61.81.139 10.190.90.40 wdc07 NULL
ssh root@159.8.220.123
(normal log in messages here)
Last login: Tue Oct 24 14:38:15 2017 from 10.0.80.188
root@ams03u14:~# ls -la
total 28
drwx------ 4 root root 4096 Oct 24 14:39 .
drwxr-xr-x 22 root root 4096 Oct 24 14:39 ..
-rw-r--r-- 1 root root 3106 Feb 20 2014 .bashrc
drwx------ 2 root root 4096 Oct 24 14:38 .cache
-rwxr-xr-x 1 root root 83 Oct 24 14:13 post_install.yWKD
-rw-r--r-- 1 root root 140 Feb 20 2014 .profile
drwx------ 2 root root 4096 Oct 24 14:37 .ssh
root@ams03u14:~# uptime
14:49:26 up 10 min, 1 user, load average: 0.00, 0.01, 0.00
root@ams03u14:~# ls -l
total 4
-rwxr-xr-x 1 root root 83 Oct 24 14:13 post_install.yWKD
root@ams03u14:~# ./post_install.yWKD
root@ams03u14:~# ls -l
total 8
-rwxr-xr-x 1 root root 83 Oct 24 14:13 post_install.yWKD
-rw-r--r-- 1 root root 22 Oct 24 14:51 testing
root@ams03u14:~# cat testing
ams03u14.cde.services
(softlayer) tycho ~VIRTUAL_ENV ◎ ssh root@169.48.78.107
The authenticity of host '169.48.78.107 (169.48.78.107)' can't be established.
ECDSA key fingerprint is SHA256:b3T6MHcBRbQO2isneOFwV9+ZKJ9YaT8F4bcva4SktDQ.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '169.48.78.107' (ECDSA) to the list of known hosts.
Last failed login: Tue Oct 24 09:55:28 CDT 2017 from 212.83.163.198 on ssh:notty
There were 7 failed login attempts since the last successful login.
[root@dal13centos7 ~]# ls -l
total 4
-rwxr--r--. 1 root root 83 Oct 24 09:13 post_install.nI1Y
[root@dal13centos7 ~]# uptime
09:55:59 up 18 min, 1 user, load average: 0.00, 0.01, 0.05
[root@dal13centos7 ~]#
[root@dal13centos7 ~]# ls -l
total 8
-rwxr--r--. 1 root root 83 Oct 24 09:13 post_install.nI1Y
-rw-r--r--. 1 root root 26 Oct 24 10:08 testing
[root@dal13centos7 ~]# cat testing
dal13centos7.cde.services
$ ssh root@169.48.66.133
The authenticity of host '169.48.66.133 (169.48.66.133)' can't be established.
ECDSA key fingerprint is SHA256:cN7fE3+PeJi5fbN5MvfOcj0eTMhuyJp5lpJN/xEL0zQ.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '169.48.66.133' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-89-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
0 packages can be updated.
0 updates are security updates.
Last login: Tue Oct 24 14:39:34 2017 from 10.0.80.188
root@dal13u16:~# uptime
15:08:50 up 28 min, 1 user, load average: 0.00, 0.00, 0.00
root@dal13u16:~# ls -l
total 4
-rwxr-xr-x 1 root root 83 Oct 24 14:13 post_install.SwnR
root@dal13u16:~#
root@dal13u16:~# ./post_install.SwnR
root@dal13u16:~# ls -l
total 8
-rwxr-xr-x 1 root root 83 Oct 24 14:13 post_install.SwnR
-rw-r--r-- 1 root root 22 Oct 24 15:09 testing
root@dal13u16:~# cat testing
dal13u16.cde.services
$ ssh root@169.62.78.67
The authenticity of host '169.62.78.67 (169.62.78.67)' can't be established.
RSA key fingerprint is SHA256:zlO30nj1YKo9SY0wpETGpKqPFd4xbbM5vJ1pxharCtg.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '169.62.78.67' (RSA) to the list of known hosts.
[root@sjc04cent6 ~]# ls -l
total 4
-rwxr--r--. 1 root root 83 Oct 24 09:13 post_install.DPYG
[root@sjc04cent6 ~]# uptime
10:10:39 up 32 min, 1 user, load average: 0.14, 0.14, 0.06
[root@sjc04cent6 ~]# ./post_install.DPYG
[root@sjc04cent6 ~]# ls -l
total 8
-rwxr--r--. 1 root root 83 Oct 24 09:13 post_install.DPYG
-rw-r--r--. 1 root root 24 Oct 24 10:10 testing
[root@sjc04cent6 ~]# cat testing
sjc04cent6.cde.services
$ ssh root@169.63.74.141
The authenticity of host '169.63.74.141 (169.63.74.141)' can't be established.
ECDSA key fingerprint is SHA256:d5jHf7/78qNl015myApnQeHdYlryZIVDDqRTUJKRydw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '169.63.74.141' (ECDSA) to the list of known hosts.
Linux wdc04deb7.cde.services 3.2.0-4-amd64 #1 SMP Debian 3.2.88-1 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@wdc04deb7:~# ls -l
total 4
-rwxr--r-- 1 root root 83 Oct 24 09:13 post_install.q2ja
root@wdc04deb7:~# uptime
10:11:51 up 32 min, 1 user, load average: 0.00, 0.00, 0.00
root@wdc04deb7:~# ./post_install.q2ja
root@wdc04deb7:~# ls -l
total 8
-rwxr--r-- 1 root root 83 Oct 24 09:13 post_install.q2ja
-rw-r--r-- 1 root root 23 Oct 24 10:11 testing
root@wdc04deb7:~# cat testing
wdc04deb7.cde.services
ssh root@169.61.81.139
The authenticity of host '169.61.81.139 (169.61.81.139)' can't be established.
ECDSA key fingerprint is SHA256:bPnWVpUI8+rzMHz17mrjZ503j3VnajfU0uMoslZSHig.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '169.61.81.139' (ECDSA) to the list of known hosts.
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@wdc07deb8:~# ls -l
total 4
-rwxr--r-- 1 root root 83 Oct 24 09:13 post_install.cu3w
root@wdc07deb8:~# uptime
10:13:21 up 36 min, 1 user, load average: 0.00, 0.00, 0.00
root@wdc07deb8:~# ./post_install.cu3w
root@wdc07deb8:~# ls -l
total 12
-rwxr--r-- 1 root root 83 Oct 24 09:13 post_install.cu3w
-rw-r--r-- 1 root root 23 Oct 24 10:15 testing
root@wdc07deb8:~# cat testing
wdc07deb8.cde.services