---
- name: "Provision system(s) in Rackspace"
hosts: localhost
connection: local
gather_facts: yes
This file contains 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
[root@08-00-27-a3-a2-ed ~]# dladm show-phys | |
LINK MEDIA STATE SPEED DUPLEX DEVICE | |
e1000g0 Ethernet up 1000 full e1000g0 | |
e1000g1 Ethernet up 1000 full e1000g1 | |
[root@08-00-27-a3-a2-ed ~]# dladm show-phys -m | |
LINK SLOT ADDRESS INUSE CLIENT | |
e1000g0 primary 8:0:27:a:5:63 yes e1000g0 | |
e1000g1 primary 8:0:27:a3:a2:ed yes e1000g1 |
This file contains 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
Config # 1 | |
server { | |
listen 80; | |
server_name xxx.devdmz.xxx.com; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_connect_timeout 300; | |
location / { |
This file contains 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
ZFS on Linux | |
FAQ | |
http://zfsonlinux.org/faq.html | |
A not so short guide to ZFS on Linux | |
http://unicolet.blogspot.com/2013/03/a-not-so-short-guide-to-zfs-on-linux.html | |
ZFS Cheatsheet | |
http://www.datadisk.co.uk/html_docs/sun/sun_zfs_cs.htm |
This file contains 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
# Stops the client whining about certs | |
Set-PowerCLIConfiguration -InvalidCertificateAction ignore | |
# Edit these values to suit your environment | |
Connect-VIServer -server vcenter.dev.acme.com -User root -Password ******************* | |
# VM host we will create the VM on | |
$VS5_Host = "10.10.10.2" | |
# Name of VM we want to create | |
$vmName1 = "ZOL_CentOS" |
This file contains 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 -e | |
DIR=$PWD | |
yum groupinstall -y "Development Tools" | |
yum install -y make gcc perl wget zlib-devel | |
#Compile static version of libressl | |
export STATICLIBSSL=/tmp/staticlibssl | |
LIBRESSL=libressl-2.4.2 |
This file contains 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 works | |
- name: "Set the Couchbase cluster security settings" | |
shell: "curl -v -X POST http://{{ couchbase_host }}:{{ couchbase_cluster_port }}/settings/web \ | |
-d port={{ couchbase_cluster_port }} \ | |
-d username={{ couchbase_cluster_username }} \ | |
-d password={{ couchbase_cluster_password }}" | |
# This does not: | |
- name: "Set the Couchbase cluster security settings" | |
uri: |
This file contains 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 works: | |
- include_role: | |
name: mwg.svn | |
tasks_from: create-repo | |
vars: | |
svn_instance: svn | |
svn_repo: subversion | |
# This does not: | |
- include_role: |
# Pull the necessary images:
docker pull nathanleclaire/curl:latest
docker pull openjdk:8u111-jre-alpine
# Start the controller container, note that it has RW access to the Docker API socket:
docker run \
-ti \
--rm \
This file contains 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
# Task | |
- name: "Log into hub.docker.com" | |
become: yes | |
become_user: automation | |
docker_login: | |
username: "{{ docker_hub_username }}" | |
password: "{{ docker_hub_password }}" | |
email: "{{ docker_hub_email }}" | |
register: docker_login_result | |
# until: docker_login_result.login_result.Status == "Login Succeeded" |
OlderNewer