Skip to content

Commit af34b1d

Browse files
committed
PMM-7: Fix pmm client setup
1 parent e96b9fb commit af34b1d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pmm_qa/tasks/install_pmm_client.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- name: Set correct pmm server port
2222
set_fact:
2323
pmm_server_port: 8443
24-
when: not (pmm_server_ip | default('') | regex_search('\.'))
24+
when: not (pmm_server_ip | default('') | regex_search('\.') | bool)
2525

2626
- name: Detect OS inside the container
2727
shell: docker exec {{ container_name }} cat /etc/os-release
@@ -178,8 +178,7 @@
178178

179179
- name: Start pmm client
180180
shell: |
181-
docker exec --user root {{ container_name }} \
182-
sh -c 'nohup pmm-agent --config-file=/usr/local/percona/pmm/config/pmm-agent.yaml > /var/log/pmm-agent.log 2>&1 &'
181+
docker exec --user root pdpgsql_pmm_patroni_18_1 sh -c 'nohup pmm-agent --config-file=/usr/local/percona/pmm/config/pmm-agent.yaml > /var/log/pmm-agent.log 2>&1 &'
183182
184183
- name: Wait 5 seconds for start to complete
185184
pause:

0 commit comments

Comments
 (0)