[{"data":1,"prerenderedAt":237},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fgetting-started":3},{"id":4,"title":5,"body":6,"description":229,"extension":230,"meta":231,"navigation":232,"path":233,"seo":234,"stem":235,"__hash__":236},"docs\u002Fdocs\u002Fgetting-started\u002Findex.md","What is slo-gen?",{"type":7,"value":8,"toc":221},"minimark",[9,13,22,37,42,108,112,115,150,159,163,166,170,200],[10,11,5],"h1",{"id":12},"what-is-slo-gen",[14,15,16,17,21],"p",{},"slo-gen is a command-line tool called ",[18,19,20],"code",{},"sg",". It takes Ubuntu servers you can SSH into and turns them into hardened LXD hosts. Then it joins them into a cluster and deploys your applications onto it.",[14,23,24,25,32,33,36],{},"It is part of the Slo stack. ",[26,27,31],"a",{"href":28,"rel":29},"https:\u002F\u002Fwww.get-slo.sh",[30],"nofollow","Slo"," writes your code; slo-gen gives it somewhere to run. Its full name is Slo Genesis, which is why the specs say ",[18,34,35],{},"api_version: genesis\u002Fv1",".",[38,39,41],"h2",{"id":40},"what-it-manages","What it manages",[43,44,45,60],"table",{},[46,47,48],"thead",{},[49,50,51,55],"tr",{},[52,53,54],"th",{},"You write",[52,56,57,59],{},[18,58,20],{}," does",[61,62,63,74,84,94],"tbody",{},[49,64,65,71],{},[66,67,68],"td",{},[18,69,70],{},"machine.yaml",[66,72,73],{},"Hardens one Ubuntu host: packages, SSH, a deploy user, Tailscale, a firewall guard, ZFS storage and LXD.",[49,75,76,81],{},[66,77,78],{},[18,79,80],{},"cluster.yaml",[66,82,83],{},"Forms an LXD cluster over three or more of those machines.",[49,85,86,91],{},[66,87,88],{},[18,89,90],{},"application.yaml",[66,92,93],{},"Deploys containers and VMs onto the cluster, with volumes, PostgreSQL or ClickHouse, and an HAProxy load balancer.",[49,95,96,102],{},[66,97,98],{},[99,100,101],"em",{},"(nothing)",[66,103,104,107],{},[18,105,106],{},"sg panel"," serves a local browser UI and JSON API over the same commands.",[38,109,111],{"id":110},"how-it-behaves","How it behaves",[14,113,114],{},"Every resource works the same way:",[116,117,118,126,136],"ol",{},[119,120,121,125],"li",{},[122,123,124],"strong",{},"Write a spec."," YAML, strict. Unknown fields are refused, so typos don't get silently ignored.",[119,127,128,131,132,135],{},[122,129,130],{},"Read the plan."," ",[18,133,134],{},"plan"," connects, observes and prints ordered changes with a risk grade each. It writes nothing.",[119,137,138,141,142,145,146,149],{},[122,139,140],{},"Confirm the apply."," The apply builds a fresh plan, prints it and asks ",[18,143,144],{},"[y\u002FN]",". Anything but ",[18,147,148],{},"y"," stops.",[14,151,152,153,155,156,158],{},"Everything ",[18,154,20],{}," changes is recorded in a local SQLite ledger next to your specs. Rollback and destroy only act on what that ledger proves ",[18,157,20],{}," created. Anything else is reported as retained and left alone.",[38,160,162],{"id":161},"who-its-for","Who it's for",[14,164,165],{},"People who rent a few servers and want them to behave like a small private cloud, without running a control plane. No account, no daemon, no agent on the hosts. One binary on your laptop, a directory of YAML, and SSH.",[38,167,169],{"id":168},"what-it-isnt","What it isn't",[171,172,173,188,194],"ul",{},[119,174,175,178,179,182,183,187],{},[122,176,177],{},"Not production-proven."," It's ",[18,180,181],{},"0.1.0-dev",". Read ",[26,184,186],{"href":185},"\u002Fdocs\u002Freference\u002Fstatus","Status and limitations"," first.",[119,189,190,193],{},[122,191,192],{},"Not a Kubernetes."," There's no scheduler moving things around. You pin each instance to a member, and it stays there.",[119,195,196,199],{},[122,197,198],{},"Not a provisioner."," It doesn't create servers at a cloud provider. You bring hosts you can already SSH into.",[201,202,204],"note",{"kind":203},"tip",[14,205,206,207,211,212,216,217,187],{},"New here? ",[26,208,210],{"href":209},"\u002Fdocs\u002Finstallation","Install sg",", then follow ",[26,213,215],{"href":214},"\u002Fdocs\u002Fmachines\u002Ffirst-machine","Launch your first machine",". If you'd rather have a coding agent drive, ",[26,218,220],{"href":219},"\u002Fdocs\u002Fagents","give it the manual",{"title":222,"searchDepth":223,"depth":223,"links":224},"",2,[225,226,227,228],{"id":40,"depth":223,"text":41},{"id":110,"depth":223,"text":111},{"id":161,"depth":223,"text":162},{"id":168,"depth":223,"text":169},"slo-gen (the sg CLI) turns plain Ubuntu servers into hardened LXD machines, forms clusters and deploys applications, with a plan before every change.","md",{},true,"\u002Fdocs\u002Fgetting-started",{"title":5,"description":229},"docs\u002Fgetting-started\u002Findex","Xtts_yJrhIbg_pUCBdSEqUuvm8lH0A2LJejfzq4sbCo",1796464240880]