diff --git a/ansible/inventory/group_vars/all/infra-vms b/ansible/inventory/group_vars/all/infra-vms index f5643aab1..848656e7c 100644 --- a/ansible/inventory/group_vars/all/infra-vms +++ b/ansible/inventory/group_vars/all/infra-vms @@ -224,7 +224,7 @@ infra_vm_users: "{{ users_default }}" infra_vm_containers: {} # Whether to attempt a basic authentication login to a registry when -# deploying Infrastructure VM node containers +# deploying infrastructure VM node containers infra_vm_manage_containers_registry_attempt_login: "{{ kolla_docker_registry_username is truthy and kolla_docker_registry_password is truthy }}" ############################################################################### diff --git a/dev/functions b/dev/functions index 547965730..4c0ebb47d 100644 --- a/dev/functions +++ b/dev/functions @@ -139,7 +139,7 @@ function config_init { function is_dnf { if [[ -e /etc/centos-release || -e /etc/rocky-release ]]; then - /usr/bin/which dnf >/dev/null 2>&1 + command -v dnf >/dev/null 2>&1 else return 1 fi @@ -147,7 +147,7 @@ function is_dnf { function is_yum { if [[ -e /etc/centos-release || -e /etc/rocky-release ]]; then - /usr/bin/which yum >/dev/null 2>&1 + command -v yum >/dev/null 2>&1 else return 1 fi diff --git a/etc/kayobe/ansible-control.yml b/etc/kayobe/ansible-control.yml index 5c3ca32cf..fb1b3fd66 100644 --- a/etc/kayobe/ansible-control.yml +++ b/etc/kayobe/ansible-control.yml @@ -95,7 +95,7 @@ # Dict of containers to deploy. # Example: -# seed_containers: +# ansible_control_containers: # squid: # image: "docker.io/stackhpc/squid" # pre: "{{ kayobe_env_config_path }}/containers/squid/pre.yml" diff --git a/etc/kayobe/infra-vms.yml b/etc/kayobe/infra-vms.yml index e8bc24ef0..806504de3 100644 --- a/etc/kayobe/infra-vms.yml +++ b/etc/kayobe/infra-vms.yml @@ -181,7 +181,7 @@ #infra_vm_containers: # Whether to attempt a basic authentication login to a registry when -# deploying controller containers +# deploying infrastructure VM node containers #infra_vm_manage_containers_registry_attempt_login: ############################################################################### diff --git a/playbooks/kayobe-ansible-control-host-configure-base/overrides.yml.j2 b/playbooks/kayobe-ansible-control-host-configure-base/overrides.yml.j2 index 34a2faef7..a5940cabd 100644 --- a/playbooks/kayobe-ansible-control-host-configure-base/overrides.yml.j2 +++ b/playbooks/kayobe-ansible-control-host-configure-base/overrides.yml.j2 @@ -266,8 +266,8 @@ ansible_control_fail2ban_enabled: true custom_etc_hosts_entries: foo.example.com: 127.0.0.88 -# Deploy a hello-world container. +# Deploy a test container. ansible_control_containers: - hello-world: - image: docker.io/library/hello-world - tag: latest \ No newline at end of file + node_exporter: + image: "quay.io/prometheus/node-exporter" + tag: "latest" diff --git a/playbooks/kayobe-overcloud-base/overrides.yml.j2 b/playbooks/kayobe-overcloud-base/overrides.yml.j2 index 913b847e6..72eeb2018 100644 --- a/playbooks/kayobe-overcloud-base/overrides.yml.j2 +++ b/playbooks/kayobe-overcloud-base/overrides.yml.j2 @@ -66,8 +66,8 @@ kolla_base_distro: "{% raw %}{{ 'rocky' if os_distribution == 'centos' else os_d # Support overriding container_engine container_engine: "{{ container_engine }}" -# Deploy a hello-world container. +# Deploy a test container. controller_containers: - hello-world: - image: docker.io/library/hello-world - tag: latest + node_exporter: + image: "quay.io/prometheus/node-exporter" + tag: "latest" diff --git a/playbooks/kayobe-overcloud-base/run.yml b/playbooks/kayobe-overcloud-base/run.yml index 0c7820d5c..9fcb2da17 100644 --- a/playbooks/kayobe-overcloud-base/run.yml +++ b/playbooks/kayobe-overcloud-base/run.yml @@ -15,7 +15,7 @@ - name: Check that hello-world custom container was deployed shell: - cmd: "sudo {{ container_engine | default('docker') }} ps -a | grep hello-world" + cmd: "sudo {{ container_engine | default('docker') }} ps -a | grep node-exporter" executable: /bin/bash when: deploy_custom_container | default(false)