###Install HAProxy
yum install haproxy
###Update Config file for frontend and backend.
- No need to change 'global' and 'defaults' section.
- Sample Config : /etc/haproxy/haproxy.cfg
###Install HAProxy
yum install haproxy
###Update Config file for frontend and backend.
https://www.digicert.com/help/ |
sudo yum install wget | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
sudo pip install awscli |
aws --profile lab sts assume-role --role-arn "arn:aws:iam::97492:role/master" --role-session-name vpack --duration-seconds 3600 --external-id "myNewCreds" |
while true; do ; echo 'VV' ; done |
aws --profile lab --region us-east-1 ec2 create-tags --tags Key=ExpirationDate,Value=$(date +%Y-%m-%d -d '+ 30 day' ) --resources i-c8efc8e6 i-aa5a8581 i-4e56cc1e |
Uploading Renewed SSL Certs to AWS :
for x in `find . -name "*.json.gz"` ; do zcat $x | jq .Records[] | mongoimport --collection cloudtrail --jsonArray ; done |
curl -L https://www.opscode.com/chef/install.sh | bash | |
or | |
curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v 11 | |
rpm -Uvh https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.4.0-1.x86_64.rpm | |
mkdir /var/chef | |
cd /var/chef | |
yum -y install git |
# Create a new file | |
dd if=/dev/zero of=my_fs bs=1M count=1024 | |
Or | |
truncate -s 30M my_fs | |
# Check if the device is not already in use before using it | |
sudo losetup /dev/loop0 | |
sudo losetup /dev/loop0 my_fs | |
# Make a file system and mount it |