Skip to content

Instantly share code, notes, and snippets.

View willwh's full-sized avatar

William Hetherington willwh

View GitHub Profile
@willwh
willwh / test.yml
Created March 8, 2019 16:45
awx-pip-deps
- hosts: all
tasks:
- name: debug hostvars - prints all host variables
debug:
var: hostvars[inventory_hostname]
- name: Ensure that ansible-modules-hashivault is installed
pip:
name: ansible-modules-hashivault
delegate_to: localhost
- name: test vault lookup
@willwh
willwh / testrun.log
Created February 28, 2019 18:03
hashi_vault_v2_token_test
ansible on  hashi_vault-v2-tests [!]
➜ test/runner/ansible-test integration lookup_hashi_vault --docker centos7
Running lookup_hashi_vault integration test script
+ ANSIBLE_ROLES_PATH=../
+ ANSIBLE_CONFIG=../../integration.cfg
+ ansible-playbook -e@../../integration_config.yml playbooks/install_dependencies.yml -v
Using /root/.ansible/test/tmp/lookup_hashi_vault-HpO6e8-ÅÑŚÌβŁÈ/test/integration/integration.cfg as config file
PLAY [localhost] ***************************************************************
@willwh
willwh / atlassian-whitelist.sh
Last active February 5, 2019 17:42
Fetch whitelist ranges for Atlassian services & reload nginx
#!/usr/bin/env bash
function post_to_slack () {
SLACK_MESSAGE="$1"
SLACK_URL=https://hooks.slack.com/services/<SNIPPETY_SNIPP>
curl -X POST --data "payload={\"text\": \"${SLACK_MESSAGE}\"}" ${SLACK_URL}
}
if [ -f /tmp/whitelist ]; then
rm /tmp/whitelist
@willwh
willwh / 20-xdebug.ini
Created March 13, 2017 02:31
Xdebug configuration for profiling; logs written to `/usr/local/var/log/cachegrind`
[xdebug]
zend_extension="/usr/local/opt/php71-xdebug/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port="9001"
xdebug.remote_autostart=1
xdebug.idekey="PHPSTORM"
# Profile settings
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/usr/local/var/log/cachegrind"
xdebug.profiler_append=On

Keybase proof

I hereby claim:

  • I am willwh on github.
  • I am willwh (https://keybase.io/willwh) on keybase.
  • I have a public key ASCan_-rA8OycSFaJFmnmAD3ZNDkmw2k3xu6s0etzEmCcwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am willwh on github.
* I am willwh (https://keybase.io/willwh) on keybase.
* I have a public key whose fingerprint is 470B 1F1F B27E 9A19 3AAB 194B C9A4 EA15 758A F8D8
To claim this, I am signing this object: