I'm doing some automation for a local machine in Vagrant using Puppet.
I need to add a CA certificate to the trusted list in Ubuntu Trusty 14.04 LTS. I simply add the file to the right place:
file { 'godaddy-ca-cert':
path => '/usr/share/ca-certificates/godaddy-ca.crt',
owner => 'root',
group => 'root',
mode => '0644',
source => "puppet:///modules/certificates/godaddy-ca.pem"
}
What I can do to manually add the certificate? Typically I've done the following manually to update certificates:
sudo dpkg-reconfigure ca-certificates
However, this doesn't work as it requires manual input. How can I automate adding root CA authorities without any manual input?