if you've ever tried to follow Rancher's documentation for standing up a k3s cluster, you'd understand why this document exists
Tasks
- Install and setup database
- Install and setup load balancer
- Create DNS records
if you've ever tried to follow Rancher's documentation for standing up a k3s cluster, you'd understand why this document exists
Tasks
--- | |
#------------------------------------------------------------------------ | |
# Print out installed packages within virtual environment | |
#------------------------------------------------------------------------ | |
- hosts: localhost | |
connection: local | |
tasks: | |
- name: create list of Python packages installed | |
ansible.builtin.shell: pip freeze | |
register: results |
import sys | |
import time | |
import platform | |
import subprocess | |
def continuous_traceroute(target, interval=1): | |
print(f"Starting continuous traceroute to {target} with an interval of {interval} seconds") | |
# Determine the appropriate command based on the operating system | |
command = "traceroute" if platform.system() != "Windows" else "tracert" |
# Import necessary libraries | |
from netmiko import ConnectHandler | |
# Define list of devices | |
devices = [ | |
{ | |
'device_type': 'cisco_ios', | |
'ip': '192.168.1.1', | |
'username': 'admin', | |
'password': 'password' |
import os | |
import sys | |
from typing import Dict, Optional | |
import requests | |
import json | |
import gzip | |
import boto3 | |
import botocore | |
#!/bin/bash | |
if [ "$#" -ne 1 ]; then | |
echo "You must enter exactly 1 command line argument (the string to search for)" | |
exit 1 | |
fi | |
grep -rnw './' -e "$1" |