Photon Management Daemon (pmd) provides secure remote management of resources on linux machines.
pmd manages the following resources
- iptable rules
- network via network-config-manager component
- packages via tdnf
- users and groups
pmd provides the following ways to interact with the server
- cmd line client (pmd-cli) uses dce-rpc and srp to securely authenticate
- REST api (spec driven with openapi swagger 2.0)
- server openapi spec driven REST cmd line client (copenapi)
- python3 api
- vmware-rest, copenapi
- dcerpc
- gssapi-unix
- tdnf, network-config-manager
- rpm, jansson, krb5, curl, glib
- openldap, shadow, systemd
- c-rest-engine, python3, e2fsprogs
- openssl
- Install devel packages of above prerequisites as applicable.
- From the source root directory, ./rebuild.sh
- mkdir /etc/pmd && cp conf/* /etc/pmd
- Server binary is server/pmd. run it in the background ./server/pmd &
- ./tools/cli/pmd-cli and follow cmd line help. For eg: pmd-cli net get-hostname
These are the current registered components 'firewall' : firewall management 'net' : network management 'pkg' : package management 'usr' : user management You need to specify a component and a command usage: pmd-cli [connection/auth options] [command options]
For local connections, use: pmd-cli . Current logged in user permissions will apply when executing commands. This is the same as specifying --servername localhost. For remote servers, use method mentioned below. Password is never sent out in clear to the remote in the below auth scenario. When --user is specified, you will be prompted for password.
- System user. pmd-cli --servername --user
self documenting via conf/restapispec.json or copenapi client
import pmd help(pmd) srv = pmd.server() help(srv) help(srv.net)
Initial release 0.0.1
The pmd project team welcomes contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our FAQ. For more detailed information, refer to CONTRIBUTING.md.
pmd is available under the Apache 2 license.