Commit 8e05757d authored by Vladimir Kiryakov's avatar Vladimir Kiryakov
Browse files

mosquitto installation configuration

parent 9de5b16c
......@@ -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:
......
......@@ -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
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 to comment