Commit 1045684a by source_reader

added nilm flag to rpi apply

parent c5b5a34d
View NILM documentation locally:
http://localhost/docs/nilm
meters.yml link to /opt/configs/meters.yml
=== Source Code ===
--- Data Acquisition ---
......
......@@ -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 &&\
......
......@@ -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
......
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