This fix cleans up the agent node (Docker container) certificates both from the Docker-mounted directory as well as the master's SSL directory. Prior to this, certificates did not generate automatically due to leftover files in the master's SSL directory. Eventually, it appeared as though the first Puppet run in the container would generate the files, but it was too late to automatically sign them at that point, leaving it to the user to sign the agent node's certificate.
This problem appeared after updating the LVM with PE 2019.0.1, but I'm not sure if it is related to that or was just exposed by some other timing-related issue/race condition.
This fix cleans up the agent node (Docker container) certificates both from the Docker-mounted directory as well as the master's SSL directory. Prior to this, certificates did not generate automatically due to leftover files in the master's SSL directory. Eventually, it appeared as though the first Puppet run in the container would generate the files, but it was too late to automatically sign them at that point, leaving it to the user to sign the agent node's certificate.
This problem appeared after updating the LVM with PE 2019.0.1, but I'm not sure if it is related to that or was just exposed by some other timing-related issue/race condition.