aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorThomas F Herbert <therbert@redhat.com>2018-01-11 08:55:56 -0500
committerPeter Mikus <pmikus@cisco.com>2018-01-13 17:01:34 +0000
commit0f7f596ee0655bba26475c28654e4ffdc8c1e536 (patch)
tree58a5eafd35f446aac841112c49678b71310574a3 /resources
parenta5d662692e39fc508ee578d637ff811a070a1494 (diff)
Fix hostname setting for Centos.
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> (cherry picked from commit 86186044368819d66b68732d3e28876e7fcf3561)
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/virl/topologies/double-ring-nested.centos7.virl9
1 files changed, 6 insertions, 3 deletions
diff --git a/resources/tools/virl/topologies/double-ring-nested.centos7.virl b/resources/tools/virl/topologies/double-ring-nested.centos7.virl
index e5f6d5c2ca..218851e449 100644
--- a/resources/tools/virl/topologies/double-ring-nested.centos7.virl
+++ b/resources/tools/virl/topologies/double-ring-nested.centos7.virl
@@ -7,10 +7,11 @@
<extensions>
<entry key="config" type="String">#cloud-config
hostname: tg1
-manage_etc_hosts: true
+manage_etc_hosts: false
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
@@ -85,10 +86,11 @@ write_files:
<extensions>
<entry key="config" type="string">#cloud-config
hostname: sut1
-manage_etc_hosts: true
+manage_etc_hosts: false
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
@@ -189,10 +191,11 @@ write_files:
<extensions>
<entry key="config" type="string">#cloud-config
hostname: sut2
-manage_etc_hosts: true
+manage_etc_hosts: false
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