Skip to content

Instantly share code, notes, and snippets.

@binford2k
Last active June 26, 2018 17:58
Show Gist options
  • Save binford2k/ffead8412a29529c19a3800561949bbd to your computer and use it in GitHub Desktop.
Save binford2k/ffead8412a29529c19a3800561949bbd to your computer and use it in GitHub Desktop.
authorization rule examples for some puppetserver API endpoints
puppet_authorization::rule { 'puppetlabs environment cache':
match_request_path => '/puppet-admin-api/v1/environment-cache',
match_request_type => 'path',
match_request_method => 'delete',
allow => $_puppet_admin_certs,
sort_order => 500,
path => "${confdir}/conf.d/auth.conf",
}
puppet_authorization::rule { 'puppetlabs jruby pool':
match_request_path => '/puppet-admin-api/v1/jruby-pool',
match_request_type => 'path',
match_request_method => 'delete',
allow => $_puppet_admin_certs,
sort_order => 500,
path => "${confdir}/conf.d/auth.conf",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment