Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
puppet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
503d4c18
authored
May 30, 2017
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug fixes
parent
93bda248
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
11 deletions
modules/common/manifests/init.pp
modules/joule/manifests/init.pp
modules/nilm/manifests/init.pp
modules/common/manifests/init.pp
View file @
503d4c18
...
...
@@ -3,7 +3,7 @@
# Packages required by multiple modules
#
class
common
{
$pkgs
=
[
'build-essential'
]
$pkgs
=
[
'build-essential'
,
'screen'
]
package
{
$pkgs
:
ensure
=>
present
...
...
modules/joule/manifests/init.pp
View file @
503d4c18
...
...
@@ -14,7 +14,7 @@
class
joule
{
$pip_url
=
"http://puppet:wX27zvbA@pypi.wattsworth.net:8080/"
$pip_cmd
=
"pip3 install --extra-index-url
${pip_url}
--trusted-host pypi.wattsworth.net"
$pip_cmd
=
"pip3 install --
upgrade --
extra-index-url
${pip_url}
--trusted-host pypi.wattsworth.net"
$deps
=
[
'libblas-dev'
,
'liblapack-dev'
,
'gfortran'
]
...
...
modules/nilm/manifests/init.pp
View file @
503d4c18
...
...
@@ -11,22 +11,21 @@
#
class
nilm
{
$pip_url
=
"http://puppet:wX27zvbA@pypi.wattsworth.net:8080/"
$pip_cmd
=
"pip3 install --extra-index-url
${pip_url}
--trusted-host pypi.wattsworth.net"
$pip_cmd
=
"pip3 install --
upgrade --
extra-index-url
${pip_url}
--trusted-host pypi.wattsworth.net"
package
{
"libfreetype6-dev"
:
ensure
=>
present
}
exec
{
'install_nilm'
:
command
=>
"
${pip_cmd}
nilm"
,
timeout
=>
0
,
path
=>
[
"/usr/local/bin"
,
"/usr/bin"
]
path
=>
[
"/usr/local/bin"
,
"/usr/bin"
],
require
=>
Package
[
"libfreetype6-dev"
]
}
file
{
'/opt/configs'
:
ensure
=>
directory
,
owner
=>
root
,
group
=>
root
}
file
{
'/opt/configs/meters.example.yml'
:
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/nilm/meters.yml'
#owner => root,
#group => root
}
file
{
'/usr/local/bin/ethstream'
:
owner
=>
root
,
...
...
@@ -34,4 +33,11 @@ class nilm {
mode
=>
0755
,
source
=>
'puppet:///modules/nilm/ethstream'
}
exec
{
'initialize_nilm'
:
command
=>
"nilm initialize"
,
path
=>
[
"/usr/local/bin"
,
"/usr/sbin"
,
"/bin"
],
creates
=>
"/opt/configs/meters.example.yml"
,
require
=>
Exec
[
'install_nilm'
]
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment