Skip to content

Commit

Permalink
add host key
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Nov 28, 2024
1 parent e66ebe2 commit 3ca280d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
# @param database_password sets the postgres password for grafana
# @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_ssh_key is the ssh key to use to update the repo
# @param ledger_ssh_host_key is the ssh host key to use to update the repo
# @param postgres_ip sets the address of the postgres Docker container
class ledgerdb (
String $datadir,
String $database_password,
String $grafana_password,
String $ledger_repo,
String $ledger_ssh_key,
String $ledger_ssh_host_key,
String $postgres_ip = '172.17.0.3',
) {
file { [
Expand Down Expand Up @@ -57,6 +59,11 @@
content => $ledger_ssh_key,
}

-> file_line { '/root/.ssh/known_hosts':
path => '/root/.ssh/known_hosts',

Check warning on line 63 in manifests/init.pp

View workflow job for this annotation

GitHub Actions / Build

indent should be 4 chars and is 6 (check: strict_indent)
line => $ledger_ssh_host_key,

Check warning on line 64 in manifests/init.pp

View workflow job for this annotation

GitHub Actions / Build

indent should be 4 chars and is 6 (check: strict_indent)
}

-> vcsrepo { "${datadir}/data":
ensure => latest,
provider => git,
Expand Down

0 comments on commit 3ca280d

Please sign in to comment.