eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

211
active users

#pyinfra

0 posts0 participants0 posts today
It's Richie<p><a href="https://hachyderm.io/tags/CommunityHosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommunityHosting</span></a> <a href="https://hachyderm.io/tags/Ops" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ops</span></a> </p><p>A small group of us are working on community level hosting of 'self-hosted' FOSS tools (think <a href="https://hachyderm.io/tags/NextCloud" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NextCloud</span></a> and more) setup as a local service offering for local grassroots organisations. We're seeking advice/tips/guidance.</p><p>We're keen to do some orchastration but want to avoid the complexity of say Kubernetes.</p><p>As a start we were looking at Ansible with Docker Swarm but we're now exploring other alternatives.</p><p>Anyone have experience at this sort of hobbist just a bit bigger than <a href="https://hachyderm.io/tags/HomeLab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HomeLab</span></a> Ops scale?</p><p><a href="https://hachyderm.io/tags/Pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pyinfra</span></a> is being considered as an Ansible, in the projects words "Think ansible but Python instead of YAML, and a lot faster." (<a href="https://pyinfra.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pyinfra.com</span><span class="invisible"></span></a>)</p><p>Anyone have experience at this homelab/small hosting level? Would love any tips/suggestions for tools/approaches.</p><p>One source of inspiration is the 12Factor app methodology: <a href="https://12factor.net" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">12factor.net</span><span class="invisible"></span></a></p><p>Personally, as a rubyist I'm always keen to know what the ruby community is doing in this space also. </p><p>Haven't seen many others doing work at this scale, lets use the tag <a href="https://hachyderm.io/tags/CommunityHosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommunityHosting</span></a> to keep connected :)</p><p><span class="h-card" translate="no"><a href="https://adlsolarpunk.net/@digital_justice_society" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>digital_justice_society</span></a></span></p><p>cc: <span class="h-card" translate="no"><a href="https://hachyderm.io/@jadehopepunk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>jadehopepunk</span></a></span> <span class="h-card" translate="no"><a href="https://hachyderm.io/@ryan" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ryan</span></a></span> @gilbert @bounding_star <span class="h-card" translate="no"><a href="https://hachyderm.io/@steph" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>steph</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.online/@moxvallix" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>moxvallix</span></a></span> <span class="h-card" translate="no"><a href="https://adlsolarpunk.net/@organvoid" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>organvoid</span></a></span> <span class="h-card" translate="no"><a href="https://aus.social/@teq" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>teq</span></a></span> </p><p><a href="https://hachyderm.io/tags/CommunityHosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommunityHosting</span></a> <a href="https://hachyderm.io/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://hachyderm.io/tags/DevOps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevOps</span></a> <a href="https://hachyderm.io/tags/ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ruby</span></a> <a href="https://hachyderm.io/tags/RubyOnRails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RubyOnRails</span></a> <a href="https://hachyderm.io/tags/SelfHosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfHosting</span></a> <a href="https://hachyderm.io/tags/Orchastration" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Orchastration</span></a> <a href="https://hachyderm.io/tags/FOSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FOSS</span></a> <a href="https://hachyderm.io/tags/OpenTofu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenTofu</span></a> <a href="https://hachyderm.io/tags/SelfHosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfHosting</span></a> <a href="https://hachyderm.io/tags/SelfHosted" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfHosted</span></a></p>
scy<p>The idea of <a href="https://chaos.social/tags/pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyinfra</span></a> is great. The execution however&nbsp;…</p><p>Let's just say, I would've done a few things in a different way.</p>
scy<p>In the <a href="https://chaos.social/tags/Hetzner" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hetzner</span></a> Cloud API, you can refer to resources by their ID (an integer) or their name. Both are unique. The name is user-defined and designed to be human-readable, but needs to be identifier-like.</p><p>For example, you'd name a server "db01" or a volume "db-main" or an IP address "db01-v6".</p><p>However, in <a href="https://chaos.social/tags/pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyinfra</span></a>, "name" is a reserved word and I can't use it, but "id" is something else, too.</p><p>For now I've used "handle" instead of "name", but I wonder whether you have better suggestions.</p>
David Zaslavsky<p><span class="h-card" translate="no"><a href="https://frankfurt.social/@malte" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>malte</span></a></span> 😂 </p><p>I have also been looking into pyinfra lately. If nothing else, it's that much less code I have to write in YAML and that's a win.</p><p><a href="https://techhub.social/tags/DevOps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevOps</span></a> <a href="https://techhub.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ansible</span></a> <a href="https://techhub.social/tags/pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyinfra</span></a></p>
Malte<p>It's this time of year again where I think about replacing ansible with something else.</p><p>This year it's pyinfra.</p><p>Funny side note: macos wants to replace ansible with unusable. :D</p><p><a href="https://frankfurt.social/tags/ansible" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ansible</span></a> <a href="https://frankfurt.social/tags/pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyinfra</span></a></p>
David Zaslavsky<p><span class="h-card" translate="no"><a href="https://mastodon.social/@sumanthvepa" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>sumanthvepa</span></a></span> For everything you want to do, I'm pretty sure you'll have to do a lot of custom coding regardless of how you do it, but you could check out <a href="https://techhub.social/tags/pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyinfra</span></a> which is like a more lightweight version of Ansible. Or I should say, it's a lighter-weight tool that tries to do the same thing Ansible does (basically, scripting but optimized for configuring systems). I don't know if it will actually make your job easier, I'm just suggesting it's worth a quick look to see.</p>
David Zaslavsky<p><span class="h-card" translate="no"><a href="https://social.linux.pizza/@nebucatnetzer" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>nebucatnetzer</span></a></span> I'm working on it, for my personal infrastructure. It is wayyyy more pleasant (and efficient) to be writing code in an actual programming language instead of in YAML, but the tradeoff is losing access to Ansible's huge library of tasks and roles. So you wind up having to implement more things yourself in pyinfra. Personally, I think it's well worth it so I will continue to plug away with pyinfra, but I can see how someone who's working on a large body of infrastructure and has limited time might consider it not viable.</p><p><a href="https://techhub.social/tags/DevOps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevOps</span></a> <a href="https://techhub.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ansible</span></a> <a href="https://techhub.social/tags/pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyinfra</span></a></p>
Alejandro Baez<p>And that's not to say I can't with <a href="https://fosstodon.org/tags/fasthtml" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fasthtml</span></a>! </p><p>I been building out a small dashboard to auto manage some stuff with <a href="https://fosstodon.org/tags/pyinfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyinfra</span></a>... Yes. I'm aware I'm making a <a href="https://fosstodon.org/tags/k8s" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>k8s</span></a> again. shut up! 🤭</p><p>But right now, my proficiency in <a href="https://fosstodon.org/tags/golang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>golang</span></a> is too high. Likely due to so many architectural changes at dayjob. 😅</p>
Serge from Babka<p>Setting up Podman with PyInfra, I keep thinking "I should make this a PyInfra module", but if I do that now, I'll never get to my goal.</p><p><a href="https://babka.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://babka.social/tags/Devops" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Devops</span></a> <a href="https://babka.social/tags/Podman" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Podman</span></a> <a href="https://babka.social/tags/PyInfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyInfra</span></a> <a href="https://babka.social/tags/ADHD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ADHD</span></a></p>
Serge from Babka<p>I've written a blog post about choosing a configuration management system. Let me know your thoughts!</p><p><a href="https://blog.emacsen.net/blog/2024/09/29/sysadmin-config-management/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.emacsen.net/blog/2024/09/</span><span class="invisible">29/sysadmin-config-management/</span></a></p><p><a href="https://babka.social/tags/sysadmin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sysadmin</span></a> <a href="https://babka.social/tags/ConfigurationManagement" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ConfigurationManagement</span></a> <a href="https://babka.social/tags/devops" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>devops</span></a> <a href="https://babka.social/tags/ops" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ops</span></a> <a href="https://babka.social/tags/Puppet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Puppet</span></a> <a href="https://babka.social/tags/CFengine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CFengine</span></a> <a href="https://babka.social/tags/Chef" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Chef</span></a> <a href="https://babka.social/tags/PyInfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyInfra</span></a> <a href="https://babka.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ansible</span></a></p>
Serge from Babka<p>PyInfra demonstrates a powerful point. With Ansible if you want to feed information to Ansible, you must do through so Yaml. Yaml is fine, but PyInfra simply lets you feed information directly to it without an intermediary file format.</p><p>Why do we complicate our lives with these intermediate formats when they're often unnecessary? Wouldn't pure programming be better for the user?</p><p>I'm looking at you, OpenTofu.</p><p><a href="https://babka.social/tags/PyInfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyInfra</span></a> <a href="https://babka.social/tags/Yaml" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Yaml</span></a> <a href="https://babka.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://babka.social/tags/DSL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DSL</span></a> <a href="https://babka.social/tags/OpenTofu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenTofu</span></a> <a href="https://babka.social/tags/Terraform" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Terraform</span></a></p>
Serge from Babka<p>I was skeptical of PyInfra at first, but I had a working system within minutes and was building out my own deploys (sort of like Ansible Playbooks), but without any weird Yaml syntax.</p><p>I've used cfengine, Puppet, Chef, and Ansible, and while I might still use an agent based system if I had thousands of hosts, so far PyInfra has been the easiest and most straightforward configuration management system I've used. It's as straightforward as Chef, but agentless like Ansible.</p><p>It's been absolute pleasure to use so far.</p><p><a href="https://babka.social/tags/ConfigurationManagement" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ConfigurationManagement</span></a> <a href="https://babka.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ansible</span></a> <a href="https://babka.social/tags/PyInfra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyInfra</span></a> <a href="https://babka.social/tags/SysAdmin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SysAdmin</span></a></p>