Linux installation notes (tested under Ubuntu 14.04LTS/12.04LTS), assuming VirtualBox is already installed on host.
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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use Getopt::Long qw(:config posix_default bundling); | |
| use Net::SIP; | |
| #Usage | |
| sub usage { |
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
| # This playbook installs and configure corosync and pacemaker on a set of nodes part of a given group. | |
| --- | |
| # See the file /etc/ansible/hosts where the group is actually defined. There might be a way to define groups in a file 'closer' to this playbook. | |
| - hosts: clusternodes | |
| vars: | |
| mcastport : 5405 | |
| tasks: | |
| # It would be better to use Ansible to change the IP tables config to allow corosync/pacemaker on the nodes part of the cluster. |
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
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
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
| # -*- coding: utf-8 -*- | |
| # -*- mode: python -*- | |
| DOCUMENTATION = ''' | |
| --- | |
| module: gce_meta | |
| short_description: Google Compute Engine Meta Service Lookup. | |
| description: | |
| - The service returns meta information found from the Google Meta service | |
| about the GCE Instance on which it is running for the meta key given. |
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
| #!/usr/bin/env python | |
| import urllib2 | |
| import sys | |
| import json | |
| import shlex | |
| import os | |
| def get_meta(module): | |
| metadata = module.params.get('gcemeta').split(",") | |
| url = "http://metadata.google.internal/computeMetadata/v1/instance/attributes/" |
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
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
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
| # habraproxy.py — это простейший http-прокси-сервер, запускаемый локально (порт на ваше | |
| # усмотрение), который показывает содержимое страниц Хабра. С одним исключением: после | |
| # каждого слова из шести букв должен стоять значок «™». Примерно так: | |
| # | |
| # http://habrahabr.ru/company/yandex/blog/258673/ | |
| # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| # Сейчас на фоне уязвимости Logjam все в индустрии в очередной раз обсуждают проблемы и | |
| # особенности TLS. Я хочу воспользоваться этой возможностью, чтобы поговорить об одной из | |
| # них, а именно — о настройке ciphersiutes. | |
| # |
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: remount root with acl | |
| when: item.mount == "/" and not item.options|search("acl") | |
| mount: | |
| name=/ | |
| fstype=ext4 | |
| opts=acl,rw,errors=remount-ro | |
| src=item.device | |
| state=mounted | |
| with_items: ansible_mounts |
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
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
OlderNewer