Commit 1045684a by source_reader

added nilm flag to rpi apply

parent c5b5a34d
View NILM documentation locally: View NILM documentation locally:
http://localhost/docs/nilm http://localhost/docs/nilm
meters.yml link to /opt/configs/meters.yml
=== Source Code === === Source Code ===
--- Data Acquisition --- --- Data Acquisition ---
......
...@@ -13,10 +13,10 @@ class docs::nilm(String $docs_path, String $owner){ ...@@ -13,10 +13,10 @@ class docs::nilm(String $docs_path, String $owner){
group => $owner group => $owner
} }
file{"${docs_path}/nilm/meters.yml": #file{"${docs_path}/nilm/meters.yml":
ensure => link, # ensure => link,
target => '/opt/configs/meters.yml' # target => '/opt/configs/meters.yml'
} #}
$docs_cmd = "wget http://docs.wattsworth.net/nilm.tar > /dev/null &&\ $docs_cmd = "wget http://docs.wattsworth.net/nilm.tar > /dev/null &&\
tar -xf nilm.tar -C /var/www/docs &&\ tar -xf nilm.tar -C /var/www/docs &&\
......
...@@ -2,6 +2,17 @@ ...@@ -2,6 +2,17 @@
source set_locale.sh 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 # install the puppet forge modules
mkdir -p forge_modules mkdir -p forge_modules
r10k puppetfile install --moduledir=./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