@@ -27,6 +27,7 @@ A Ruby client library and CLI tool for the OPNsense REST API.
2727 - [ Node Exporter] ( #node-exporter )
2828 - [ OpenVPN] ( #openvpn )
2929 - [ Plugins] ( #plugins )
30+ - [ Puppet Agent] ( #puppet-agent )
3031 - [ Routes] ( #routes )
3132 - [ Service reconfigure] ( #service-reconfigure-1 )
3233 - [ Snapshots] ( #snapshots )
@@ -121,6 +122,7 @@ Backups and plugins are managed separately via dedicated commands (`backup`, `pl
121122| ` openvpn_cso ` | OpenVPN client-specific overrides |
122123| ` openvpn_instance ` | OpenVPN instances |
123124| ` openvpn_statickey ` | OpenVPN static keys |
125+ | ` puppet_agent ` | Puppet Agent settings (singleton) |
124126| ` route ` | Static routes |
125127| ` snapshot ` | ZFS snapshots |
126128| ` syslog ` | Syslog remote destinations |
@@ -607,6 +609,22 @@ $ opn-api -d opnsense01 uninstall os-haproxy
607609
608610Note: Install/uninstall are asynchronous — the API returns immediately while the operation continues in the background.
609611
612+ ### Puppet Agent
613+
614+ Puppet Agent is a singleton resource (one per device).
615+
616+ ```
617+ # Show Puppet Agent settings (singleton)
618+ $ opn-api -d opnsense01 show puppet_agent
619+
620+ # Update Puppet Agent settings (wrapper key: "puppetagent")
621+ $ opn-api -d opnsense01 update puppet_agent \
622+ -j '{"puppetagent":{"general":{"Enabled":"1","FQDN":"puppet.example.com","Environment":"production"}}}'
623+
624+ # Apply changes
625+ $ opn-api -d opnsense01 reconfigure puppet_agent
626+ ```
627+
610628### Routes
611629
612630```
@@ -962,7 +980,7 @@ Resource names follow the [puppet-opn](https://github.com/markt-de/puppet-opn) n
962980
963981` OpnApi::ServiceReconfigure ` orchestrates service reloads after configuration changes. Features include:
964982
965- - Registry pattern with 18 pre-registered OPNsense service groups
983+ - Registry pattern with many pre-registered OPNsense service groups
966984- Mark/run pattern: track devices with changes, then batch-reconfigure
967985- Configtest support (e.g. HAProxy validates config before reconfigure)
968986- Error tracking: skip reconfigure for devices with failed resource changes
0 commit comments