Skip to content

A Puppet module that includes a type/provider for performing configurations on a RESTful API

Notifications You must be signed in to change notification settings

abotelho-cbn/puppet-rest_api_resource

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

REST API Resource

A Puppet module that includes a type/provider for performing configurations on a RESTful API.

Platforms

Any platform that Puppet runs on.

Usage

rest_resource { "user import":
  ensure    => present,
  base_url  => "https://api.example.com",
  auth_type => "basic",
  identity  => "username",
  secret    => "password",
  exists    => {
    endpoint => "/users/import",
    status   => "200"
  },
  create   => {
    endpoint => "/users",
    method   => "POST",
    body     => {
      username => "import",
      password => "afxfjr6s4qdfst",
      description => "A user for importing data",
    },
    status => "201"
  }
}

About

A Puppet module that includes a type/provider for performing configurations on a RESTful API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%