Skip to content

Commit f024caf

Browse files
committed
Added note about conflicting sshd promises
Ticket: ENT-13797 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent a300170 commit f024caf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

promise-types/sshd/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Each promise manages a single directive in the drop-in config file.
1616
4. **Service restart** — restarts sshd if configuration was changed and the service is already running
1717
5. **Verification** — verifies the desired directive appears in the effective sshd config (`sshd -T`)
1818

19+
## Conflicting promisers
20+
Having multiple promises with the same sshd keyword is not recommended.
21+
In case of conflicting promisers, the agent will attempt to converge the correct state for each one in the order they are evaluated.
22+
This means the last promise wins and determines the final value in the configuration file.
23+
It will also cause multiple restarts of the sshd service, which may be disruptive.
24+
1925
## What the module does NOT do
2026
- Install sshd — that is a `packages:` promise
2127
- Ensure sshd is running — that is a `services:` promise

0 commit comments

Comments
 (0)