Skip to content
Snippets Groups Projects
Commit d8d49559 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Moved MS deploy setup in a dedicated action.

parent 7b2b241a
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
source /root/envsetup/conf.sh source /root/envsetup/conf.sh
# installation mediaserver # Ms package install
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-mediaserver DEBIAN_FRONTEND=noninteractive apt-get install -y python3-mediaserver
# session ms # MS instance
msinstaller.py msuser msinstaller.py msuser
# copy MS_deploy.sh to /var/tmp
cp MS_deploy.sh /var/tmp/MS_deploy.sh
#!/bin/bash
source /root/envsetup/conf.sh
echo "Copying MS_deploy.sh"
cp -v MS_deploy.sh /var/tmp/MS_deploy.sh
#!/bin/bash #!/bin/bash
set -e set -e
# This script installs a MS/worker/campus-manager/cache/MV using envsetup on a system
# This script installs a MS/worker/campus-manager/cache/MV through envsetup on a machine
# Prerequisites # Prerequisites
# 1. create DNS entries # 1. create DNS entries
# alpha-auto.ubicast.net # alpha.ubicast.net
# cm-alpha-auto.ubicast.net # alpha-cm.ubicast.net
# monitor-alpha-auto.ubicast.net # alpha-mon.ubicast.net
# 2. create machine in panel # 2. create system in panel
# 3. envsetup-launcher.sh # 3. launcher.sh
# log # log
LOGFILE=/root/$(date +%F)_envsetup.log LOGFILE=/root/$(date +%F)_envsetup.log
exec > >(tee -i ${LOGFILE}) exec > >(tee -i ${LOGFILE})
## envsetup integration ## envsetup action calls
init() { init() {
python3 /root/envsetup/envsetup.py 11 python3 /root/envsetup/envsetup.py 11
python3 /root/envsetup/envsetup.py 12 python3 /root/envsetup/envsetup.py 12
...@@ -45,6 +43,7 @@ mediaserver() { ...@@ -45,6 +43,7 @@ mediaserver() {
python3 /root/envsetup/envsetup.py 25 python3 /root/envsetup/envsetup.py 25
python3 /root/envsetup/envsetup.py 51 python3 /root/envsetup/envsetup.py 51
python3 /root/envsetup/envsetup.py 52 python3 /root/envsetup/envsetup.py 52
python3 /root/envsetup/envsetup.py 53
python3 /root/envsetup/envsetup.py 25 python3 /root/envsetup/envsetup.py 25
} }
...@@ -89,7 +88,7 @@ reconf_default() { ...@@ -89,7 +88,7 @@ reconf_default() {
python3 /root/envsetup/envsetup.py 204 python3 /root/envsetup/envsetup.py 204
} }
WOWZA_LICENSE() { wowza_license() {
python3 /root/envsetup/envsetup.py 205 python3 /root/envsetup/envsetup.py 205
} }
...@@ -148,7 +147,7 @@ case "$1" in ...@@ -148,7 +147,7 @@ case "$1" in
;; ;;
"wrecette") "wrecette")
WOWZA_LICENSE wowza_license
reconf_dump_config reconf_dump_config
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment