Commit 6a582c2
authored
feat(agent_install): only install required packages [SMAGENT-6558] (#465)
rework the role so to only install the packages required by the
selected driver (and therefore, the respective dependencies).
Also, remove packages which are no longer required by the
selected driver type.
Notice we need to craft a list augmented with the selected
version, if one is present.
Most of the selection logic (namely, based on the version)
resides in the 'agent' filter which is probably far from
ideal but gets the job done.
Side changes to make CI pass on this PR:
* DO NOT delete environment file in case of kmod (otherwise agent 13.1.0 will fail)
* DO NOT RUN tests on Ubuntu 18.04 (due older systemd not accepting non-absolute path for kill -- otherwise agent 13.1.0 will fail)
* execute local forwarder test on EC2 instead of container (due to systemd unit)1 parent d581653 commit 6a582c2
File tree
14 files changed
+99
-387
lines changed- molecule
- agent-local-forwarder
- tasks
- tests
- agent-smoke-kmodule
- agent-smoke-legacy-ebpf
- agent-uninstall-clean-all
- plugins/filter
- roles
- agent_install/tasks
- agent_uninstall/tasks
14 files changed
+99
-387
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
This file was deleted.
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
This file was deleted.
This file was deleted.
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
This file was deleted.
0 commit comments