=== jj623_ is now known as jj623 === cpaelzer__ is now known as cpaelzer [09:01] smoser, Hey, do you know if this was merged at some point? https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+ref/fix/1788915-vlan-sysconfig-rendering [09:01] smoser, looks like we have an issue on RHEL that could benefit from this fix. [09:03] smoser, I mean, I can't find the exact commit entry on the log, but perhaps it was merged as a different title on github, I don't know [10:00] Hello creme de la creme ! :) [10:08] Can we use passowrd hash to implement Linux instance AD domain join ? [12:01] Odd_Bloke, quick ping for PR 428 to make sure it does not get closed to inactivity :-) thanks for the reviews! [12:41] hello everyone ! [13:03] any Guru in the channel ? [13:05] I want to know if it's possible to use password hash to implement Linux AD integration [13:05] ? [13:08] not sure how that's related to cloud-init [13:09] we need to join the AD domain using admin credentials [13:10] and I was wondering if it's possible to use password hash to automate and secure the domain join [13:11] or if you have any suggestion/doc or use case of cloud-init and AD integration [13:11] thank you ananke ! [13:16] you may want to check in ##linux, or a distro specific channel, there may be tools already present in your distro of choice. [13:18] alright thanks [13:28] otubo: Thanks for the ping! I've removed the tag, so it should have another 14 days of grace (and I would hope I'd get to it before then!). [13:37] Zador: ananke is correct: cloud-init doesn't have any specific Active Directory integration. You'll want to look into how to configure this using your distro's available tooling. Once you have some scripting that works for it, then you could look into having cloud-init run that by passing it as user-data. [14:09] Odd_Bloke, thanks :) [15:22] blackboxsw_: We have some modules specific to a particular platform, what should be procedure to contribute a new module in the cloud-init ? Is there any restriction on doing so? I came across this document https://cloudinit.readthedocs.io/en/latest/topics/hacking.html . Wanted to confirm is there anything apart from that is needed to contribute? [16:02] what *is* HiBee? [17:19] @Odd_Bloke @rharper Is is possible to disable network configuration of cloud-init from user-data (network: config: disabled) [17:32] I guess not, from cloud-init doc: "User-data cannot change an instance’s network configuration." [17:35] AnhVoMSFT: sorry right, it is either from /etc/cloud/cloud.cfg.d/* file that contains "network:\n config: disabled" or kernel commandline params provided like "network-config=disabled" [17:36] also note if providing kernel cmdline params that any network config can be provided directly via kernel cmdline "network-config=" [17:36] per commitish https://github.com/canonical/cloud-init/commit/1d2dfc5d879dc905f440697c2b805c9485dda821 [17:38] user-data (cloud-config) is processed too late to disable network config I believe (so even emitting a write_files: - /etc/cloud/cloud.cfg.d/disable-net.cfg with the right content I *think* will still not disable networking until after a cloud-init clean --reboot [19:12] Hello, is it possible to have cloud-init run a script on first boot of a machine on aws without needing to pass it in via user-data? I would ideally like to make an ami with the script already there in the proper place. [19:18] Is it as simple as dropping the script into scripts/per-instance? https://cloudinit.readthedocs.io/en/latest/topics/modules.html#scripts-per-instance [19:20] tt_: if you want first-boot only, you would drop them in https://cloudinit.readthedocs.io/en/latest/topics/modules.html#scripts-per-once [19:22] if you want them to run each time the platform tells you that this instance is "new" (maybe redeployed from a cloned AMI) then you would use scripts-per-instance [19:22] Odd_Bloke: I think I got you some good questions comment on the oracle branch https://github.com/canonical/cloud-init/pull/493#pullrequestreview-462784349 [19:22] thanks for all the work there [19:22] @blac [19:27] blackboxsw_: Awesome, thank you. Would the user-data script example here(https://cloudinit.readthedocs.io/en/latest/topics/instancedata.html#using-instance-data) work if I put it in scripts/per-instance or scripts/per-once? [19:27] blackboxsw_: Ack, thanks, will take a look! [19:46] tt_: no prob. Hrm I'll have to check if scripts-per-* actually handles jinja templates for those scipts. [19:46] checking now . If not, then your script would likely be able to run `cloud-init query ` and react to the values in that output [19:48] is cloud-init supposed to stay installed for the lifetime of the vm? or can i have it uninstall itself after firstboot when it sets everything up? [19:49] cut: if cloud-init is uninstalled, it can't re-run if the vm is rebooted and instance-data (the metadata provided by the cloud platform) changes across reboot. So your VMs would be missing out on any potntial configuration changes that are supposed to affect the system if provided by the platform. [19:50] so, it depends, some platforms don't to any configuratin across vm boots, others "may" [19:50] thanks [19:51] cut, no prob. there are facilities as mentioned about by tt that try to run some things across each instance boot, or each time the instance-id changes for that cloud. So, it all depends on what you want your final image to support and which cloud you are running on. [19:51] * blackboxsw_ gets some lunch [19:57] cut: If you remove cloud-init and capture an image from such an instance, then it won't perform its usual first boot functions (which include SSH host key rotation, authorized_keys handling, network rendering, and handling of any user-data passed in): you'll have to handle that all yourself (assuming that the network config/authorized keys in the captured image will even allow you access to the new [19:57] instance). [19:59] ahh right gd pt Odd_Bloke . much more critical than I implied [20:09] tt_: confirmed you cannot provide cloud-config as per-instance per-boot sripts, they are actually just executable scripts and are not rendered as user-data. . So if you wanted to rely on instance data variables as shown in (https://cloudinit.readthedocs.io/en/latest/topics/instancedata.html#using-instance-data, you would probably want something like https://paste.ubuntu.com/p/tFDfWN3Wpp/ [20:09] be back in a bit [21:52] blackboxsw_: Thanks for the review, your point about metadata is a really good one. [21:52] I'll address that tomorrow. [21:59] good deal Odd_Bloke