Skip to content

Instantly share code, notes, and snippets.

@hryamzik
hryamzik / ansible-ip-list-play.yml
Created March 25, 2016 11:50 — forked from iAugur/ansible-ip-list-play.yml
Ansible: Example of working with lists of host vars
---
- hosts: servers
gather_facts: true
sudo: true
vars:
fail2ban_config_ignoreip:
- "127.0.0.1/8"
- "{{ ansible_ssh_host }}"
sudo aptitude update && sudo aptitude install -y build-essential checkinstall git dkms
git clone -b stable_v3.1.1 https://github.com/facebook/flashcache.git
cd flashcache
sudo make -f Makefile.dkms
sudo cp -v ./utils/flashstat /usr/sbin/
hdd=sda3

Replication setup, performed from master

slave=192.168.0.1
master=192.168.0.2
ssh $slave hostname
ssh ${slave} sudo service postgresql stop
//
//  www.blinkenlight.net
//
//  Copyright 2014 Udo Klein
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
import processing.serial.*;
import controlP5.*;
ControlP5 cp5;
DropdownList serialPortsList;
Serial serialPort;
final int BAUD_RATE = 115200;
long timeToWait = 1000;// in miliseconds
Dim hideupdates(7)
hideupdates(0) = "KB3035583 "
set updateSession = createObject("Microsoft.Update.Session")
set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
For i = 0 To searchResult.Updates.Count-1
set update = searchResult.Updates.Item(i)
TASK: [ruby-rvm | check if RVM is installed] **********************************
fatal: [dev01.reviseapp.net] => Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to template {{ var }}: Failed to t
search_index: /srv/graphite/index
finders:
- cyanite.CyaniteFinder
cyanite:
urls:
{% for host in groups[cyanite_hosts_group] %}
{% set j_proto = 'https' if hostvars[host].cyanite_https is defined and hostvars[host].cyanite_https else 'http' %}
{% set j_port = hostvars[host].cyanite_api_port|default(default_cyanite_api_port) %}
{% if hostvars[host]['cyanite_access_by_inventory_hostname_not_ip'] is defined and hostvars[host]['cyanite_access_by_inventory_hostname_not_ip'] %}
{% set j_addr = hostvars[host]['inventory_hostname'] %}

This is not a generic postgres role, it's sverka-tuned one!

Replication setup, performed from master

slave=192.168.160.1
master=192.168.160.120
ssh $slave hostname
d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc
d-i partman-auto/method string raid
d-i partman-auto-lvm/new_vg_name string vg_big
d-i partman-auto/expert_recipe string \
raid-lvm :: \
512 10 512 raid \
$primary{ } $lvmignore{ } $bootable{ } \
method{ raid } \
. \