$cat /etc/issues
`Amazon Linux AMI release 2015.09`
$ java -version
java version "1.7.0_91"
# update | |
sudo yum -y update | |
sudo yum -y upgrade | |
# enable EPEL6 by changing enabled=0 -> enabled=1 | |
sudo vim /etc/yum.repos.d/epel.repo | |
# install htop | |
sudo yum install htop |
#!/bin/bash | |
# 19.05.2015 Frank Langanke | |
# stop ec2 instances by tag "off-time" with value "true", can be used as cronjob | |
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin | |
_instances=$(aws ec2 describe-instances --filters "Name=tag:off-time,Values=true" --query Reservations[].Instances[].[InstanceId] --output text) | |
aws ec2 stop-instances --instance-ids $_instances |
Source: https://www.zigg.com/2014/using-virtualenv-python-local-ansible.html
Ansible needs boto globally installed and cannot find the locally installed version within an virtualenv.
when to apply:
msg: boto required for this module
Another way of fixing, add this line to a playbook.
Works on:
rundeck-2.5.1-1-GA
Ubuntu 14.04.2 LTS (trusty)
cd /var/lib/rundeck/exp/webapp/WEB-INF/grails-app/i18n
cp messages.properties messages_de.properties
# find and edit following lines:
cat messages_de.properties | grep jobslist\.date\.format
# Rundeck version: 2.5.1-1, Ubuntu *.deb installation | |
grails.mail.host=email-smtp.eu-west-1.amazonaws.com | |
grails.mail.port=587 | |
grails.mail.username=YOUR_SES_SMTP_USER | |
grails.mail.password=YOUR_SES_SMTP_PW | |
grails.mail.props = ["mail.smtp.starttls.enable":"true","mail.smtp.port":"587"] | |
grails.serverURL=http://rundeck.yourcompany.com:80 | |
# from email or domain has to been verified by SES | |
grails.mail.default.from=rundeck@yourcompany.com |