Commit 9f59ae1f by John Donnal

install ethstream from source

parent b0fe7c7d
......@@ -28,6 +28,20 @@ class nilm {
#owner => root,
#group => root
}
vcsrepo{'/opt/ethstream':
ensure => latest,
provider => git,
notify => Exec['install_ethstream'],
source => 'https://git.wattsworth.net/wattsworth/ethstream.git',
owner => root
}
exec{'install_ethstream':
command => 'make install',
cwd => '/opt/ethstream',
path => ['/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'],
creates => '/usr/local/bin/ethstream',
require => [Vcsrepo['/opt/ethstream']]
}
file{'/usr/local/bin/ethstream':
owner => root,
group => root,
......
......@@ -18,7 +18,7 @@ class nilmplug {
timeout => 0,
path => ['/usr/local/bin','/usr/bin'],
}
exec{'initialize_nilm':
exec{'initialize_nilmplug':
command => 'nilm-plug --initialize',
path => ['/usr/local/bin','/usr/sbin','/bin'],
creates => '/etc/udev/rules.d/90-nilmplug.rules',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment