We are faced with a third party application authorization
(written in Rails) to chef-server. In particular: it is necessary to
establish the role of our application. According to the documentation we
create a POST query of the form:
“json_class”: “Chef:: Role”
But the server does not transmit
the request, because we are not authorized on it. We’re trying to login
(so in the documentation) on the server as:
client_name = “desktop"
= “/ etc / chef / client.pem"
rest = Chef:: REST.new (chef_server_url,
puts rest.get_rest (”/
And we have nothing. Somehow we have to create a header that
will contain the signature, but it is unclear how to do it.
how to log-in to chef-server and create role normally?