DevOps supplies are not physical, which is exactly why they turn into clutter: scripts in three folders, credentials in a chat history, and a runbook that describes a server nobody owns anymore. Organizing them means giving every artifact a home, a name, and an owner. The payoff is that a deploy at midnight stops depending on somebody’s memory.
Inventory first
Before tidying anything, list what you have. Every account, server, repository, domain, scheduled job, and script. A plain spreadsheet is fine: name, purpose, owner, where it lives, and how it is backed up. The gaps in that list are usually more valuable than the tidy version of it, because they show what nobody is looking after.
Give everything a predictable name
Adopt one naming pattern for repositories, environments, and hosts, and write it down. Something like project-environment-role is boring and works. The point is that a stranger can guess where a thing lives and what it does. Rename the worst offenders rather than adding another layer of aliases.
- One repository per deployable service, plus one for shared config.
- Environment names used consistently everywhere: dev, staging, prod.
- Secrets named by purpose, never by person.
Separate the four kinds of stuff
Keep code, configuration, credentials, and documentation visibly apart. Code lives in Git with a README that explains how to run it. Configuration lives in version control with the code, minus the secrets. Credentials live only in a password or secrets manager, never in a document or a pinned message. Documentation lives where the next person will look, which is usually the repository, not a drive folder.
Tame the scripts folder
Most teams have a graveyard of one-off scripts. Move the useful ones into a repository with a short header comment stating what they do, what they expect, and who last used them. Delete the rest after checking they are not referenced. If a script is run on a schedule, its schedule belongs in documentation, not in someone’s memory.
Put a date in every script header and a name next to it. When something breaks during an outage, being able to ask the person who wrote it is worth more than a clean commit history. If nobody remembers who wrote a script and it has not run in a year, archive it in a folder named for the quarter instead of deleting it outright.
Runbooks and a monthly sweep
A runbook should answer the three questions a tired person asks: what does normal look like, what do I check first, and who do I call. Keep them short, dated, and linked from the repository README. Review them after any incident, when the missing step is fresh.
Once a month, spend thirty minutes: update the inventory, rotate anything overdue, confirm backups restore, and delete what is finished. Small regular maintenance is the only thing that keeps a system from quietly becoming archaeology.
Label it, store it in the repository, write down why it exists. Ten organized minutes a month will keep your tooling usable long after the enthusiasm that built it.