Skip to content

Commit

Permalink
Fixes #15325: Agent inventory are refused by the webapp since they do…
Browse files Browse the repository at this point in the history
… not contains the agent certificate
  • Loading branch information
Fdall committed Jul 26, 2019
1 parent e689c9c commit bdba675
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
my $server_hostname_file = "${candidate}/policy_server.dat";
my $uuid_file = "${candidate}/rudder-server-uuid.txt";
- my $cfengine_key_file = "${candidate}/ppkeys/localhost.pub";
+ my $certificate_file = "${candidate}/ssl/localhost.cert";
+ my $certificate_file = "${candidate}/ssl/agent.cert";
+
+ if ($agent_name eq "dsc") {
+ $uuid_file = 'C:/Program Files/Rudder/policy/rudder-server-uuid.txt';
+ } else {
+ $certificate_file = '/opt/rudder/etc/ssl/localhost.cert';
+ $certificate_file = '/opt/rudder/etc/ssl/agent.cert';
+ }

# get policy server hostname
Expand Down

0 comments on commit bdba675

Please sign in to comment.