From nobody Fri Jul 26 15:42:19 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WVsSr68jnz5SJgR for ; Fri, 26 Jul 2024 15:42:20 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVsSr5jy2z46gx; Fri, 26 Jul 2024 15:42:20 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722008540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hSV6OwRZGKAcaW2Y+0vkRO++kPK9GZPtIzsLjgrJzWY=; b=fZ7YjHTdx34iiCNc/9kh4T2diTrvcOi9iizOcadbHbbnVR2SHnkxWEmdureiKucXZmyaeq lyqx6OXLBHJcOjbtpOruAtyJGIE4yRyJtilXmvTAcsKtstcq4AQFDqmcBkRVh0uzkSfPxs BKj5rETqG6amxVOmCq7aBhDkAaoP8y6eThBu4V9yRIuHEEM3p+Kz94wpr3gsFhcM+TAX8V Ekvjud/8qZvWKQ4ybaNu0HLlG/VSp7b4BJP6tyda6IS4Wok69z+QI9x2OLLrfEZKkwHdSk AyE1DgWyuIpzpzPCmll+XZgTfbB2a9PUIOS2Yxtw+11978VyxFfVQkfe8XD84w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722008540; a=rsa-sha256; cv=none; b=Pz0iIRr8etXd1f5F6kY8ogBpCIPOQDTNxmcQAo6MlcBbivmWN6/kuDPhy1FAupIw7sbecv FipSzWZRLkBRko8/eADWoYX7t74EhiiG5VmU3gI7/d3RGNWQ1S6RwZHo03p8WEtLJ9CCDb yYl34f6SYckItS5f4rWx0LG6pl64y0ZJRvA/Qid1yoz1d43BEsjYuWnyvHiBsybaVV93BU ngsxD2VjKoFRdN1/Gja2QKaC1JYDoYqULlWKiNN5lqxvvz6MzJx1XImg2kzR2uK2e/0RHM Y0cN28TMwq123/tlD94P1h/T9BYLfyN6cys4HdYaGxPT+/fPzVgYmwxzBNSUtg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722008540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hSV6OwRZGKAcaW2Y+0vkRO++kPK9GZPtIzsLjgrJzWY=; b=HM83ZB3pqkhhB3N06HvQPpxqIkF/iePmZsxP4qRAH3JrkCAnm9Q273BDVbG0nClKAqtOWR 4A5xlwq04mCXOauqmIKyOC9l066uA6MXeTuvj8Im3eTo3RP2Z+Wp4lBAiSuZiR8pDe5+PE prne5o1ddQTNz6ZdFhTPTHfT1C3bV1wj2UbP4m0QRVnDNdqafczmDMySZ5+z11ton2P3pa 9MtiNyC41W57+XWHeHd0IjBwC5iHIwwt51iK2VsXUzhBEljda/YgUiQNYulOMGewZMTY+Z OmR2F+5wV4aAZXx8Pw9S1TkqYoIuQwQlqWe/a9iQB7X7ePeOY4v0L+MYqTDFZw== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WVsSr4nDkzh42; Fri, 26 Jul 2024 15:42:20 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id A8A43184B41; Fri, 26 Jul 2024 17:42:19 +0200 (CEST) Date: Fri, 26 Jul 2024 17:42:19 +0200 From: Baptiste Daroussin To: mike tancsa Cc: Dave Cottlehuber , freebsd-questions Subject: Re: cloud init documentation ? Message-ID: References: <841999d9-7e4a-41c1-93b9-c927f28ed41a@app.fastmail.com> <3a161d6a-8941-4eb9-a532-1f82d3db99f9@sentex.net> <337fe5a5-2af2-41a2-859d-c4a3df64eccf@app.fastmail.com> <94f3d34b-f648-452c-964c-213a4b26e20a@sentex.net> <2980ab32-0a58-433b-9bc5-f045917baace@sentex.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2980ab32-0a58-433b-9bc5-f045917baace@sentex.net> On Fri 26 Jul 11:37, mike tancsa wrote: > On 7/26/2024 11:26 AM, Baptiste Daroussin wrote: > > On Fri 26 Jul 10:45, mike tancsa wrote: > > > On 7/26/2024 9:59 AM, Dave Cottlehuber wrote: > > > > > I guess the step I am missing is download the FreeBSD VM image file. Do > > > > > *something* to it to make it fully cloudinit capable, and then create my > > > > > full seed.iso file.  What is that something ?  Is that the > > > > > net/clould-init package you mention in > > > > > https://people.freebsd.org/~dch/posts/2024-07-25-cloudinit/ ? > > > > yep, the image only needs cloud-init package and the service enabled. > > > > However, this adds ~ 350MiB of pythonic garbage into your image. > > > > > > > > Worth noting are the EC2 configs cperciva built: > > > > > > > > - cloudinit flavouredhttps://cgit.freebsd.org/src/tree/release/tools/ec2-cloud-init.conf > > > > - firstboot flavouredhttps://cgit.freebsd.org/src/tree/release/tools/ec2-base.conf > > > > > > > > the latter uses ec2-scripts which work quite well on non-ec2 with firstboot-freebsd-update and firstboot-pkgs. There is support for executing an archive or similar, I am hazy on the details buthttps://github.com/cperciva/ec2-scripts has the sources :-) > > > > > > > > This might be sufficient. > > > 350M of python fun.... Hmmm. Gonna probably pass on that for this project > > > :)  As much as I would like to standardize I think I will do some combo of > > > the nuageinit and some manual image modifications. Its too bad nuageinit > > > oesnt have the ability to just run a script at install time as that would > > > take care of a lot of things.  Are there any plans to extend nuageinit in > > > the future ? > > I must have missed part of the discussion, so I don't catch what is missing in > > nuageinit, but nuageinit should be able to work exactly as cloudinit is working, > > so if something is missing, yes we can extend nuageinit to support it. > > Hi, > >     I was hoping to add packages as well as run custom commands via bootcmd: I haven't implemented it yet because it is os per os and nothing standard in cloudinit for packages, but yes this is something that could/should implemented for sure! About the execution of command I have nothing against as well. Best regards, Bapt