Socket
Socket
Sign inDemoInstall

@installdoc/ansible-gas-station

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @installdoc/ansible-gas-station

An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤


Version published
Weekly downloads
19
increased by5.56%
Maintainers
1
Created
Weekly downloads
 

Readme

Source
Gas Station logo

Ansible Playbook: Gas Station ⛽

Brought to you by Megabyte Labs


A no-stone-unturned Ansible playbook you can use to set up the ultimate home lab or on-premise addition to your cloud!


Table of Contents

Introduction

Welcome to a new way of doing things. Born out of complete paranoia and a relentless pursuit of the best of GitHub Awesome lists, Gas Station aims to add the capability of being able to completely wipe whole networks and restore them on a regular basis. It takes a unique approach to network provisioning because it supports desktop provisioning as a first-class citizen. By default, without much configuration, it is meant to provision and maintain the state of a network that includes development workstations and servers. One type of user that might benefit from this project is a web developer who wants to start saving the state of their desktop as code. Another type of user is one who wants to start hosting RAM-intensive web applications in their home-lab environment to save huge amounts on cloud costs. This project is also meant to be maintainable by a single person. Granted, if you look through our eco-system you will see we are well-equipped for supporting entire teams as well.

Gas Station a collection of Ansible playbooks, configurations, scripts, and roles meant to provision computers and networks with the "best of GitHub". By leveraging Ansible, you can provision your whole network relatively fast in the event of a disaster or scheduled network reset. This project is also intended to increase the security of your network by allowing you to frequently wipe, reinstall, and re-provision your network, bringing it back to its original state. This is done by backing up container storage volumes (like database files and Docker volumes) to encrypted S3 buckets, storing configurations in encrypted git repositories, and leveraging GitHub-sourced power tools to make the job easy-peasy.

This project started when a certain somebody changed their desktop wallpaper to an cute picture of a cat 🐱 when, all of a sudden, their computer meowed. Well, it actually started before that but no one believes someone who claims that time travelers hacked them on a regular basis. Tip: If you are stuck in spiritual darkness involving time travelers, save yourself some headaches by adopting an other-people first mentality that may include volunteering, tithing, and surrendering to Jesus Christ. Anyway, enough preaching!

Gas Station is:

  • Highly configurable - most roles come with optional variables that you can configure to change the behavior of the role
  • Highly configured - in-depth research is done to ensure each software component is configured with bash completions, plugins that are well-received by the community, and integrated with other software used in the playbook
  • Compatible with all major operating systems (i.e. Windows, Mac OS X, Ubuntu, Fedora, CentOS, Debian, and even Archlinux)
  • The product of a team of experts
  • An amazing way to learn about developer tools that many would consider to be "the best of GitHub"
  • Open to new ideas - feel free to open an issue or contribute with a pull request!

Quick Start

The easiest way to run the entire playbook, outlined in the main.yml file, is to run the appropriate command listed below. These commands will run the playbook on the machine you run the command on. This is probably the best way to get your feet wet before you decide to give us a ⭐ and customize the playbook for your own needs. Ideally, this command should be run on the machine that you plan on running Ansible with to provision the other computers on your network. It is only guaranteed to work on fresh installs so testing it out with Vagrant is highly encouraged.

To test it out with Vagrant, you can run the following commands which will open up an interactive dialog where you can pick which operating system and virtualization provider you wish to test the installation with:

bash .config/scripts/start.sh # Only required if you do not have the dependencies (i.e. Task) already installed
task ansible:test:vagrant

macOS/Linux

curl -sS https://gitlab.com/megabyte-labs/gas-station/-/raw/master/files/quickstart.sh | bash

Windows

In an administrative PowerShell session, run:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gitlab.com/megabyte-labs/gas-station/-/raw/master/files/quickstart.ps1'))

Supported Operating Systems

The following chart shows the operating systems that have been tested for compatibility using the environments/dev/ environment. This chart is automatically generated using the Ansible Molecule tests you can view in the molecule/default/ folder. We currently have logic in place to automatically handle the testing of Windows, Mac OS X, Ubuntu, Fedora, CentOS, Debian, and Archlinux. If your operating system is not listed but is a variant of one of the systems we test (i.e. a Debian-flavored system or a RedHat-flavored system) then it might still work.

compatibility_matrix

Requirements

Host Requirements

There are Python and Ansible package requirements need to be installed by running the following command (or equivalent) in the root of this repository:

if type poetry &> /dev/null; then poetry install --no-root; else pip3 install -r .config/requirements.txt; fi
ansible-galaxy install requirements.yml
Easier Method of Installing the Host Requirements

You can also run bash .config/scripts/start.sh if you do not mind development dependencies being installed as well. This method will even handle installing Python 3 and Ansible.

Operating System

This playbook is built and tested to run on fresh installs of Windows, Mac OS X, Ubuntu, Fedora, Debian, CentOS, and Archlinux. It may still be possible to run the playbook on your current machine. However, installing the playbook on a fresh install is the only thing we actively support. That said, if you come across an issue with an environment that already has configurations and software present, please do not hesitate to open an issue.

