Skip to content

Commit

Permalink
Added some logs to config commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoît Clouet authored and Benoît Clouet committed Jul 9, 2017
1 parent 17c2efb commit 093b805
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
String $datadir = $geth::datadir,
String $account_password = $geth::account_password,
String $passfile = $geth::passfile,
String $logdir = $geth::logdir,
)
inherits geth {
exec { 'geth-init-data':
cwd => '/home/geth',
command => "geth data init --datadir ${datadir}",
command => "geth data init --datadir ${datadir} 2>> ${logdir}/init-data.log",
user => 'geth',
# Command is so long ?!?
timeout => 1800,
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
}
~> file { 'passfile':
Expand All @@ -19,7 +22,7 @@
}
~> exec { 'geth-create-account':
cwd => '/home/geth',
command => "geth account new --password ${passfile}",
command => "geth account new --password ${passfile} 2>> ${logdir}/create-account.log",
user => 'geth',
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
}
Expand Down

0 comments on commit 093b805

Please sign in to comment.