summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1c66ee7)
This patch sets the hostname in the suts by command line
instead of using the cloud-init hostname module
This fix works for both the newest Centos 7.4-1708 and the older
Centos version in version 1.4
This patch should be merged separately from the patch
updating the Centos listmaker image to 7.4-1711.
Change-Id: Ie9f476ec82356fbd35077b74c55dd1a78e60248f
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
<extensions>
<entry key="config" type="String">#cloud-config
hostname: tg1
<extensions>
<entry key="config" type="String">#cloud-config
hostname: tg1
nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
nfs_server_common: $$NFS_SERVER_COMMON$$
runcmd:
nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
nfs_server_common: $$NFS_SERVER_COMMON$$
runcmd:
+- hostnamectl set-hostname tg1
- systemctl start rc-local
- touch /tmp/before-sed
- sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
- systemctl start rc-local
- touch /tmp/before-sed
- sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
<extensions>
<entry key="config" type="string">#cloud-config
hostname: sut1
<extensions>
<entry key="config" type="string">#cloud-config
hostname: sut1
nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
nfs_server_common: $$NFS_SERVER_COMMON$$
runcmd:
nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
nfs_server_common: $$NFS_SERVER_COMMON$$
runcmd:
+- hostnamectl set-hostname sut1
- systemctl start rc-local
- sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
- sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
- systemctl start rc-local
- sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
- sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
<extensions>
<entry key="config" type="string">#cloud-config
hostname: sut2
<extensions>
<entry key="config" type="string">#cloud-config
hostname: sut2
nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
nfs_server_common: $$NFS_SERVER_COMMON$$
runcmd:
nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
nfs_server_common: $$NFS_SERVER_COMMON$$
runcmd:
+- hostnamectl set-hostname sut2
- systemctl start rc-local
- sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
- sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
- systemctl start rc-local
- sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
- sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config