Dissecting a running Linux instance to build a Packer configuration
How to extract packages, services, users, and filesystem configuration from a running Linux instance and use it as the basis for a repeatable Packer AMI template.
Linux administration, Bash, shell tooling and automation.
How to extract packages, services, users, and filesystem configuration from a running Linux instance and use it as the basis for a repeatable Packer AMI template.
How to chain commands with Bash pipes, why the default error-handling behaviour is dangerous, and how to fix it with pipefail, PIPESTATUS, and a defensive script header.
AWK scripts for converting between IP addresses and decimal numbers – and why this makes a reliable source of unique server IDs for MySQL replication clusters and other distributed systems.