diff --git a/manifests/init.pp b/manifests/init.pp index e7f4b9a..0e934f0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -5,6 +5,7 @@ # @param grafana_password is the password for Grafana to read from the DB # @param ledger_repo is the git repo for ledger data # @param ledger_ssh_key is the ssh key to use to update the repo +# @param ledger_file is the main ledger file to load, relative to the repo root # @param version sets the ledgersql tag to use # @param postgres_ip sets the address of the postgres Docker container # @param user sets the user to run ledgersql as @@ -16,6 +17,7 @@ String $grafana_password, String $ledger_repo, String $ledger_ssh_key, + String $ledger_file = 'core.ldg', String $version = 'v0.0.1', String $postgres_ip = '172.17.0.3', String $user = 'ledgersql', diff --git a/templates/config.yaml.erb b/templates/config.yaml.erb index d5a7361..7210d57 100644 --- a/templates/config.yaml.erb +++ b/templates/config.yaml.erb @@ -1,3 +1,4 @@ data_dir: <%= @datadir %> +data_file: <%= @ledger_file %> database_password: <%= @database_password %> database_host: <%= @postgres_ip %>