Skip to content

Commit

Permalink
use template for config file
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Nov 28, 2024
1 parent 2e3bed4 commit 7fa1b4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
}

file { '/etc/systemd/system/ledgersql.service':
ensure => file,
source => 'puppet:///modules/ledgerdb/ledgersql.service',
ensure => file,
content => template('ledgerdb/ledgersql.service.erb'),
}

file { '/etc/systemd/system/ledgersql.timer':
Expand Down
2 changes: 1 addition & 1 deletion templates/config.yaml.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data_dir: <%= @data_dir %>
data_dir: <%= @datadir %>
database_password: <%= @database_password %>
database_host: <%= @postgres_ip %>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ StartLimitIntervalSec=271
[Service]
Type=simple
User=slackmastodon
ExecStart=/usr/local/bin/ledgersql
ExecStart=/usr/local/bin/ledgersql sync <%= @datadir %>/config.yaml
Restart=on-failure
RestartSec=90

0 comments on commit 7fa1b4a

Please sign in to comment.