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 | |
| # Exit immediately if a command exits with a non-zero status. | |
| set -e | |
| # The URL of the SSH keys to download. | |
| KEYS_URL="https://github.com/kmf.keys" | |
| # The directory where SSH keys are stored. | |
| SSH_DIR="$HOME/.ssh" |
| # 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 |
| <!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> |
| 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{ |
| 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) |
| #!/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 |
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_INFLUXDB", | |
| "label": "InfluxDB", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "influxdb", | |
| "pluginName": "InfluxDB" | |
| } |
| #!/usr/bin/env bash | |
| # Author:: Paul Mooring (<[email protected]>) | |
| # Author:: Steven Danna (<[email protected]>) | |
| # Copyright:: Copyright (c) 2013 Opscode, Inc. | |
| # License:: Apache License, Version 2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at |
| Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' | |
| Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 | |
| Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 | |
| Start-Service sshd | |
| Set-Service -Name sshd -StartupType 'Automatic' | |
| Get-NetFirewallRule -Name *ssh* | |
| New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 | |
| New-NetFirewallRule -Name winrm-insecure -DisplayName 'Winrm http' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 5985 | |
| New-NetFirewallRule -Name winrm-secure -DisplayName 'Winrm https' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 5986 | |
| Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true |