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 -| # 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 |
| 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 |
| <?xml version="1.0"?> | |
| <root> | |
| <!-- Logitech K360 Keyboard --> | |
| <item> | |
| <name>Logitech K360 Keyboard for Mac OS X</name> | |
| <devicevendordef> | |
| <vendorname>LOGITECH</vendorname> | |
| <vendorid>0x046d</vendorid> | |
| </devicevendordef> | |
| <deviceproductdef> |
| require 'csv' | |
| require 'json' | |
| require "set" | |
| json = JSON.parse(File.open(ARGV[0]).read)["results"] | |
| # Pass 1: Collect headings | |
| headings = SortedSet.new | |
| json.each do |hash| | |
| headings.merge(hash.keys) | |
| end |
| driver: | |
| name: ec2 | |
| image_search: | |
| name: Windows_Server-2016-English-Full-Base-* | |
| region: eu-west-1 | |
| subnet_id: subnet-3615b351 | |
| instance_type: t2.micro | |
| aws_ssh_key_id: kitchen | |
| security_group_ids: | |
| - sg-496eaa31 |
| driver: | |
| synced_folders: [ | |
| ["./chef-installer", "/tmp/chef-installer"] | |
| ] | |
| provisioner: | |
| chef_omnibus_url: file:///tmp/chef-installer/install.sh # curl can accept a local file:// url |