Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cfn for Ubuntu 22.04 #296

Merged
merged 5 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions cloudformation/aws-streaming-wizard/template-custom-cert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,12 @@ Resources:
#!/bin/bash
touch /usr/local/antmedia/conf/initialized
bash /usr/local/antmedia/change_server_mode.sh cluster ${DBInstance.PrivateIp}
apt-get update
apt-get install -y python3-pip
apt-get install -y python3-setuptools
sudo apt-get update
sudo apt-get -y install python3-pip
mkdir -p /opt/aws/bin
wget https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
python3 -m easy_install --script-dir /opt/aws/bin aws-cfn-bootstrap-py3-latest.tar.gz
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource OriginGroup --region ${AWS::Region}
sudo pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
sudo ln -s /usr/local/init/ubuntu/cfn-hup /etc/init.d/cfn-hup
/usr/local/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource OriginGroup --region ${AWS::Region}
TagSpecifications:
- ResourceType: instance
Tags:
Expand Down Expand Up @@ -414,13 +413,12 @@ Resources:
#!/bin/bash
touch /usr/local/antmedia/conf/initialized
bash /usr/local/antmedia/change_server_mode.sh cluster ${DBInstance.PrivateIp}
apt-get update
apt-get install -y python3-pip
apt-get install -y python3-setuptools
sudo apt-get update
sudo apt-get -y install python3-pip
mkdir -p /opt/aws/bin
wget https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
python3 -m easy_install --script-dir /opt/aws/bin aws-cfn-bootstrap-py3-latest.tar.gz
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource EdgeGroup --region ${AWS::Region}
sudo pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
sudo ln -s /usr/local/init/ubuntu/cfn-hup /etc/init.d/cfn-hup
/usr/local/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource EdgeGroup --region ${AWS::Region}
TagSpecifications:
- ResourceType: instance
Tags:
Expand Down Expand Up @@ -660,13 +658,8 @@ Resources:
Fn::Base64:
!Sub |
#!/bin/bash -xe
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org python3-pip python3-setuptools
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mongod.conf
systemctl enable mongod
systemctl restart mongod
wget -P /tmp/ https://raw.githubusercontent.com/ant-media/Scripts/master/install_mongodb.sh
bash /tmp/install_mongodb.sh

Outputs:

Expand Down
31 changes: 12 additions & 19 deletions cloudformation/aws-streaming-wizard/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,12 @@ Resources:
#!/bin/bash
touch /usr/local/antmedia/conf/initialized
bash /usr/local/antmedia/change_server_mode.sh cluster ${DBInstance.PrivateIp}
apt-get update
apt-get install -y python3-pip
apt-get install -y python3-setuptools
sudo apt-get update
sudo apt-get -y install python3-pip
mkdir -p /opt/aws/bin
wget https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
python3 -m easy_install --script-dir /opt/aws/bin aws-cfn-bootstrap-py3-latest.tar.gz
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource OriginGroup --region ${AWS::Region}
sudo pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
sudo ln -s /usr/local/init/ubuntu/cfn-hup /etc/init.d/cfn-hup
/usr/local/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource OriginGroup --region ${AWS::Region}
TagSpecifications:
- ResourceType: instance
Tags:
Expand Down Expand Up @@ -361,13 +360,12 @@ Resources:
#!/bin/bash
touch /usr/local/antmedia/conf/initialized
bash /usr/local/antmedia/change_server_mode.sh cluster ${DBInstance.PrivateIp}
apt-get update
apt-get install -y python3-pip
apt-get install -y python3-setuptools
sudo apt-get update
sudo apt-get -y install python3-pip
mkdir -p /opt/aws/bin
wget https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
python3 -m easy_install --script-dir /opt/aws/bin aws-cfn-bootstrap-py3-latest.tar.gz
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource EdgeGroup --region ${AWS::Region}
sudo pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
sudo ln -s /usr/local/init/ubuntu/cfn-hup /etc/init.d/cfn-hup
/usr/local/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource EdgeGroup --region ${AWS::Region}
TagSpecifications:
- ResourceType: instance
Tags:
Expand Down Expand Up @@ -607,13 +605,8 @@ Resources:
Fn::Base64:
!Sub |
#!/bin/bash -xe
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org python3-pip python3-setuptools
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mongod.conf
systemctl enable mongod
systemctl restart mongod
wget -P /tmp/ https://raw.githubusercontent.com/ant-media/Scripts/master/install_mongodb.sh
bash /tmp/install_mongodb.sh

Outputs:

Expand Down
Loading