puppet-debugger icon indicating copy to clipboard operation
puppet-debugger copied to clipboard

node requests rule

Open logicminds opened this issue 9 years ago • 1 comments

In order to allow node data requests you need to alter your auth.conf file and restart your puppet master.

 {
            "allow" : "$1",
            "match-request" : {
                "method" : "get",
                "path" : "^/puppet/v3/node/([^/]+)$",
                "query-params" : {},
                "type" : "regex"
            },
            "name" : "puppetlabs node",
            "sort-order" : 500
        }

Change "allow" : "$1" to "allow" : "*"

or add a new rule with whitelisted names

 {
            "allow" : ["puppetdev.localdomain", "$1"],
            "match-request" : {
                "method" : "get",
                "path" : "^/puppet/v3/node/([^/]+)$",
                "query-params" : {},
                "type" : "regex"
            },
            "name" : "puppetlabs node",
            "sort-order" : 500
        }

Please note that you must restart your puppetserver. If not using puppetserver a similar auth.conf change is needed for older puppet masters.

logicminds avatar May 10 '16 17:05 logicminds

Change "allow" : "$1" to "allow" : "*"

or add a new rule with whitelisted names

 {
            "allow" : "puppetdev.localdomain",
            "match-request" : {
                "method" : "get",
                "path" : "^/puppet/v3/node/([^/]+)$",
                "query-params" : {},
                "type" : "regex"
            },
            "name" : "puppetlabs node",
            "sort-order" : 500
        }

logicminds avatar May 10 '16 17:05 logicminds