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
- name: Check for the Docker GPG key | |
stat: | |
path: /etc/apt/trusted.gpg.d/docker.gpg | |
register: docker_key | |
- name: Download the Docker GPG key | |
get_url: | |
url: https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg | |
dest: "/tmp/docker.gpg" | |
mode: '0777' |
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 | |
username="user" | |
chroot="/path/to/folder/to/chroot" | |
# create the chrooted directory structure | |
mkdir $chroot/bin | |
mkdir $chroot/usr | |
mkdir $chroot/usr/bin | |
mkdir $chroot/usr/lib |
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
# Force the system to unmount any previously found file systems | |
d-i preseed/early_command string umount /media || true | |
# We are using RAID as our method - This is important | |
d-i partman-auto/method string raid | |
# Define which disks we want to use in our RAID configuration | |
d-i partman-auto/disk string /dev/sda /dev/sdb | |
# Remove any previous LVM metadata | |
d-i partman-lvm/device_remove_lvm boolean true | |
# Remove any previous MD metadata | |
d-i partman-md/device_remove_md boolean true |
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 | |
for i in `/usr/bin/curl -s 'http://localhost:9200/_cat/indices?v' 2>&1 | grep $1 | awk '{print $3}'` | |
do | |
echo "Starting on $i" | |
NEWFILE=$( echo $i | sed "s/$1-/$2-/") | |
echo -n "Converting $i to $NEWFILE ..." | |
STATUSCODE=$(/usr/bin/curl -o /dev/null -s --write-out "%{http_code}" -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d "{\"source\":{\"index\":\"$i\"},\"dest\":{\"index\":\"$NEWFILE\"}}" http://localhost:9200/_reindex ) | |
if test $STATUSCODE -eq 200; then | |
echo " done." | |
echo -n "Deleting $i..." |
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 | |
############################################################################### | |
# CONFIG | |
# AWS config | |
# OCF Parameters: | |
# OCF_RESKEY_aws_secret_key - The AWS secret key for the account with the elastic IP address. | |
# OCF_RESKEY_aws_access_key - The AWS access key for the account with the elastic IP address. | |
# OCF_RESKEY_java_home - The base directory for the Java JRE Default: /usr/lib/jvm/java-7-openjdk-amd64/ |