Skip to content

Commit

Permalink
Merge pull request #20 from Ontotext-AD/PUPPET-1-FixHardcodedProtocol…
Browse files Browse the repository at this point in the history
…Call

PUPPET-1: Drops hardcoded protocol call password
  • Loading branch information
rdstn authored Feb 13, 2020
2 parents 7bc3764 + 8ea0415 commit d20fb93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 => '/',
Expand Down
1 change: 0 additions & 1 deletion lib/puppet/util/http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d20fb93

Please sign in to comment.