From 8ea04158806f81efd658b567822cb374b6965151 Mon Sep 17 00:00:00 2001 From: Radostin Nanov Date: Thu, 13 Feb 2020 14:32:19 +0200 Subject: [PATCH] PUPPET-1: Drops hardcoded protocol call password, small README improvement --- README.md | 1 + lib/puppet/util/http_client.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c8ea073..39fc2d9 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,7 @@ graphdb_link { 'master-worker': } exec { 'enable-security': + require => graphdb::ee::worker::repository['worker'], path => [ '/bin', '/usr/bin', '/usr/local/bin' ], command => "curl -k -X POST --header 'Content-Type: application/json' --header 'Accept: */*' -d 'true' 'https://localhost:8080/rest/security'", cwd => '/', diff --git a/lib/puppet/util/http_client.rb b/lib/puppet/util/http_client.rb index 22c1312..babc28e 100644 --- a/lib/puppet/util/http_client.rb +++ b/lib/puppet/util/http_client.rb @@ -34,7 +34,6 @@ def self.prepare_request(request, parameters) request.set_form_data(parameters[:body_params]) if parameters.key?(:body_params) request.content_type = parameters[:content_type] if parameters.key?(:content_type) request['Accept'] = parameters[:accept_type] if parameters.key?(:accept_type) - request['Authorization'] = "Basic YWRtaW46cm9vdA==" set_auth(request, parameters) if parameters.key?(:auth) end