Skip to content

Commit

Permalink
sort the daemon flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak authored and anarcat committed Feb 22, 2021
1 parent 7d53b4b commit f850f89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
mode => '0644',
owner => 'root',
group => '0', # Darwin uses wheel
content => "ARGS='${join($daemon_flags, ' ')}'\n",
content => "ARGS='${join(sort($daemon_flags), ' ')}'\n",
}
}

Expand Down Expand Up @@ -191,7 +191,7 @@
content => epp("${module_name}/prometheus.systemd.epp", {
'user' => $prometheus::server::user,
'group' => $prometheus::server::group,
'daemon_flags' => $daemon_flags,
'daemon_flags' => $daemon_flags.sort,
'max_open_files' => $max_open_files,
'bin_dir' => $prometheus::server::bin_dir,
'env_file_path' => $prometheus::server::env_file_path,
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/files/prometheus.default
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ARGS='--config.file=/etc/prometheus/prometheus.yaml --storage.tsdb.path=/var/lib/prometheus --storage.tsdb.retention=360h --web.console.templates=/usr/local/share/prometheus/consoles --web.console.libraries=/usr/local/share/prometheus/console_libraries'
ARGS='--config.file=/etc/prometheus/prometheus.yaml --storage.tsdb.path=/var/lib/prometheus --storage.tsdb.retention=360h --web.console.libraries=/usr/local/share/prometheus/console_libraries --web.console.templates=/usr/local/share/prometheus/consoles'

0 comments on commit f850f89

Please sign in to comment.