Connection

SSH (or WinRM in the case of Windows) and Python should be available on the target systems you would like to provision. If you are attempting to provision a Windows machine, you can ensure that WinRM is enabled and configured so that you can remotely provision the Windows target by running the following command with PowerShell:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gitlab.com/megabyte-labs/gas-station/-/raw/master/files/client.ps1'))

MAS on Mac OS X

We use mas to install apps from the App Store in some of our roles. Sadly, automatically signing into the App Store is not possible on OS X 10.13+ via mas. This is because mas no longer supports login functionality on OS X 10.13+.

There is another caveat with mas. In order to install an application using mas, the application has to have already been added via the App Store GUI. This means that the first time around you will have to install the apps via the App Store GUI so they are associated with your App Store account.

Software

This project breaks down software into a role (found in the subdirectories of the roles/ folder) if the software requires anything other than being added to the PATH variable. Below is a quick description of what each role does. Browsing through this list, along with the conditions laid out in main.yml, you will be able to get a better picture of what software will be installed by the default main.yml playbook.

role_descriptions

We encourage you to browse through the repositories that are linked to in the table above to learn about the configuration options they support.

Binaries

A lot of nifty software does not require any configuration other than being added to the PATH or being installed with an installer like brew. For this kind of software that requires no configuration, we list the software we would like installed by the playbook as a variable in group_vars/ or host_vars/ as an array of keys assigned to the software variable (example here). With those keys, we install the software using the [professormanhattan.genericinstaller](https://galaxy.ansible.com/professormanhattan/genericinstaller) role which determines how to install the binaries by looking up the keys against the software_package object (example here). For your convienience, the software we recommend and install by default is listed below:

PackageDescription
actTo run Github Actions locally
altairA beautiful feature-rich GraphQL Client for all platforms
askgitQuery git repositories with SQL. Generate reports, perform status checks, analyze codebases
bandwhichTerminal bandwidth utilization tool
baneCustom & better AppArmor profile generator for Docker containers
batClone of cat(1) with syntax highlighting and Git integration
betwixtWeb Debugging Proxy based on Chrome DevTools Network panel
binEffortless binary manager
bitwardenThe desktop vault (Windows, macOS, & Linux)
bivacBackup Interface for Volumes Attached to Containers
boilrboilerplate template manager that generates files or directories from template repositories
captainHelps manage docker-compose.yml files from anywhere in the file system
cerebroOpen-source productivity booster with a brain
clairVulnerability Static Analysis for Containers
consul-cliCommand line interface to Consul HTTP API
crocEasily and securely send things from one computer to another
ctopTop-like interface for container metrics
cumulusA SoundCloud player that lives in the menubar
daselSelect, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool
datpeer-to-peer sharing & live syncronization of files via command line
dat-desktopPeer to peer data syncronization
deltaA syntax-highlighting pager for git and diff output
diveA tool for exploring each layer in a docker image
desedDebugger for Sed: demystify and debug the sed scripts, from comfort of terminal
detaCommand line interface for managing Deta micros and deployments
direnvExtension to load and unload environment variables depending on the current directory
docker-slimExtension to minify and secure Docker images
dockleContainer Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start
doctlThe official command line interface for the DigitalOcean API
dogA command-line DNS client
dufa better 'df' alternative
dustA more intuitive version of du in rust
envconsulLaunch a subprocess with environment variables using data from @hashicorp Consul and Vault
fdA simple, fast and user-friendly alternative to 'find'
felonyAn open-source pgp keychain built on the modern web with Electron, React, and Redux
ffsendEasily and securely share files from the command line, a fully featured Firefox Send client
filebrowserWeb file browser
fmTerminal file manager
fselectExtension to find files with SQL-like queries
fqjq for binary formats
fuegoFuego is a command line client for the firestore database
g-assistA cross-platform unofficial Google Assistant Client for Desktop
ganachePersonal blockchain for Ethereum development
gitifyGitHub notifications on the menu bar
gitleaksExtension to scan git repos (or files) for secrets using regex and entropy
gitomaticA tool to monitor git repositories and automatically pull & push changes
glabAn open-source GitLab command line tool bringing GitLab's cool features to your command line
glowGlow is a terminal based markdown reader designed from the ground up to bring out the beauty—and power—of the CLI
gojqgojq is a pure Go implementation of jq that is mostly backwards compatible (but not completely)
go-chromecastcli for Google Chromecast, Home devices and Cast Groups
gpingPing, but with a graph
grexA command-line tool and library for generating regular expressions from user-provided test cases
gronExtension to make JSON greppable
hclqCommand-line processor for HashiCorp config files, like sed for HCL — Terraform, Consul, Nomad, Vault
hexylA command-line hex viewer
heyHTTP load generator, ApacheBench (ab) replacement, formerly known as rakyll/boom
hostctlThis tool gives more control over the use of hosts file
htmlqA lightweight and flexible command-line JSON processor for HTML
hyperfineA command-line benchmarking tool
jiqCreate jq queries interactively by leveraging a live reload feature in the terminal
jitsi-meet-electronDesktop application for Jitsi Meet built with Electron
joJSON output from a shell
jqCommand-line JSON processor
kdashA simple and fast dashboard for Kubernetes
kubenavkubenav is the navigator for your Kubernetes clusters right in your pocket
licenseCommand-line license text generator
linuxkitA toolkit for building secure, portable and lean operating systems for containers
mantaFlexible invoicing desktop app with beautiful & customizable templates
mark-textA simple and elegant markdown editor, available for Linux, macOS and Windows
masscodeA free and open source code snippets manager for developers
mcMinIO Client is a replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage
mjml-appThe desktop app for MJML
mkcertA simple zero-config tool to make locally trusted development certificates with any names
mockoonMockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source
motrixA full-featured download manager
mqttxElegant Cross-platform MQTT 5.0 Desktop Client
muffetFast website link checker in Go
mullvad-vpnThe Mullvad VPN client app for desktop and mobile
nebulaA scalable overlay networking tool
nnnA full-featured terminal file manager
node-pruneExtension to remove unnecessary files from node_modules
nominoBatch rename utility for developers
nuclearStreaming music player that finds free music
osquerySQL powered operating system instrumentation, monitoring, and analytics
otsShare end-to-end encrypted secrets with others via a one-time URL
oqA performant, and portable jq wrapper to facilitate the consumption and output of formats other than JSON; using jq filters to transform the data
page-fetchFetch web pages using headless Chrome, storing all fetched resources including JavaScript files
passPassword manager
pastelA command-line tool to generate, analyze, convert and manipulate colors
pecoSimplistic interactive filtering tool
ponyLocal file-based password, API key, secret, recovery code store backed by GPG
pretzelPretzel is Mac desktop app that shows and find keyboard shortcuts based on your current app
procsA modern replacement for ps written in Rust
psuCLI client for Portainer
pupParsing HTML at the command line
qRun SQL directly on CSV or TSV files
responsivelyA modified web browser that helps in responsive web development
ripA safe and ergonomic alternative to rm
runjsA JavaScript playground that auto-evaluates as you type
s5cmdParallel S3 and local filesystem execution tool
schemaA tool to infer and instantiate schemas and translate between data formats
scrcpyA simple & beautiful GUI application for scrcpy
sdIntuitive find & replace CLI (sed alternative)
shfmtA shell parser, formatter, and interpreter with bash support; includes shfmt
skmA simple and powerful SSH keys manager
sqlectronA simple and lightweight SQL client desktop with cross database and platform support
ssh-vaultEncrypt/decrypt using ssh keys
ssl-proxySimple zero-config SSL reverse proxy with real autogenerated certificates
switchhostsExtension to switch hosts
sysbenchSystem performance benchmark tool
tabbyA terminal for a more modern age
taskA task runner / simpler Make alternative written in Go
teleportModern SSH server for teams managing distributed infrastructure
tflintA Pluggable Terraform Linter
tempsSimple menubar application based on Electron with actual weather information and forecast
tokeiTokei is a program that displays statistics about the code
transferConverts from one encoding to another
trivyScanner for vulnerabilities in container images, file systems, and Git repositories, as well as for configuration issues
upUltimate Plumber is a tool for writing Linux pipes with instant live preview
udemy-downloader-guiA desktop application for downloading Udemy Courses
waypointA tool to build, deploy, and release any application on any platform
websocatCLI for interacting with web sockets
webtorrentStreaming torrent app for Mac, Windows, and Linux
WhalerWhaler takes a Docker image and attempts to reverse engineer the Dockerfile that created it
wkhtmltopdfConvert HTML to PDF using Webkit (QtWebKit)
xurlsExtract urls from text
yqProcess YAML documents from the CLI

NPM Packages

NPM provides a huge catalog of useful CLIs and libraries so we also include a useful and interesting default set of NPM-hosted CLIs for hosts in the desktop group (defined here, for example):

PackageDescription
@angular/cliOfficial CLI for Angular capable of generating new projects, generating boilerplate files, and testing apps with LiveReload
@cloudflare/wranglerA CLI tool designed for folks who are interested in using Cloudflare Workers
@ionic/cliA command line interface (CLI) is go-to tool for developing Ionic apps
@nestjs/cliA command-line interface tool that helps you to initialize, develop, and maintain your Nest applications
@sentry/cliA Sentry command line client for some generic tasks
@vercel/nccCLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style
auto-installAuto installs dependencies as you code
bitly-cli-clientShorten links with Bitly in the terminal
browser-synctest desktop and mobile versions of a website at the same time
caniuse-cmdCaniuse command line tool
carbon-now-cliTool that generates beautiful images of source code through an intuitive UI, while customizing aspects like fonts, themes, window controls and much mor
commitizenThe commitizen command line utility
cordovaThe command line tool to build, deploy and manage Cordova-based applications
deviceframePut device frames around mobile/web/progressive app screenshots
editlyA tool and framework for declarative NLE (non-linear video editing) using Node.js and ffmpeg
electronA tool that enables to write cross-platform desktop applications using JavaScript, HTML and CSS
emma-cliInstall the package you are looking for
emojFind relevant emoji from text on the command-line
empty-trash-cliA CLI to empty the trash
eslintA tool for identifying and reporting on patterns found in ECMAScript/JavaScript code
fastify-cliCommand line tools for Fastify. Generate, write, and run an application with one single command
firebase-toolsThe Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy Firebase project from the command line
fkill-cliFabulously kill processes. Cross-platform.
fxCommand-line JSON processing tool
git-openType git open to open the repo website (GitHub, GitLab, Bitbucket) in browser
google-font-installerGoogle Font Installer is a NodeJS module/CLI that lets you Search, Download and Install fonts offered by Google Web Fonts
gtopSystem monitoring dashboard for terminal
gulpA toolkit that helps you automate painful or time-consuming tasks in your development workflow
imgur-uploader-cliCLI to upload images to imgur
ios-deployCommand line tool to install aand debug iOS apps
ipfs-deployUpload static website to IPFS pinning services and optionally update DNS
is-up-cliCheck whether a website is up or down using the isitup.org API
localtunnellocaltunnel exposes localhost to the world for easy testing and sharing
mjmlA markup language created by Mailjet and designed to reduce the pain of coding a responsive email
nativefierTool to make any web page a desktop application
nectarjsA JavaScript native compiler
newmanA command-line collection runner for Postman
npA better npm publish
npm-checkCheck for outdated, incorrect, and unused dependencies
nrmnrm can help you easy and fast switch between different npm registries
oclifA framework for building CLIs in Node.js
package-sizeTool to get the bundle size of an npm package
pageres-cliA CLI to capture screenshots of websites in various resolutions
playwrightSingle API to automate Chromium, WebKit, and Firefox (available as a CLI and library)
pm2PM2 is a production process manager for Node.js applications with a built-in load balancer
pkgThis command line interface enables you to package your Node.js project into an executable that can be run even on devices without Node.js installed
prettierA code formatter
psiPageSpeed Insights with reporting
ramda-cliA tool for processing data with functional pipelines in the command-line or interactively in browser
serveStatic file serving and directory listing
serverlessServerless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
share-cliQuickly share files from your command line
sharp-cliCLI for sharp, a high performance Node.js image processing module
speed-testTest your internet connection speed and ping using speedtest.net from the CLI
stegcloakStegCloak is a pure JavaScript steganography module designed in functional programming style, to hide secrets inside text by compressing and encrypting the secret before cloaking it with special unicode invisible characters
supdockA CLI for running commands like "docker logs" in an easier, more interactive way
surgePublish web apps to a CDN with a single command and no setup required
svgoSVG Optimizer is a Node.js-based tool for optimizing SVG vector graphics files
terminalizerRecord your terminal and generate animated gif images or share a web player link terminalizer.com
tinypng-cliHandy command line tool for shrinking PNG images using the TinyPNG API
tldrA Node.js based command-line client for tldr
ts2cA JavaScript/TypeScript to C compiler
typescriptA language for application-scale JavaScript
wifi-password-cliCLI to get current wifi password
wordpressifyAutomate your WordPress development workflow
zxA tool for writing better scripts

Python Packages

In a similar fashion to the NPM packages, we include a great set of default Python packages that are included by default for the desktop group (defined here):

PackageDescription
ansibleconnectParses Ansible inventory and opens up a tmux session for each host
ansible-lintLint tool that checks Ansible projects for best practices and problematic code
asciinemaTool that records terminal session and replay them in a terminal as well as in a web browser
aws-shellAWS shell is the interactive productivity booster for the AWS CLI
cookiecutterA command-line utility that creates projects from cookiecutters (project templates)
gdownAn alternative to wget and curl that can handle downloading large files from Google Drive
git-filter-repoTool that aids in wiping particular sections of a repository
gixyA tool to analyze Nginx configuration
httpstatA script that reflects curl statistics in a fascinating and well-defined way, it is a single file which is compatible with Python 3 and requires no additional software (dependencies) to be installed on a users system
http-promptAn interactive command-line HTTP client featuring autocomplete and syntax highlighting, built on HTTPie and prompt_toolkit
iredisA terminal client for redis with auto-completion and syntax highlighting
kube-shellAn integrated shell for working with the Kubernetes CLI
litecliA command-line client for SQLite databases that has auto-completion and syntax highlighting
netaddrA system-independent network address manipulation library for Python 2.7 and 3.5+
ngxtopngxtop parses your nginx access log and outputs useful, top-like, metrics of your nginx server
moleculeMolecule project is designed to aid in the development and testing of Ansible roles. Molecule provides support for testing with multiple instances, operating systems and distributions, virtualization providers, test frameworks and testing scenarios
mycliCommand line interface for MySQL database with auto-completion and syntax highlighting
pre-commitA framework for managing and maintaining multi-language pre-commit hooks
pywhatwhat is recursive
social-analyzerAPI, CLI & Web App for analyzing & finding a person’s profile across social media websites
spotdlA tool to download Spotify playlists and songs along with album art and metadata
starredGenerate a GitHub Awesome list directly from your starred repositories
statcodeman pages for HTTP status codes (used by running statcode 418, for instance)
truffleHogA tool which makes it easier to search through the history of a git repository to discover passwords and other secrets
virtualenvA tool for creating isolated virtual python environments
yamllintA linter for YAML files

Ruby Gems

A handful of Ruby gems are also installed on targets in the desktop group (defined here):

PackageDescription
bropagesInformative CLI tool that provides community-curated examples for most CLI programs
bundlerA tool that manages ruby application's gem dependencies through its entire life, across many machines, systematically and repeatably
chefA systems integration framework, built to bring the benefits of configuration management to the entire infrastructure
cocoapodsA tool that manages library dependencies for Xcode project
fpmA tool that converts directories, rpms, python eggs, rubygems, and more to rpms, debs, solaris packages and more
gistA tool that provides a single function (Gist.gist) that uploads a gist
mdlA style checker/lint tool for markdown files
tA command-line power tool for Twitter

Visual Studio Code Extensions

A considerable amount of effort has gone into researching and finding the "best" VS Code extensions. They are defined here and Gas Station also installs a good baseline configuration which includes settings for these extensions:

PackageDescription
Angular.ng-templateEditor services for Angular template files
attilabuti.vscode-mjmlMJML preview, lint, and compile
bierner.markdown-emojiAdds emoji syntax support to VS Code's built-in Markdown preview
ChakrounAnas.turbo-console-logThis extension make debugging much easier by automating the operation of writing meaningful log message
ChFlick.firecodeFirestore security rule support for Visual Studio Code
chrmarti.regexShows the current regular expression's matches in a side-by-side document
cweijan.vscode-mysql-client2A database GUI for SQL, SQLite, MongoDB, Redis, and ElasticSearch
DavidAnson.vscode-markdownlintMarkdown/CommonMark linting and style checking for Visual Studio Code
dbaeumer.vscode-eslintIntegrates ESLint into VS Code
denoland.vscode-denoAdds support for Deno (powered by the Deno language server)
eamodio.gitlensGitLens is a popular extension that supercharges the Git capabilities built into VS Code
EditorConfig.EditorConfigThis plugin attempts to override user/workspace settings with setting found in .editorconfig files
esbenp.prettier-vscodePrettier is an opinionated code formatter
ericadamski.carbon-now-shA VS Code extension to open the current editor content in carbon.now.sh
firsttris.vscode-jest-runnerManage, run, and debug individual Jest tests
formulahendry.auto-rename-tagAutomatically rename paired HTML/XML tag, same as Visual Studio IDE does
formulahendry.code-runnerRun code snippet or code file
GitHub.vscode-pull-request-githubReview and manage your GitHub pull requests and issues directly in VS Code
GitLab.gitlab-workflowThis extension integrates GitLab to VS Code
GoogleCloudTools.cloudcodeThis extension brings the power and convenience of IDEs to cloud-native application development
golang.GoThis extension provides rich language support for the Go programming language, integrates with Google Cloud services like Google Kubernetes Engine, Cloud Run, Cloud APIs, and Secret Manager
HashiCorp.terraformThis extension adds syntax highlighting and other editing features for Terraform files using the Terraform Language Server
hediet.vscode-drawioAllows editing draw.io images in VS Code by adding files ending with .drawio.png
IBM.output-colorizerThis extension adds syntax colorization for both the output/debug/extensions panel and *.log files, other extension that colorize the output panel will disable this extension
Kelvin.vscode-sshfsAllows mounting SSH destinations as file system mounts inside VS Code
mads-hartmann.bash-ide-vscodeThis extension utilizes the bash language server, that is based on Tree Sitter and its grammar for Bash and supports explainshell integration
ms-azuretools.vscode-dockerThis extension makes it easy to build, manage, and deploy containerized applications from Visual Studio Code
ms-kubernetes-tools.vscode-kubernetes-toolsThe extension for developers building applications to run in Kubernetes clusters and for DevOps staff troubleshooting Kubernetes applications
ms-vscode-remote.remote-containersContainers extension enables the use a Docker container as a full-featured development environment
ms-vscode-remote.remote-sshSSH enables the use of any remote machine with a SSH server as the development environment
ms-vscode-remote.remote-wslWSL extension enables the use VS Code on Windows to build Linux applications that run on the Windows Subsystem for Linux(WSL)
ms-python.pythonA VS Code extension with rich support for the Python language, including features such as IntelliSense (Pylance), linting, debugging, code navigation, code formatting, refactoring, variable explorer, test explorer, and more
ms-vscode.PowerShellThis extension provides rich PowerShell language support for Visual Studio Code
MS-vsliveshare.vsliveshareThis extension enables to collaboratively edit and debug with others in real time, regardless what programming languages are used
MS-vsliveshare.vsliveshare-audioThis extension enhances the existing Visual Studio Live Share experience, by enabling to quickly spin up an audio call directly from within Visual Studio Code, without needing to use a separate tool or service
njpwerner.autodocstringAids in writing Python doc strings via templates
nrwl.angular-consoleA UI to accompany the Nx CLI
paulvarache.vscode-taskfileThis extension provides Intellisense, Tasks, a Tree View and Hover actions for your Taskfiles
philnash.ngrok-for-vscodeA VSCode extension for controlling ngrok from the command palette
PKief.material-icon-themeMaterial design icons
pranaygp.vscode-css-peekA VSCode extension for peeking at CSS definitions from a class or id taq in HTML
quicktype.quicktypeAn extension that generates types and helper code for reading JSON
rbbit.typescript-heroA VSCode extension to organize and sort all the TS imports
redhat.ansibleThis extension adds language support for Ansible to Visual Studio Code and OpenVSX compatible editors by leveraging ansible-language-server
redhat.vscode-yamlProvides comprehensive YAML Language support to Visual Studio Code, via the yaml-language-server, with built-in Kubernetes syntax support
richie5um2.vscode-sort-jsonAlphabetically sorts the keys in selected JSON objects
Rubymaniac.vscode-paste-and-indentThis extension adds limited support for pasting and indenting code
salbert.comment-tsAdds automatic templating of TypeScript-flavored JSDoc comments
shd101wyy.markdown-preview-enhancedAn extension that provides with many useful functionalities such as automatic scroll sync, math typesetting, mermaid, PlantUML, pandoc, PDF export, code chunk, presentation writer, etc
softwaredotcom.swdc-vscodeA plugin for automatic programming metrics and time tracking Visual Studio Code
steoates.autoimportAn extension that automatically finds, parses and provides code actions and code completion for all available imports
stylelint.vscode-stylelintA mighty, modern CSS linter that helps to enforce consistent conventions and avoid errors in stylesheets
timonwong.shellcheckIntegrates Shellcheck linting (linting for shell scripts)
toba.vsfireA VSCode extension for syntax highlighting, hover help and code completions with Firestore security rules and index definition files
tyriar.sort-linesAn extension that sorts lines of text in Visual Studio Code
usernamehw.errorlensAn extension that charges language diagnostic features by making diagnostics stand out more prominently, highlighting the entire line wherever a diagnostic is generated by the language and also prints the message inline
valentjn.vscode-ltexAdds LanguageTool functionality including grammar and spell-checking
VisualStudioExptTeam.vscodeintellicodeThe IntelliCode extension for Visual Studio Code provides artificial intelligence-assisted IntelliSense for Python, Java, TypeScript, and JavaScript
vsciot-vscode.vscode-arduinoThe Arduino extension makes it easy to develop, build, deploy and debug your Arduino sketches in Visual Studio Code, with a rich set of functionalities
vsls-contrib.codetourAllows running, creating, and editting code tours which are a unique way of guiding contributors through the code base of a project
vsls-contrib.gistfsA Visual Studio Code extension that allows you to edit GitHub Gists and repositories from the comfort of your favorite editor
wayou.vscode-todo-highlightAn extension that highlights TODO, FIXME, and other annotations within the code
wix.vscode-import-costThis extension will display inline in the editor the size of the imported package
yatki.vscode-surroundEasily add code that surrounds other code like try/catches

Chrome Extensions

To reduce the amount of time it takes to configure Chromium-based browsers like Brave, Chromium, and Chrome, we also include the capability of automatically installing Chromium-based browser extensions (via a variable defined here):

PackageDescription
AdGuard AdBlockerBlocks all types of ads on all web pages, even on Facebook, YouTube and all other websites
BitlyCreates short, customized, powerful links from any page and share them with the world
BitwardenA secure and free password manager for all of the devices
BufferShares contents to Instagram, Twitter, Facebook, Pinterest and LinkedIn from anywhere on the web
CheckbotSEO, web speed, and security tester/crawler
FalconChrome extension for full text history search
FloccusSyncs bookmarks across browsers via Nextcloud, WebDAV or Google Drive
Git History Browser ExtensionAdds a button to github to see the file history
Google DictionaryView definitions easily as you browse the web
GrammarlyA Chrome extension for grammar and spelling to style and tone, and eliminate writing errors and find the perfect words to express
Headless RecorderA Chrome extension for recording browser interaction and generating Puppeteer & Playwright scripts
HTTPS EverywhereA Chrome extension to encrypt the Web! Automatically use HTTPS security on many sites
JSON Viewer ProA completely free extension to visualise JSON response in awesome Tree and Chart view with great user experience and options
LastPassA password manager that saves passwords and gives secure access from every computer and mobile device
LanguageToolGrammar and spelling checker with Google Docs integration
Markdown HereA Chrome extension to write email in Markdown and render it (make it pretty!) before sending
MetaMaskAn extension for accessing Ethereum enabled distributed applications, or "Dapps" in browser
OctohintThe missing IntelliSense hint for GitHub and GitLab
RakutenA Chrome extension to find best shopping deals and coupons and just save them
ScreenityThe most powerful screen recorder for Chrome
SingleFileA Chrome extension to save a complete page into a single HTML file
SponsorBlockA Chrome extension to skip sponsorships, subscription begging and more on YouTube videos
Vimeo RecordA Chrome extension to record and share unlimited free video messages from your browser
Web VitalsA Chrome extension to measure metrics for a healthy site

Homebrew Formulae (macOS and Linux only)

Although most of the brew installs are handled by the Binaries installer, some brew packages are also installed using this configuration. The default Homebrew formulae include:

PackageDescription
automakeTool for generating GNU Standards-compliant Makefiles
carthageA simple, decentralized dependency manager for Cocoa
chrome-cliControl Google Chrome from the command-line
findutilsCollection of GNU find, xargs, and locate
ideviceinstallerTool for managing apps on iOS devices
libimobiledeviceLibrary to communicate with iOS devices natively

Homebrew Casks (macOS only)

On macOS, some software is installed using Homebrew casks. These include:

PackageDescription
clockermacOS program that shows the time in multiple timezones in the top menu bar
secretivethere is no importing/exporting keys so you only have access to the public key
slothmacOS program that shows all open files, directories, sockets, pipes, and devices in use by all running processes on the system
statsmacOS program that shows the system monitor in the top menu bar

Go, Rust, and System-Specific Packages

Go packages, Rust crates, and system-specific packages like .deb and .rpm bundles are all handled by the [professormanhattan.genericinstaller](https://galaxy.ansible.com/professormanhattan/genericinstaller) role described above in the Binaries section. There are also ways of installing Go and Rust packages directly by using configuration options provided by their corresponding roles outlined in the Roles section.

Web Applications

This playbook does a bit more than just install software. It also optionally sets up web applications too. If you choose to deploy the default Gas Station web applications on your network, you should probably do it on a computer/server that has a lot of RAM (e.g. 64GB+).

Although a production environment will always be more stable and performant if it is hosted with a major cloud provider, sometimes it makes more sense to locally host web applications. Some applications have abnormally large RAM requirements that could potentially cost thousands per month to host with a legit cloud provider.

We use Kubernetes as the provider for the majority of the applications. It is a production-grade system and although there is a steeper learning curve it is well worth it. Each application we install is packaged as a Helm chart. All of the data is backed up regularly to an encrypted cloud S3 bucket of your choice.

Helm Charts

The available Helm charts that this playbook completely handles the set up for are listed below.

PackageDescription
BudibaseBudibase
ArgoHelm NEED (I thnink?)
cert-managerHelm NEED
Falco NEEDFalco NEED
GitLab RunnerDeploys an instance of GitLab runner to a Kubernetes cluster. GitLab runner allows you to attach computers to GitLab CI workflows.
kubequerykubequery
vaultwardenvaultwarden
DroneDrone
Kibana NEEDKibana NEED
HashiCorp ConsulHelm NEED
HashiCorp VaultHelm NEED
HashiCorp WaypointHelm
Kubernetes DashboardHelm NEED
kube-prometheus-stackInstalls a collection of Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator. This Helm includes the official Grafana Helm chart. NEED
ThanosThanos
MinioHelm
LokiLoki
Kubeapps NEEDKubeapps NEED
LogstashLogstash
ElasticSearchElasticSearch
n8nn8n
graylog NEEDgraylog NEED
Knative NEEDKnative NEED
Fission 8Fission 8
Concourse NEEDConcourse NEED
Nexus Repository ManagerHelm
RancherHelm
Sentry NEEDSentry NEED
UniFiHelm
CeliumNEED REQUIRED for GitLab -- see: https://docs.gitlab.com/ee/topics/autodevops/stages.html#network-policy
VectorVector
VeleroHelm NEED
DKronHelm
Space CloudWaiting on someone to make a Helm
Cool toolshttps://github.com/auto-ssl/lua-resty-auto-ssl https://github.com/weaveworks/weave https://adminbro.com/ https://www.vultr.com/products/bare-metal/ https://github.com/containrrr/watchtower https://www.boundaryproject.io/ https://artifacthub.io/packages/helm/cluster-autoscaler/cluster-autoscaler https://github.com/linkerd/linkerd2 https://cilium.io/ https://github.com/porter-dev/porter

Host Applications

By default, on each computer provisioned using the default settings of Gas Station, several apps are installed on each host. Docker Compose is used to manage the deployment. The default apps include:

AppDescription
AutheliaAn authentication portal that supports SSO and 2FA
HomerA very simple homepage which is customized by the playbook to automatically include links to the Docker containers you choose to host on the computer
PortainerA Docker management tool
ServeSimple interface for viewing files located or symlinked to in the /var/www/ folder of the machine

You can, of course, disable deploying these apps. However, we include them because they have a small footprint and include useful features. You can also customize the list of apps you wish to include on each host.

HTPC

We do not maintain any of the host applications except the ones listed above. However, we do provide the capability of marking a computer being provisioned as an HTPC. Doing this will include a suite of web applications with powerful auto-downloading, organizing, tagging, and media-serving capabilities. Since most people will probably be stepping outside the confines of the law for this, it is not recommended. If you still want to experiment then you can find descriptions of the applications below. The applications are intended to be hosted on a single computer via Docker Compose. The backend for Kodi is included but you should still use the regular installation method for Plex and the front-end of Kodi to view your media collection.

AppDescription
WireGuardDedicated VPN for the HTPC applications
BazarrManages and automatically downloads subtitles
HeimdallStart page for all the HTPC apps
JackettRequest proxy server for Radarr and Sonarr
Kodi HeadlessBackend for Kodi
LidarrMusic collection manager that automatically downloads from BitTorrent and Usenet
NZBGetUsenet downloader
OmbiPlex request and user management system
OrganizrFront end for HTPC web applications
RadarrAutomatic movie downloader
SonarrAutomatic TV show downloader
TautulliMetrics and monitoring for Plex
TransmissionBitTorrent client

Philosophy

The philosophy of this project basically boils down to "automate everything" and include the best development tools that might be useful without over-bloating the machine with services. Automating everything should include tasks like automatically accepting software terms in advance or pre-populating Portainer with certificates of all the Docker hosts you would like to control. One problem we face is that there are so many great tools offered on GitHub. A lot of research has to go into what to include and what to pass on. The decision of whether or not to include a piece of software in the default playbook basically boils down to:

  • Project popularity - If one project has 10k stars and a similar alternative has 500 stars then 9 times of out 10 the more popular project is selected.
  • Last commit date - We prefer software that is being actively maintained, for obvious reasons.
  • Cross platform - Our playbook supports the majority of popular operating systems so we opt for cross-platform software. However, in some cases, we will include software that has limited cross-platform support like Xcode (which is only available on Mac OS X). If a piece of software is too good to pass up, it is added and only installed on the system(s) that support it.
  • Usefulness - If a tool could potentially improve developer effectiveness then we are more likely to include it.
  • System Impact - Software that can be run with a small RAM footprint and software that does not need a service to load on boot is much more likely to be included.

One of the goals of this project is to be able to re-provision a network with the click of a button. This might not be feasible since consumer-grade hardware usually does not include features like IPMI (which is a feature included in high-end motherboards that lets you control the power state remotely). However, we aim to reduce the amount of interaction required when re-provisioning an entire network down to the bare minimum. In the worst case scenario, you will have to reformat, reinstall the operating system, and ensure that OpenSSH is running (or WinRM in the case of Windows) on each of the computers in your network. However, the long term goal is to allow the user to reformat and reinstall the operating system used as your Ansible host using an automated USB installer and then automatically re-provision everything else on the network by utilizing IPMI.

You might ask, "But how can I retain application-level configurations?" We currently handle this by:

  • Pre-defining dotfiles in a customizable Git repository
  • Backing up to encrypted S3 buckets
  • Syncing files to private git repositories
  • Utilizing tools that synchronize settings like mackup or macprefs in the case of macOS

However, we intentionally keep this synchronization to a minimum (i.e. only back up what is necessary). After all, one of the goals of this project is to be able to regularly flush the bad stuff off a system. By keeping what we back up to a minimum, we reduce the attack surface.

Architecture

You can find a high-level overview of what each folder and file does in the ARCHITECTURE.md file.

Managing Environments

We accomplish managing different environments by symlinking all the folders that should be unique to each network environment (e.g. host_vars/, group_vars/, inventories/, files/vpn/, and files/ssh/). In the environments/ folder, you will see multiple folders. In our case, environments/dev/ contains sensible configurations for testing the playbook and its' roles. The production environment is a seperate git submodule that links to a private git repository that contains our Ansible-vaulted API keys and passwords. When you are ready to set up your production configurations, you can use this method of storing your environment-specific folders in the environments/ folder as well. But if you are just starting off, you do not have to worry about this since, by default, this playbook is configured to run with the settings included in the /environments/dev/ folder.

Switching Between Environments

If you already have the project bootstrapped (i.e. already ran bash .config/scripts/start.sh), you can switch environments with an interactive prompt by running:

task ansible:playbook:environment

Alternatively, you can run the following if you would like to bypass the prompt:

task ansible:playbook:environment -- environmentName

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page. If you would like to contribute, please take a look at the contributing guide.

Sponsorship

Dear Awesome Person,

I create open source projects out of love. Although I have a job, shelter, and as much fast food as I can handle, it would still be pretty cool to be appreciated by the community for something I have spent a lot of time and money on. Please consider sponsoring me! Who knows? Maybe I will be able to quit my job and publish open source full time.

Sincerely,

Brian Zalewski

Open Collective sponsors GitHub sponsors Patreon

License

Copyright © 2020-2021 Megabyte LLC. This project is MIT licensed.

Keywords

FAQs

Last updated on 04 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc