Received: from pmta11.teksavvy.com (pmta11.teksavvy.com [76.10.157.34]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0A18A781033 for <~alpine/devel@lists.alpinelinux.org>; Sun, 3 Jul 2022 04:59:03 +0000 (UTC) IronPort-SDR: aJLUofRu7UY1C8WbhWyB6c6DI9abIah9INBz7x+gW31ZoIPErHwSkRiaEk3MwTBWMCXA+jkq5n zMweRz2Q49pA== IronPort-PHdr: =?us-ascii?q?A9a23=3AsaLNVBIUovrv44Er59mcuZQyDhhOgF28FhEY4?= =?us-ascii?q?JogkK4Ibqmg5J38Il2Z7vJo3zqrFc2To7oMw6LNq661QWUb+t7Bq30EfJFWH?= =?us-ascii?q?z49wcQN11V4X4jcVhy9dqa0KXZrXYxZUUN9uXSyMExbAsH7MlHcrmWv5zoTE?= =?us-ascii?q?T3gNA55Oun+GoHblci60aa58tXIZhlQwjqwZbQnH0zn90OI6JlQ2s07e/kEo?= =?us-ascii?q?iY=3D?= IronPort-Data: =?us-ascii?q?A9a23=3A7hTYnKrqv3pkPhqYdwJbynndW1ZeBmLcZxIvg?= =?us-ascii?q?KrLsJaIsI4StFCztgarIBmBaPuIM2b9Lth2YY228k9V6sDWn99lHlBvqiBnR?= =?us-ascii?q?n9ApJacVYWSI27OZC7DdceroGCLTyk9hngsFC29J5Pljk/F3oPJ8D8tj8lke?= =?us-ascii?q?pKmULSeYn8pH1c/IMscoUsLd9AR09YAbeeRXlvlVePa+6UzCXf9s9JGGjt8B?= =?us-ascii?q?5Gr8nuDiM/PVAYw5TTSUxzrUGj2zBH5BLpHTU24wuCRroN8RoZWTM6bpF21E?= =?us-ascii?q?/+wE77A17qYfrjHnk0iGtY+PCCRh3BWXLO+xARPpTc7zLgqcvEbbC+7iR3Tx?= =?us-ascii?q?5YolYwL6sf2EF51VkHPsL11vx1wHy9yJbBM/L7MCWe+tcCPwkbGfHL2z/hoS?= =?us-ascii?q?ko/VWEd0r8mWTgQr6RGcFjhaTjG3Ypa2omTXOBonsUlIY7nMZ0SvllkzCrFF?= =?us-ascii?q?rAvRYjCRajO5NlFzHE3nM8mIBp0T6L1chJwYR7AZAZTfEsaC4k3gvm5wHL4d?= =?us-ascii?q?lVlRJuujfJfywDuIMZZidAB6OboR+E=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AhKcQJakwI2u/oM5wUxPXG5TnPRnpDfIn3D?= =?us-ascii?q?Abv31ZSRFFG/Fw8PrOoB1773HJYVkqKRYdcLy7UpVoIkmyyXcK2/h0AV7KZm?= =?us-ascii?q?CP01dAR7sP0WKN+VDdMhy73PVa0uNNdLcWMr2AbikZ/KPH3DU=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2E/BQBIIcFi/3JJlxRagQmDSyiBAYE?= =?us-ascii?q?EB0yET5ENhCeWFYJQgWgLAQEBAQEBAQEBCTMPBAEBAwECikwnOBMBAgQBAQE?= =?us-ascii?q?SAQEBBQEBAQEBBwQCAoEYhWgNgzF4AQEBAQEBAQEBJysCDVIkRAQkHQEBOAQ?= =?us-ascii?q?wAiYCbAgBAYJ5AYJ1I6xKgTGBAYIIAQEGgl+FBwMGgREsjz+CDYE8DFeBcBi?= =?us-ascii?q?EZQESAQmDboJlmi4mBA8DGi0vEoEfbgEIBAMDBwoFMAYCDBgUBAITElMcAhI?= =?us-ascii?q?FBwobDhQcJBcMDwMSAxEBBwIJEggVKwgDAgMIAwIDKwIDFgkHCgMdCAocEhA?= =?us-ascii?q?UAgQRHgsIAxkeLAkCBA4DQAgLCgMRBAMTGAkWCBAEBgMILw0nCwMUDQEGAwY?= =?us-ascii?q?CBQUBAyADFAMFJAcDIQ8mDQ0EIh0DAwUlAwICGwcCAgMCBhUGAgJuLg0IBAg?= =?us-ascii?q?ENyQPBQIHLwUELwIeBAUGEQgCFgIGBAUCBAQWAhAIAggnFwcTGBsZAQVZEAk?= =?us-ascii?q?hHAofEAUGFQMhbQUKOw8oNDY8LB8bCoEaLCsWAwQEAwIGGgMDIgIQKQYyAxU?= =?us-ascii?q?GLRUVESgcAptQOEV+LAUqHyY8HV9LkW4KJwEejzCfIQcDg04Fix2UYAYTLZZ?= =?us-ascii?q?qkXqWdYQEng2FNIF4gQ9whChRGQ+PRgEIgW+LTlk7AgYLAQEDCY8FAQE?= X-IPAS-Result: =?us-ascii?q?A2E/BQBIIcFi/3JJlxRagQmDSyiBAYEEB0yET5ENhCeWF?= =?us-ascii?q?YJQgWgLAQEBAQEBAQEBCTMPBAEBAwECikwnOBMBAgQBAQESAQEBBQEBAQEBB?= =?us-ascii?q?wQCAoEYhWgNgzF4AQEBAQEBAQEBJysCDVIkRAQkHQEBOAQwAiYCbAgBAYJ5A?= =?us-ascii?q?YJ1I6xKgTGBAYIIAQEGgl+FBwMGgREsjz+CDYE8DFeBcBiEZQESAQmDboJlm?= =?us-ascii?q?i4mBA8DGi0vEoEfbgEIBAMDBwoFMAYCDBgUBAITElMcAhIFBwobDhQcJBcMD?= =?us-ascii?q?wMSAxEBBwIJEggVKwgDAgMIAwIDKwIDFgkHCgMdCAocEhAUAgQRHgsIAxkeL?= =?us-ascii?q?AkCBA4DQAgLCgMRBAMTGAkWCBAEBgMILw0nCwMUDQEGAwYCBQUBAyADFAMFJ?= =?us-ascii?q?AcDIQ8mDQ0EIh0DAwUlAwICGwcCAgMCBhUGAgJuLg0IBAgENyQPBQIHLwUEL?= =?us-ascii?q?wIeBAUGEQgCFgIGBAUCBAQWAhAIAggnFwcTGBsZAQVZEAkhHAofEAUGFQMhb?= =?us-ascii?q?QUKOw8oNDY8LB8bCoEaLCsWAwQEAwIGGgMDIgIQKQYyAxUGLRUVESgcAptQO?= =?us-ascii?q?EV+LAUqHyY8HV9LkW4KJwEejzCfIQcDg04Fix2UYAYTLZZqkXqWdYQEng2FN?= =?us-ascii?q?IF4gQ9whChRGQ+PRgEIgW+LTlk7AgYLAQEDCY8FAQE?= X-IronPort-AV: E=Sophos;i="5.92,241,1650945600"; d="scan'208";a="190162060" Received: from webhost.teksavvy.com ([20.151.73.114]) by hsmtp11.teksavvy.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 03 Jul 2022 00:59:00 -0400 Received: from [192.168.3.197] (107-179-206-29.cpe.teksavvy.com [107.179.206.29]) by webhost.teksavvy.com (Postfix) with ESMTPSA id 0FBF13006AF9 for <~alpine/devel@lists.alpinelinux.org>; Sun, 3 Jul 2022 00:59:00 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wildtechgarden.ca; s=default; t=1656824340; bh=Qi8T++ZiBR0YNvD+x99WbwSFs0JwE0fSU7GOR4RCEQo=; h=To:From:Subject; b=UCmxhQqCDpyOTqeqDU9kIamlq1r731Xpk82qdYHjZJPYWEb/VljSna+UCn58ifFpS dNIP6o9uHsIDvaryxzovw+Kfc9D46iEAQR9w0mw1ra1JXpoKqoQcM3JClsei3bnlWv 9Uzwk9Sk1k70rHHUNAD3wW0k1zA4Y1wQB/FzDQGQ= Authentication-Results: webhost.teksavvy.com; spf=pass (sender IP is 107.179.206.29) smtp.mailfrom=dfdpublic@wildtechgarden.ca smtp.helo=[192.168.3.197] Received-SPF: pass (webhost.teksavvy.com: connection is authenticated) Message-ID: <1820c942-7444-8bb1-60f5-f6b5e9e9f8e6@wildtechgarden.ca> Date: Sun, 3 Jul 2022 00:58:59 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 To: ~alpine/devel@lists.alpinelinux.org Content-Language: en-CA From: "Daniel F. Dickinson" Subject: Lightening my cloud automation via tiny-cloud Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-PPP-Message-ID: <20220703045900.22946.94274@webhost.teksavvy.com> X-PPP-Vhost: wildtechgarden.ca Hi all, TL;DR I'm starting an 'experiment' with 'less is more' automation via tiny-cloud and **no** Packer or Terraform, and no cloud-init, python (and therefore Ansible), et al on the client side, and would appreciate any development advice in so doing. Since Natanael has been been working on the answer file automation and tiny-cloud is alive: > I'm working on the testsuite to add tests to make sure setup-alpine > works with an "answer file". > I intend to make some kind of tiny-cloud nocloud provider, which will > be able to take some sort of cloud-init compatible config for > unattended installs. And as it happens, as a related option, I have a never finished metadata server I was intending to use to serve 'cloud-init' metadata and it's 'NoCloudNet' data source (I stopped work because of cloud-init limitations when using 'NoCloudNet'), it occurs to me that having a generic metadata server that can be added as provider option to tiny-cloud (looking at the code, the tiny-cloud part should just be a matter of adding a couple tweaks to add a provider) could be relatively easy. I'm thinking that at least as a proof of concept, using a CGI or FastCGI script would be the quickest route. I'm wondering if there would be language preference when it comes to such a script, assuming this became an interesting enough project to include (I'm thinking Lua seems the lightest option, as it's been a few years since I've coded C in any meaningful way and for this kind of application one is more likely to make security-impacting mistake with it). I might also poke at ACF and see if there are any relevant methodology in that service. What I was doing was a trivial Python CGI script, but I don't think that is the best route, and was more of a 'quick hack' choice. Also, in my last email I mentioned: > A final note: I've got some cloud-init image creation using Packer > that I soon intend to push to public repository, along with Terraform > usage of the same; is there interest in those here? there doesn't seem to be interest in this, and the HashiCorp stack seems rather heavy if one is going the tiny-cloud route, so I'm planning on switching gears. I don't know if would still be useful to publish the code somewhere for those who might want to make another choice, especially since I don't plan on maintaining it, so I thought I'd ask what you folks thought. My plan, now, since I've been in the process of reorganizing my 'on-prem' equipment and my cloud instances is to simplify, simplify, simplify (I was starting to get a little too 'enterprise-y/bloated with Vault, looking at Nomad, using Packer and Terraform, and am trying to avoid over-complicating). I do, however, want to keep a fairly high degree of automation, for the purposes of consistency, repeatability, and reproducibility. That, and once the automation setup is in place, it is a lot faster to do automated spin-ups than non-automated ones. I'm wondering what folks on here currently use for this kind of thing, and what you would like to see available. Oh, and I guess I will have to figure out how to create and use development versions of Alpine to get this working. I'd love to hear any quick tips, getting started info, and "avoid these mistakes I made when doing this" hints you might have. Regards, Daniel -- https://wildtechgarden.ca Technical and professional website https://princesandmadmen.ca Personal and political blog