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
8e4038e5
authored
Jan 13, 2022
by
John Donnal
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug fixes
parent
2d5c9454
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
modules/first_boot/templates/first_boot.sh.erb
modules/joule/manifests/config.pp
modules/nginx/files/nilmdb.conf
rpi_cleanup.sh
modules/first_boot/templates/first_boot.sh.erb
View file @
8e4038e5
...
...
@@ -31,7 +31,7 @@ RAILS_PWD="$(openssl rand -hex 8)"
JOULE_PWD="$(openssl rand -hex 8)"
service joule stop
rm -f /etc/joule/main.conf
joule admin initialize --dsn joule:$JOULE_PWD@localhost:5432/joule
<%
if
@nilmdb
%>
--nilmdb http://
localhost
/nilmdb
<%
end
%>
joule admin initialize --dsn joule:$JOULE_PWD@localhost:5432/joule
<%
if
@nilmdb
%>
--nilmdb http://
127.0.0.1:8081
/nilmdb
<%
end
%>
echo "# Generating Rails secrets"
...
...
modules/joule/manifests/config.pp
View file @
8e4038e5
...
...
@@ -31,7 +31,7 @@ class joule::config {
}
$dsn
=
'joule:joule@localhost:5432/joule'
if
$facts
[
'image_type'
]
==
'nilm'
{
$cmd
=
"joule admin initialize --dsn=
${dsn}
--nilmdb=http://127.0.0.1/nilmdb"
$cmd
=
"joule admin initialize --dsn=
${dsn}
--nilmdb=http://127.0.0.1
:8081
/nilmdb"
}
else
{
$cmd
=
"joule admin initialize --dsn=
${dsn}
"
}
...
...
modules/nginx/files/nilmdb.conf
View file @
8e4038e5
location
/
nilmdb
{
proxy_buffering
off
;
proxy_pass
http
://
localhost
:
8081
;
proxy_pass
http
://
127
.
0
.
0
.
1
:
8081
;
}
\ No newline at end of file
rpi_cleanup.sh
View file @
8e4038e5
...
...
@@ -10,6 +10,9 @@ sudo -u postgres psql <<END_OF_SQL
DROP DATABASE joule;
DROP DATABASE rails;
END_OF_SQL
# remove nilmdb database
rm
-rf
/opt/data/
*
echo
"2] Erasing module and stream configurations"
rm
-f
/etc/joule/module_configs/
*
.conf
rm
-f
/etc/joule/stream_configs/
*
.conf
...
...
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