CLOUD-INIT-PER(1)

πŸ“¦
version 26.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ CLOUD-INIT-PER(1) β€” General Commands Manual ✨

πŸ’– NAME

okay so cloud-init-per is the tool that runs a command with arguments at a specific frequency πŸŽ€ literally that's the whole vibe ✨

🌸 SYNOPSIS

cloud-init-per <frequency> <name> <cmd> [ arg1 [ arg2 [...]]]

πŸ¦‹ DESCRIPTION

Run a command with arguments at a specific frequency. πŸ’…

okay so this utility makes it way easier to use boothooks or bootcmd on a per "once" or "always" basis πŸ”₯ for example:

    - [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ]

bestie, fun fact: the cloud-init-per command replaced the cloud-init-run-module command 😭 so if you see the old one floating around, it's giving outdated πŸ’€

πŸ‘‘ OPTIONS

  • frequency β€” ok so this can be one of the following values:
    • once β€” run only once and do not re-run for new instance-id πŸ™ˆ
    • instance β€” run only once for a given instance-id and re-run for new instance-id 🧚
    • always β€” run every boot 🌈
  • name β€” a name to give the command to run so it shows up in logs πŸ“
  • cmd [ arg1 [ arg2 [...]]] β€” the actual command to run, followed by any additional arguments πŸ“

Copyright (C) 2020 Canonical Ltd. License GPL-3 or Apache-2.0 πŸ’œ

🌈 SEE ALSO

full documentation lives at: <https://docs.cloud-init.io> ✨


Bestie, this page came from General Commands Manual, CLOUD-INIT-PER(1) πŸ’– Ily, go slay your boot scripts πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from