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
1045684a
authored
Nov 19, 2019
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added nilm flag to rpi apply
parent
c5b5a34d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
modules/docs/files/nilm/README
modules/docs/manifests/nilm.pp
rpi_apply.sh
modules/docs/files/nilm/README
View file @
1045684a
View NILM documentation locally:
http://localhost/docs/nilm
meters.yml link to /opt/configs/meters.yml
=== Source Code ===
--- Data Acquisition ---
...
...
modules/docs/manifests/nilm.pp
View file @
1045684a
...
...
@@ -13,10 +13,10 @@ class docs::nilm(String $docs_path, String $owner){
group
=>
$owner
}
file
{
"
${docs_path}
/nilm/meters.yml"
:
ensure
=>
link
,
target
=>
'/opt/configs/meters.yml'
}
#
file{"${docs_path}/nilm/meters.yml":
#
ensure => link,
#
target => '/opt/configs/meters.yml'
#
}
$docs_cmd
=
"wget http://docs.wattsworth.net/nilm.tar > /dev/null &&
\
tar -xf nilm.tar -C /var/www/docs &&
\
...
...
rpi_apply.sh
View file @
1045684a
...
...
@@ -2,6 +2,17 @@
source
set_locale.sh
if
[[
$#
==
0
]]
;
then
IMAGE_TYPE
=
'default'
elif
[[
$1
=
"--nilm"
]]
;
then
echo
"BUILDING NILM IMAGE"
IMAGE_TYPE
=
'nilm'
else
echo
"Error, unknown type
$1
"
exit
1
fi
# install the puppet forge modules
mkdir
-p
forge_modules
r10k puppetfile install
--moduledir
=
./forge_modules
...
...
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