A reference for spinning up Ansible AWX on top of a Kubernetes environment
Install k3s with bash script
curl -sfL https://get.k3s.io | sh -
#!/bin/bash | |
OLDIFS=$IFS | |
export IFS=$'\n' | |
# Find all boxes which have updates | |
AVAILABLE_UPDATES=$(vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2 2>/dev/null) | |
if [[ ${#AVAILABLE_UPDATES[@]} -ne 0 ]]; then |
let when = args.widgetParameter || 'today' | |
let now = new Date() | |
if (when == 'tomorrow') { | |
now.setDate(now.getDate() + 1); | |
} | |
let formatter = new DateFormatter() | |
formatter.dateFormat = 'yyyyMMdd' | |
let today = formatter.string(now) |
html, body{ | |
-webkit-font-smoothing:antialiased; | |
font-family: "Comic Sans MS", sans-serif; | |
line-height:1.4; | |
margin:0 auto; | |
max-width:860px; | |
height: 100%; | |
color: #30a3b7; | |
} | |
.center{ |
<!DOCTYPE html> | |
<html lang="en" > | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="refresh" content="2"> | |
<title>Obsidian Systems</title> | |
<link rel="stylesheet" href="./style.css"> | |
</head> | |
<body> |
# Backup | |
dconf dump /org/cinnamon/ > cinnamon-dconf-settings.txt | |
# Reset Cinnamon | |
dconf reset -f /org/cinnamon/ | |
# Restore | |
dconf load /org/cinnamon/ < cinnamon-dconf-settings.txt |