This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade | |
# Packer installation | |
sudo wget https://releases.hashicorp.com/packer/1.5.5/packer_1.5.5_linux_amd64.zip | |
sudo apt-get install unzip | |
sudo unzip packer_1.5.5_linux_amd64.zip | |
sudo rm -r packer_1.5.5_linux_amd64.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enter your Flexible Engine console username and password | |
export OS_USERNAME=xxxx | |
echo "Please enter your Password: " | |
read -sr OS_PASSWORD_INPUT | |
export OS_PASSWORD=$OS_PASSWORD_INPUT | |
export OS_AUTH_URL="https://iam.eu-west-0.prod-cloud-ocb.orange-business.com/v3/" | |
export OS_REGION_NAME=eu-west-0 | |
export OS_TENANT_NAME=xxxx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"os_username": "{{env `OS_USERNAME`}}", | |
"os_password": "{{env `OS_PASSWORD`}}", | |
"os_auth_url": "{{env `OS_AUTH_URL`}}", | |
"os_region_name": "{{env `OS_REGION_NAME`}}", | |
"os_tenant_name": "{{env `OS_TENANT_NAME`}}", | |
"ssh_username": "{{env `SSH_USERNAME`}}", | |
"os_domaine_name": "{{env `OS_USER_DOMAIN_NAME`}}" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export HOME=~/Bureau/ | |
cd $HOME | |
touch welcome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=welcome script | |
[Service] | |
ExecStart=~/welcome.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
cd /opt/ | |
wget https://github.com/prometheus/alertmanager/releases/download/v0.11.0/alertmanager-0.11.0.linux-amd64.tar.gz | |
tar -xvzf alertmanager-0.11.0.linux-amd64.tar.gz | |
mv alertmanager-0.11.0.linux-amd64/alertmanager /usr/local/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /etc/alertmanager/ | |
sudo nano /etc/alertmanager/alertmanager.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /etc/alertmanager/ | |
sudo nano /etc/alertmanager/alertmanager.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
smtp_from: | |
smtp_smarthost: | |
smtp_auth_username: | |
smtp_auth_password: | |
templates: | |
- '/etc/alertmanager/template/*.tmpl' | |
route: | |
group_by: ['alertname'] | |
group_wait: 3s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=AlertManager Server Service | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
User=root | |
Group=root | |
Type=simple | |
ExecStart=/usr/local/bin/alertmanager --config.file /etc/alertmanager/alertmanager.yml -web.external-url=http://x.x.x.x:9093 |
OlderNewer