Metadata-Version: 2.2
Name: saltext.uci-ubus
Version: 0.1.3
Summary: Salt extension for OpenWrt configuration management via ubus
Author-email: Christian Prior-Mamulyan <cprior@gmail.com>
License: Apache Software License
Project-URL: Homepage, https://github.com/cprima-homelab/saltext-uci
Project-URL: Documentation, https://cprima-homelab.github.io/saltext-uci
Project-URL: Source, https://github.com/cprima-homelab/saltext-uci
Project-URL: Tracker, https://github.com/cprima-homelab/saltext-uci/issues
Keywords: salt-extension
Platform: any
Classifier: Programming Language :: Python
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: salt>=3006
Requires-Dist: saltext.uci>=0.1.0
Provides-Extra: changelog
Requires-Dist: towncrier==25.8.0; extra == "changelog"
Provides-Extra: dev
Requires-Dist: nox[uv]!=2025.05.01,>=2024.3; extra == "dev"
Requires-Dist: pre-commit>=2.21.0; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"
Provides-Extra: dev-extra
Requires-Dist: ruff>=0.4; extra == "dev-extra"
Requires-Dist: coverage==7.13.4; extra == "dev-extra"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-prompt; extra == "docs"
Requires-Dist: sphinxcontrib-spelling; extra == "docs"
Requires-Dist: sphinx-copybutton; extra == "docs"
Requires-Dist: towncrier==25.8.0; extra == "docs"
Requires-Dist: sphinxcontrib-towncrier; extra == "docs"
Requires-Dist: myst_parser; extra == "docs"
Requires-Dist: furo; extra == "docs"
Requires-Dist: sphinx-inline-tabs; extra == "docs"
Requires-Dist: sphinxcontrib-mermaid; extra == "docs"
Provides-Extra: docsauto
Requires-Dist: sphinx-autobuild; extra == "docsauto"
Provides-Extra: lint
Requires-Dist: pylint>=4.0.4; extra == "lint"
Provides-Extra: tests
Requires-Dist: pytest>=7.2.0; extra == "tests"
Requires-Dist: pytest-salt-factories>=1.0.0; extra == "tests"
Requires-Dist: pytest-instafail; extra == "tests"
Requires-Dist: paramiko>=5.0.0; extra == "tests"
Requires-Dist: python-dotenv>=1.2.2; extra == "tests"

# saltext.uci-ubus

Salt extension: OpenWrt UCI configuration management via ubus (JSON-RPC,
or local ubus CLI through `salt-ssh`). Requires `saltext.uci`.

## Install

```bash
pip install saltext.uci-ubus
```

## Configure

```yaml
# /srv/salt/pillar/router.sls
proxy:
  proxytype: uci_ubus_jsonrpc
  host: 10.35.24.1
  password: secret
  # username: salt-agent      (default)
  # scheme: https             (auto-detected by default: tries plain
  # port: 443                  HTTP on 80 first, falls back to HTTPS on
  #                            443 -- set both explicitly to skip probing,
  #                            e.g. for a device behind Caddy/ACME)
  # verify_ssl: false         (default)
  # timeout: 30               (default, HTTP request timeout)
```

```bash
salt router uci.get network
```

Docs: https://cprima-homelab.github.io/saltext-uci
