Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ expected to be at `~/.puppetlabs/token` which is the default location used by
### initialization Settings

* `service-url` **[required]** - Base URL for the location of the Orchestrator API service
* `cacert` **[required]** - Path to the CA certificate file needed to verify the SSL connection to the API.
* `cacert` - Path to the CA certificate file needed to verify the SSL connection to the API (defaults to `/etc/puppetlabs/puppet/ssl/certs/ca.pem`).
* `token-file`- Path to a file with the RBAC token in it (defaults to `~/.puppetlabs/token`)
* `token` - Pass directly the RBAC token, if specified the token will be used instead of a token from file.
* `User-Agent`- Set `User-Agent` header for HTTP requests. Defaults to `OrchestratorRubyClient/[VERSION]`
Expand All @@ -37,11 +37,10 @@ expected to be at `~/.puppetlabs/token` which is the default location used by
require 'orchestrator_client'

# Create a new client
# Requires at least a server name and path to the CA certificate
# Requires at least a server name

client = OrchestratorClient.new({
'service-url' => 'https://orchestrator.example.lan:8143/orchestrator/v1',
'cacert' => '/path/to/cert'
})

## Access endpoints through the client object
Expand Down