From fc05c3b4ea8d3c37855f9d889cb39f498347ffd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Clouet?= Date: Sun, 9 Jul 2017 13:47:00 -0400 Subject: [PATCH] Some linting. --- examples/init.pp | 2 +- manifests/config.pp | 36 ++++++++++++++++++------------------ manifests/init.pp | 4 ++-- manifests/service.pp | 6 +++--- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/examples/init.pp b/examples/init.pp index aa19653..ef00a45 100644 --- a/examples/init.pp +++ b/examples/init.pp @@ -11,5 +11,5 @@ # #include ::geth -class { 'geth': +class {'geth': } diff --git a/manifests/config.pp b/manifests/config.pp index f440743..a93c397 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -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' ], } } diff --git a/manifests/init.pp b/manifests/init.pp index b479104..2176592 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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, @@ -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!', ) { diff --git a/manifests/service.pp b/manifests/service.pp index 8fd6642..901670c 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -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, } }