From ea134678341072d8fbcd1230486336edda27e16a Mon Sep 17 00:00:00 2001 From: Aaron Wilson Date: Wed, 22 Nov 2023 15:42:03 -0600 Subject: [PATCH] aisloader-composer: Update oci inventory, avoid using reserved variable name in playbooks Signed-off-by: Aaron Wilson --- .../aisloader-composer/install_docker.sh | 2 +- .../aisloader-composer/inventory/oci.yaml | 32 +++++++++---------- .../playbooks/install_docker.yaml | 2 +- .../playbooks/install_docker_centos.yaml | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/bench/tools/aisloader-composer/install_docker.sh b/bench/tools/aisloader-composer/install_docker.sh index 46b92d33564..ecdaf32d346 100755 --- a/bench/tools/aisloader-composer/install_docker.sh +++ b/bench/tools/aisloader-composer/install_docker.sh @@ -8,4 +8,4 @@ source common.sh PLAYBOOK=playbooks/install_docker.yaml HOST_GROUP=aisloader_hosts -run_ansible_playbook "$PLAYBOOK" "hosts=$HOST_GROUP" \ No newline at end of file +run_ansible_playbook "$PLAYBOOK" "docker_hosts=$HOST_GROUP" \ No newline at end of file diff --git a/bench/tools/aisloader-composer/inventory/oci.yaml b/bench/tools/aisloader-composer/inventory/oci.yaml index 0fa393e4e72..bd5bc12b7a0 100644 --- a/bench/tools/aisloader-composer/inventory/oci.yaml +++ b/bench/tools/aisloader-composer/inventory/oci.yaml @@ -1,26 +1,26 @@ # The hosts where the aisloader clients will run aisloader_hosts: hosts: - aisloader00: + aisloader1: + ansible_host: 10.51.140.6 + aisloader2: + ansible_host: 10.51.140.10 + aisloader3: + ansible_host: 10.51.140.9 + aisloader4: + ansible_host: 10.51.140.21 + aisloader5: ansible_host: 10.51.140.23 - aisloader01: + aisloader6: + ansible_host: 10.51.140.11 + aisloader7: + ansible_host: 10.51.140.24 + aisloader8: ansible_host: 10.51.140.28 - aisloader02: - ansible_host: 10.51.140.16 - aisloader03: - ansible_host: 10.51.140.21 - aisloader04: - ansible_host: 10.51.140.9 - aisloader05: + aisloader9: ansible_host: 10.51.140.15 - aisloader06: + aisloader10: ansible_host: 10.51.140.8 - aisloader07: - ansible_host: 10.51.140.20 - aisloader08: - ansible_host: 10.51.140.24 - aisloader09: - ansible_host: 10.51.140.17 target_hosts: hosts: diff --git a/bench/tools/aisloader-composer/playbooks/install_docker.yaml b/bench/tools/aisloader-composer/playbooks/install_docker.yaml index 7517ace1e59..9ea919ec72c 100644 --- a/bench/tools/aisloader-composer/playbooks/install_docker.yaml +++ b/bench/tools/aisloader-composer/playbooks/install_docker.yaml @@ -1,6 +1,6 @@ # Based on https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-docker-on-ubuntu-20-04 - name: Install docker on defined hosts - hosts: "{{ hosts }}" + hosts: "{{ docker_hosts }}" become: true gather_facts: no diff --git a/bench/tools/aisloader-composer/playbooks/install_docker_centos.yaml b/bench/tools/aisloader-composer/playbooks/install_docker_centos.yaml index 5b8add197c6..316b1233c37 100644 --- a/bench/tools/aisloader-composer/playbooks/install_docker_centos.yaml +++ b/bench/tools/aisloader-composer/playbooks/install_docker_centos.yaml @@ -1,5 +1,5 @@ - name: Install Docker on defined hosts - hosts: "{{ hosts }}" + hosts: "{{ docker_hosts }}" become: true gather_facts: no vars: