1CLOUD-INIT-PER(1) General Commands Manual CLOUD-INIT-PER(1)
2
3
4
6 cloud-init-per - Run a command with arguments at a specific frequency
7
8
10 cloud-init-per <frequency> <name> <cmd> [ arg1 [ arg2 [...]]]
11
12
14 Run a command with arguments at a specific frequency.
15
16 This utility can make it easier to use boothooks or bootcmd on a per
17 "once" or "always" basis. For example:
18
19 - [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ]
20
21 The cloud-init-per command replaced the cloud-init-run-module command.
22
23
25 frequency
26 This can be one of the following values:
27
28 once: run only once and do not re-run for new instance-id
29
30 instance: run only the first boot for a given instance-id
31
32 always: run every boot
33
34
35 name A name to give the command to run to show up in logs.
36
37
38 cmd [ arg1 [ arg2 [...]]]
39 The actual command to run followed by any additional arguments.
40
41
43 Copyright (C) 2020 Canonical Ltd. License GPL-3 or Apache-2.0
44
45
47 Full documentation at: <https://cloudinit.readthedocs.io>
48
49
50
51 CLOUD-INIT-PER(1)