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
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
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
input { | |
tcp { | |
port => 19532 | |
type => journald | |
} | |
} | |
filter { | |
if [type] == "journald" { | |
multiline { |
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
--- | |
- hosts: db-vms # set to specific inventory host group or set to all for every host in inventory for play | |
vars: | |
config_lvm: false # must be set to true in order to execute any tasks in play (failsafe option :)- ) | |
create: false # set to true if creating a new logical volume (do not set extend or resize to true) | |
resize: false # set to true if resizing the logical volume (do not set create to true) | |
extend: false # set to true if extending the logical volume (do not set create to true) | |
current_disk: '/dev/sda5' # set to your current disk device already setup in lvm | |
new_disk: '/dev/sdb' # set to new disk being added to volume group | |
new_mntp: '/var/lib/mysql' # set to the desired mount |
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
--- | |
- name: create some vms | |
hosts: localhost | |
connection: local | |
vars_prompt: | |
- name: "vcenter_host" | |
prompt: "Enter vcenter host" | |
private: no | |
default: "vcsa" | |
- name: "vcenter_user" |
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
# MOVED TO https://github.com/stevejenkins/unifi-linux-utils |
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
# templates/mail_body.j2 | |
{% for host in play_hosts %} | |
The {{ host }} says {{ hostvars[host]['result']['stdout'] }} | |
{% endfor %} |
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
$ dig -t txt foo2.example.net @127.0.0.1 | |
; <<>> DiG 9.11.2 <<>> -t txt foo2.example.net @127.0.0.1 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62695 | |
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | |
;; WARNING: recursion requested but not available | |
;; OPT PSEUDOSECTION: |