Skip to content

Commit

Permalink
Some linting.
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 7b09f35 commit fc05c3b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion examples/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
#
#include ::geth

class { 'geth':
class {'geth':
}
36 changes: 18 additions & 18 deletions manifests/config.pp
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# == Class: geth::config
class geth::config (
String $init_data = $geth::init_data,
String $init_data = $geth::init_data,
String $account_password = $geth::account_password,
)
)
inherits geth {
exec { 'geth-init-data':
cwd => '/home/geth',
command => "geth data init --datadir $init_data",
user => 'geth',
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
}~>
file { 'passfile':
path => '/home/geth/passfile',
content => "${account_password}",
owner => 'geth',
mode => '0400',
}~>
exec { 'geth-create-account':
cwd => '/home/geth',
command => 'geth account new --password /home/geth/passfile',
user => 'geth',
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
cwd => '/home/geth',
command => "geth data init --datadir ${init_data}",
user => 'geth',
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
}
~> file { 'passfile':
path => '/home/geth/passfile',
content => "${account_password}",
owner => 'geth',
mode => '0400',
}
~> exec { 'geth-create-account':
cwd => '/home/geth',
command => 'geth account new --password /home/geth/passfile',
user => 'geth',
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
}
}

4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#
# Copyright 2017 Your name here, unless otherwise noted.
#
class geth (
class geth(
String $identity = 'Participant1',
String $networkid = '1234321',
Integer $unlock = 0,
Expand All @@ -58,7 +58,7 @@
Boolean $rpc = true,
Boolean $mine = true,
Boolean $autodag = true,
String $init_data = '/home/geth/data',
String $init_data = '/home/geth/data',
String $account_password = 'P4ssw0rd!',
)
{
Expand Down
6 changes: 3 additions & 3 deletions manifests/service.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# == Class: geth::service
class geth::service inherits geth {
class geth::service inherits geth{
service { 'geth':
ensure => stopped,
enable => true,
ensure => stopped,
enable => true,
}
}

0 comments on commit fc05c3b

Please sign in to comment.