diff --git a/promtail/init.sls b/promtail/init.sls index 31f36bb..8063111 100644 --- a/promtail/init.sls +++ b/promtail/init.sls @@ -38,7 +38,7 @@ adding fw service for promtail in {{ zone }} zone: Create promtail container: cmd.run: - - name: podman container create --name promtail -p {{ http_listen_port }}:{{ http_listen_port}} -v /etc/promtail:/etc/promtail:ro -v /var/log/journal:/var/log/journal:ro docker.io/grafana/promtail:latest -config.file=/etc/promtail/promtail.conf + - name: podman container create --name promtail -p {{ http_listen_port }}:{{ http_listen_port}} -v /etc/promtail:/etc/promtail:ro -v /var/log/journal:/var/log/journal:ro docker.io/grafana/promtail:latest -config.file=/etc/promtail/promtail.conf --client.external-labels=hostname={{ grains['fqdn'] }} - unless: podman container exists promtail Create promail unit file: