Skip to content

Commit

Permalink
refactor: remove loki config in state
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Mar 13, 2024
1 parent 8e0f884 commit b091fd0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
8 changes: 0 additions & 8 deletions imageroot/actions/create-module/11config

This file was deleted.

2 changes: 1 addition & 1 deletion imageroot/systemd/user/loki-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ExecStart=/usr/bin/podman run \
--replace \
--name=%N \
--volume=loki-server-data:/loki \
--volume=./loki-config.yaml:/etc/loki/local-config.yaml:Z \
--volume=%S/loki-config.yaml:/etc/loki/local-config.yaml:Z \
--env=LOKI_RETENTION_PERIOD=${LOKI_RETENTION_PERIOD} \
${LOKI_IMAGE} \
-config.file=/etc/loki/local-config.yaml \
Expand Down
4 changes: 0 additions & 4 deletions imageroot/update-module.d/10config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ import agent
# Set environment variables
if os.getenv('LOKI_RETENTION_PERIOD') is None:
agent.set_env('LOKI_RETENTION_PERIOD', '365d')

# install -m 0644 ../loki-config.yaml loki-config.yaml
if not os.path.exists('loki-config.yaml'):
agent.run_helper('install', '-m', '0644', '../loki-config.yaml', 'loki-config.yaml')

0 comments on commit b091fd0

Please sign in to comment.