Commit ee04cb9
committed
Clean up cloud-init artifacts
Use the cloud-init clean command instead of removing the files by hand (/var/lib/cloud)
Ref. https://cloudinit.readthedocs.io/en/latest/topics/cli.html#clean
```
$ sudo cloud-init clean -h
usage: /usr/bin/cloud-init clean [-h] [-l] [-r] [-s]
optional arguments:
-h, --help show this help message and exit
-l, --logs Remove cloud-init logs.
-r, --reboot Reboot system after logs are cleaned so cloud-init re-runs.
-s, --seed Remove cloud-init seed directory /var/lib/cloud/seed.
```
Signed-off-by: Luca Carrogu <[email protected]>1 parent 7b27bb2 commit ee04cb9
File tree
1 file changed
+3
-2
lines changed- cookbooks/aws-parallelcluster-install/files/default/base
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | | - | |
5 | | - | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments