Giter Club home page Giter Club logo

pe_api's Introduction

pe_api

API curl examples for Puppet enterprise

Use cases:

Configuration drift:

Configuration drift

Conpliance (CIS):

Compliance

Vulnerability remediation via tasks:

Running tasks

Status of nodes under management:

Status

TODO:

c.       Integration with ServiceNow:  i.      Puppet to provide API for ServiceNow to query/obtain: -          Status of all nodes under management. o   Datetime. o   Each node up and running? o   Configuration drift detected (with datetime of detection). -          Detected non-compliances in nodes under management. o   Datetime. o   Node name/IP. o   Configuration drift details. o   Action taken by Puppet (with datetime).

ii.      Puppet to provide API for ServiceNow to trigger threat/vulnerability remediation tasks. ServiceNow request to specify: -          node name/IP. -          CVE number of detected threat/vulnerability.

Is there a way to let ServiceNow know the triggered remediation tasks are: -          Completed successfully with details. -          Failed with details.

Puppet enterprise APIs:

RBAC service API v1

  • Managing access to Puppet Enterprise.
  • Connecting to external directories.
  • Generating authentication tokens.
  • Managing users, user roles, user groups, and user permissions.

RBAC service API v2

  • Revoking authentication tokens.

Node classifier service API

  • Querying the groups that a node matches.
  • Querying the classes, parameters, and variables that have been assigned to a node or group.
  • Querying the environment that a node is in.

Orchestrator API

  • Gathering details about the orchestrator jobs you run.
  • Inspecting applications and applications instances in your Puppet environments.

Code Manager API

  • Creating a webhook to trigger Code Manager.
  • Queueing Puppet code deployments.
  • Checking Code Manager and file sync status.

Status API

  • Checking the health status of PE services.

Activity service API

  • Querying PE service and user events logged by the activity service.

Razor API

  • Provisioning bare-metal machines.

Puppet open-source APIs:

Puppet Server administrative API endpoints

environment-cache

jruby-pool

  • Deleting environment caches created by a Puppet master.
  • Deleting the Puppet Server pool of JRuby instances.

Server-specific Puppet API

  • Environment classes
  • Environment modules
  • Static file content

Getting the classes and parameter information that is associated with an environment, with cache support.

Getting information about what modules are installed in an environment.

Getting the contents of a specific version of a file in a specific environment.

Puppet Server status API

  • Checking the state, memory usage, and uptime of the services running on Puppet Server.

Puppet Server metrics API

  • v1 metrics (deprecated)
  • v2 metrics (Jolokia)

Querying Puppet Server performance and usage metrics.

Puppet HTTP API

  • Retrieving a catalog for a node
  • Accessing environment information
  • For information on how this API is used internally by Puppet, see Agent/Master HTTPs Communications page

Certificate Authority (CA) API

  • Used internally by Puppet to manage agent certificates.
  • See Agent/Master HTTPs Communications for details. See Puppet's Commands page for information about the Puppet Cert command line tool.

PuppetDB APIs

  • Querying the data that PuppetDB collects from Puppet
  • Importing and exporting PuppetDB archives
  • Changing the PuppetDB model of a population
  • Querying information about the PuppetDB server
  • Querying PuppetDB metrics

Forge API

  • Finding information about modules and users on the Forge
  • Writing scripts and tools that interact with the Forge website

pe_api's People

Contributors

boltkrank avatar

Watchers

James Cloos avatar  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.