Git Product home page Git Product logo

pmd's Introduction

pmd

Overview

Photon Management Daemon (pmd) provides secure remote management of resources on linux machines.

pmd manages the following resources

  • iptable rules
  • network via netmgmt 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)
  • python2/3 api

Try it out

Prerequisites

  • vmware-rest, copenapi
  • likewise-open
  • lightwave directory client, lightwave afd client
  • tdnf, netmgmt
  • rpm, jansson, krb5, curl, glib

Build & Run

  1. Install devel packages of above prerequisites as applicable.
  2. From the source root directory, ./rebuild.sh
  3. mkdir /etc/pmd && cp conf/* /etc/pmd
  4. Server binary is server/pmd. run it in the background ./server/pmd &
  5. ./tools/cli/pmd-cli and follow cmd line help. For eg: pmd-cli net dns_servers --get

Documentation

pmd-cli

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 one of 3 methods mentioned below. Password is never sent out in clear to the remote in any of the below auth scenarios. When --user is specified, you will be prompted for password.

  1. System user. pmd-cli --servername --user
  2. Lightwave user (pmd server must be joined or should be part of embedded lightwave) pmd-cli --servername --user --domain
  3. Kerberos spn (client must successfully run kinit before using this method) pmd-cli --servername --spn

REST interface

self documenting via conf/restapispec.json or copenapi client

python

import pmd help(pmd) srv = pmd.server() help(srv) help(srv.net)

Releases & Major Branches

Initial release 0.0.1

Contributing

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.

License

pmd is available under the Apache 2 license.

pmd's People

Contributors

harishspqr avatar vmwsrpbot avatar tapakund avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.