Skip to content

Commit bfe1971

Browse files
authored
PMM-14375 add env var into pmm-agent systemd process (#183)
* PMM-14375 add env var into pmm-agent systemd process * PMM-14375 add env var into pmm-agent systemd process * PMM-14375 add env var into pmm-agent systemd process
1 parent 3b35e3d commit bfe1971

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pmm_psmdb-pbm_setup/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ RUN if [[ "$PMM_CLIENT_VERSION" == http* ]]; then \
8181
systemctl enable mongod && \
8282
systemctl enable pbm-agent && \
8383
sed -i '/ExecStart/a StandardError=file:/var/log/pmm-agent.log' /usr/lib/systemd/system/pmm-agent.service && \
84+
sed -i '/\[Service\]/a Environment="KRB5_CLIENT_KTNAME=/keytabs/mongodb.keytab"' /usr/lib/systemd/system/pmm-agent.service && \
8485
systemctl enable pmm-agent && \
8586
curl -Lf -o /tmp/mgodatagen.tar.gz https://github.com/feliixx/mgodatagen/releases/download/v0.11.2/mgodatagen_0.11.2_Linux_x86_64.tar.gz && \
8687
tar -xf /tmp/mgodatagen.tar.gz -C /usr/bin && \

pmm_psmdb-pbm_setup/docker-compose-rs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,4 @@ networks:
289289

290290
volumes:
291291
keytabs:
292-
driver: local
292+
driver: local

0 commit comments

Comments
 (0)