@@ -194,9 +194,10 @@ check_st2_host_dependencies() {
194
194
# CHECK 1: Determine which, if any, of the required ports are used by an existing process.
195
195
196
196
# Abort the installation early if the following ports are being used by an existing process.
197
- # nginx (80, 443), mongodb (27017), rabbitmq (4369, 5672, 25672), and st2 (9100-9102).
197
+ # nginx (80, 443), mongodb (27017), rabbitmq (4369, 5672, 25672), redis (6379)
198
+ # and st2 (9100-9102).
198
199
199
- declare -a ports=(" 80" " 443" " 4369" " 5672" " 9100" " 9101" " 9102" " 25672" " 27017" )
200
+ declare -a ports=(" 80" " 443" " 4369" " 5672" " 6379 " " 9100" " 9101" " 9102" " 25672" " 27017" )
200
201
declare -a used=()
201
202
202
203
for i in " ${ports[@]} "
585
586
sudo systemctl restart mongod
586
587
}
587
588
589
+ install_redis () {
590
+ # Install Redis Server. By default, redis only listen on localhost only.
591
+ sudo yum install -y redis
592
+ sudo systemctl start redis
593
+ sudo systemctl enable redis
594
+ }
595
+
588
596
install_st2 () {
589
597
curl -sL https://packagecloud.io/install/repositories/StackStorm/${REPO_PREFIX}${RELEASE} /script.rpm.sh | sudo bash
590
598
@@ -606,6 +614,9 @@ install_st2() {
606
614
AMQP=" amqp://stackstorm:$ST2_RABBITMQ_PASSWORD @127.0.0.1:5672"
607
615
sudo crudini --set /etc/st2/st2.conf messaging url " ${AMQP} "
608
616
617
+ # Configure [coordination] section in st2.conf (url for Redis access)
618
+ sudo crudini --set /etc/st2/st2.conf coordination url " redis://127.0.0.1:6379"
619
+
609
620
sudo st2ctl start
610
621
sudo st2ctl reload --register-all
611
622
}
@@ -725,6 +736,7 @@ STEP="Generate random password" && generate_random_passwords
725
736
STEP=" Install st2 dependencies" && install_st2_dependencies
726
737
STEP=" Install st2 dependencies (RabbitMQ)" && install_rabbitmq
727
738
STEP=" Install st2 dependencies (MongoDB)" && install_mongodb
739
+ STEP=" Install st2 dependencies (Redis)" && install_redis
728
740
STEP=" Install st2" && install_st2
729
741
STEP=" Configure st2 user" && configure_st2_user
730
742
STEP=" Configure st2 auth" && configure_st2_authentication
0 commit comments