hkjninfra

command module
v0.0.0-...-fb6b401 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2017 License: MIT Imports: 9 Imported by: 0

README

hkjninfra

Repo hkjninfra holds infrastructure configs for hkjn.me and other projects.

Dockerized Terraform

A dockerized Terraform alias tf can be added to our shell by:

source tf_dockerized.sh

After this, we can use tf plan, tf apply and other commands.

Dockerized gcloud tools

An alias for working with a dockerized set of gcloud tools can be added by the command:

source gcloud_dockerized.sh

After this, the gcd command enters an interactive container which can work towards the GCE project.

Ignition format of user-data

The user-data field for CoreOS machines is in Ignition format:

The ignite.py script generates the Ignition .json configs, which tells the instances what tasks should be done on first boot:

python ignite.py

Tests

The run_tests script runs all relevant tests. It can be added to git pre-push and pre-commit hooks by doing:

cd .git/hooks
ln -s ../../run_tests pre-commit
ln -s ../../run_tests pre-push

Documentation

Overview

fetch_checksums.go is a tool to read nodes.json

ignite.go generates Ignite JSON configs.

TODO: could version the systemd units as well.

Directories

Path Synopsis
Package ignite deals with Ignite JSON configs.
Package ignite deals with Ignite JSON configs.
cmd
secretservice is a fileserver serving up secrets over HTTPS.
secretservice is a fileserver serving up secrets over HTTPS.
telemetry
client
client.go implements a GRPC Report client.
client.go implements a GRPC Report client.
report
Package report is a generated protocol buffer package.
Package report is a generated protocol buffer package.
server
server.go implements a GRPC Report server.
server.go implements a GRPC Report server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL