Skip to content

Commit b40556f

Browse files
committed
Move system operations under system namespace
1 parent a2c9914 commit b40556f

46 files changed

Lines changed: 2832 additions & 2826 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/TECHNICAL_DESIGN.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ commands: local.command, remote.command
112112
filesystem: fs.*
113113
archive: archive.*
114114
packages: pkg.*
115-
systemd: systemctl.*
115+
system: system.service.*, system.systemd.*, system.kernel.*, system.process.*, system.cron.*, system.journal.*, system.log.*
116116
identity: identity.user.*, identity.group.*
117-
processes: process.*
118117
transfer: transfer.*
119118
http/api: http.*
120119
connectivity: network.connectivity.*

docs/concepts/plugin-system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Only canonical names are public DSL names. For example:
1111

1212
```text
1313
fs.file.template
14-
systemctl.restart
14+
system.service.restart
1515
db.sqlite.query
1616
```
1717

docs/guides/creating-plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
88
Automax plugins are small execution units loaded by the plugin registry.
99

1010
A plugin should keep business logic outside the engine and expose one canonical
11-
DSL name, for example `fs.dir.create` or `systemctl.restart`.
11+
DSL name, for example `fs.dir.create` or `system.service.restart`.
1212

1313
## Contract
1414

@@ -43,7 +43,7 @@ Good examples:
4343
```text
4444
fs.file.template
4545
pkg.install
46-
systemctl.enable
46+
system.service.enable
4747
transfer.upload
4848
```
4949

docs/guides/cron.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Automax manages `/etc/cron.d` entries with explicit files, which keeps changes a
99

1010
```yaml
1111
- id: install_healthcheck_cron
12-
use: cron.entry
12+
use: system.cron.entry.add
1313
with:
1414
name: myapp-health
1515
schedule: "*/5 * * * *"
@@ -18,4 +18,4 @@ Automax manages `/etc/cron.d` entries with explicit files, which keeps changes a
1818
sudo: true
1919
```
2020
21-
Use `cron.file` when a full cron.d file must be installed verbatim.
21+
Use `system.cron.file` when a full cron.d file must be installed verbatim.

docs/guides/kernel-tuning.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ SPDX-License-Identifier: AGPL-3.0-or-later
55

66
# Kernel tuning
77

8-
Automax manages Linux runtime kernel parameters through `sysctl.*` and kernel modules through `kernel.module.*`.
8+
Automax manages Linux runtime kernel parameters through `system.kernel.sysctl.*` and kernel modules through `system.kernel.module.*`.
99

1010
```yaml
1111
- id: enable_forwarding
12-
use: sysctl.set
12+
use: system.kernel.sysctl.set
1313
with:
1414
name: net.ipv4.ip_forward
1515
value: "1"
@@ -21,11 +21,11 @@ Automax manages Linux runtime kernel parameters through `sysctl.*` and kernel mo
2121
2222
```yaml
2323
- id: load_bridge_filter
24-
use: kernel.module.load
24+
use: system.kernel.module.load
2525
with:
2626
name: br_netfilter
2727
persist: true
2828
sudo: true
2929
```
3030
31-
Use `sysctl.get` for checks, `sysctl.reload` to reload persisted files, and `kernel.module.unload` / `kernel.module.persist` for module lifecycle management.
31+
Use `system.kernel.sysctl.get` for checks, `system.kernel.sysctl.reload` to reload persisted files, and `system.kernel.module.unload` / `system.kernel.module.persist` for module lifecycle management.

docs/guides/ssh-smoke.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ remote user. It covers:
4949
- `fs.object.find`, `fs.permission.mode`
5050
- `archive.tar`, `archive.untar`, `archive.zip`, `archive.unzip`
5151
- `transfer.upload`, `transfer.download`, `transfer.sync`
52-
- `process.wait`
52+
- `system.process.wait`
5353
- `storage.usage.disk_check`, `network.connectivity.port_check`
5454
- artifact capture for stdout/stderr/data
5555
- resume helpers through the normal run state store

docs/plugins/facts-cron.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ target.
1414

1515
## Cron
1616

17-
Use `cron.entry` for one managed cron.d entry and `cron.file` for a complete
17+
Use `system.cron.entry.add` for one managed cron.d entry and `system.cron.file` for a complete
1818
cron.d file. Prefer systemd timers when the service model is systemd-native, and
1919
use cron only when the target platform or operational requirement needs it.
2020

2121
## Cron readback and validation
2222

23-
Use `cron.list` to inspect existing cron state, `cron.absent` for explicit
24-
removal of `/etc/cron.d` entries, and `cron.validate` to check cron file syntax
23+
Use `system.cron.entry.list` to inspect existing cron state, `system.cron.entry.remove` for explicit
24+
removal of `/etc/cron.d` entries, and `system.cron.validate` to check cron file syntax
2525
before installing or replacing a schedule file.

0 commit comments

Comments
 (0)