Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cascade-examples
rigado-node-hello-world-frontend
Commits
8e05757d
Commit
8e05757d
authored
Apr 13, 2018
by
Vladimir Kiryakov
Browse files
mosquitto installation configuration
parent
9de5b16c
Changes
2
Hide whitespace changes
Inline
Side-by-side
aws/cloudformation/template.yaml
View file @
8e05757d
...
...
@@ -51,6 +51,10 @@ Resources:
apt-get update -y
apt-get install mosquitto -y
echo "mosquitto installed"
service mosquitto stop
echo "
# /etc/mosquitto/mosquitto.conf
# Place your local configuration in /etc/mosquitto/conf.d/
...
...
@@ -60,9 +64,6 @@ Resources:
pid_file /var/run/mosquitto.pid
persistence
true
persistence_location /var/lib/mosquitto/
log_type all
connection_messages
true
log_timestamp
true
...
...
@@ -79,7 +80,11 @@ Resources:
include_dir /etc/mosquitto/conf.d
" > /etc/mosquitto/mosquitto.conf
service mosquitto restart
echo "/etc/mosquitto/mosquitto.conf has been changed"
service mosquitto start
echo "mosquitto installed and configured"
InstanceSecurityGroup
:
Type
:
'
AWS::EC2::SecurityGroup'
Properties
:
...
...
bin/install_mosquitto_mqtt.sh
View file @
8e05757d
...
...
@@ -5,6 +5,10 @@ add-apt-repository ppa:mosquitto-dev/mosquitto-ppa -y
apt-get update
-y
apt-get
install
mosquitto
-y
echo
"mosquitto installed"
service mosquitto stop
echo
"
# /etc/mosquitto/mosquitto.conf
# Place your local configuration in /etc/mosquitto/conf.d/
...
...
@@ -14,9 +18,6 @@ echo "
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_type all
connection_messages true
log_timestamp true
...
...
@@ -33,4 +34,8 @@ protocol websockets
include_dir /etc/mosquitto/conf.d
"
>
/etc/mosquitto/mosquitto.conf
service mosquitto restart
\ No newline at end of file
echo
"/etc/mosquitto/mosquitto.conf has been changed"
service mosquitto start
echo
"mosquitto installed and configured"
\ No newline at end of file
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