Put the aws_ec2.py file into e.g. plugins/inventory
Ensure ansible.cfg contains the following settings:
[defaults]
inventory_plugins = plugins/inventory
[inventory]
enable_plugins = aws_ec2,host_list,script,yaml,ini
nsenter -n -t <pid> | |
tcpdump -i eth0 -w /tmp/${HOST}.pcap |
# YYYY/MM/DD TRIPS DEVICES TRIPS/DEVICE DURATION DURATION/TRIP | |
2019/01/01 7488 3240 2.31111 95470.9 12.7498 | |
2019/01/02 988 711 1.38959 8022 8.11943 | |
2019/01/03 5595 2645 2.11531 62385.7 11.1503 | |
2019/01/04 9671 3612 2.67746 124206 12.8432 | |
2019/01/05 13724 4319 3.17759 209968 15.2993 | |
2019/01/06 9652 3629 2.65969 149453 15.4842 | |
2019/01/07 8049 3289 2.44725 99603.7 12.3747 | |
2019/01/08 8760 3465 2.52814 99411.2 11.3483 | |
2019/01/09 8176 3305 2.47383 83849.4 10.2556 |
# This is untested, and only really works if number of zones evenly divides number of instances | |
- name: create number_of_instances across a list of zones | |
ec2: | |
desired_count: "{{ number_of_instances / (zones | length) }}" | |
az: "{{ item % (zones | length) }}" | |
loop: "{{ number_of_instances | range }}" |
### Keybase proof | |
I hereby claim: | |
* I am willthames on github. | |
* I am willthames (https://keybase.io/willthames) on keybase. | |
* I have a public key ASCL0vq92IOe-sdvgb55oOmSEp2Ihrle7nPR13ReEBxs0Ao | |
To claim this, I am signing this object: |
- execContainer: | |
command: | |
- sh | |
- -c | |
- > | |
chroot /rootfs apt-get update && | |
DEBIAN_FRONTEND=noninteractive chroot /rootfs | |
apt-get install -y --force-yes -o Dpkg::Options::="--force-confdef" acpi-support | |
image: busybox | |
roles: |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: kubedrain | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: view | |
subjects: | |
- apiGroup: rbac.authorization.k8s.io |
hooks: | |
- execContainer: | |
command: | |
- sh | |
- -c | |
- chroot /rootfs curl -LsO https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl && chroot /rootfs install -m 755 kubectl /usr/local/bin/kubectl | |
image: busybox | |
roles: | |
- Node | |
- name: kubectl-drain.service |
/** | |
https://www.reddit.com/r/firefox/comments/726p8u/multirow_tabs_firefox_ignores_mozboxflex/dngb8qf/ | |
*/ | |
.tabbrowser-tab:not([pinned]) { | |
flex-grow:1; | |
min-width:150px; | |
} | |
.tabbrowser-tab,.tab-background { |
Put the aws_ec2.py file into e.g. plugins/inventory
Ensure ansible.cfg contains the following settings:
[defaults]
inventory_plugins = plugins/inventory
[inventory]
enable_plugins = aws_ec2,host_list,script,yaml,ini
- block: | |
- name: set yaml anchor | |
set_fact: | |
aws_connection_info: &aws_connection_info | |
aws_access_key: "{{ aws_access_key }}" | |
aws_secret_key: "{{ aws_secret_key }}" | |
security_token: "{{ security_token }}" | |
no_log: yes | |
- name: create WAF IP match |