Module: VagrantPlugins::CaCertificates::Cap::CoreOS::UpdateCertificateBundle
- Defined in:
- lib/vagrant-ca-certificates/cap/coreos/update_certificate_bundle.rb
Overview
Capability for configuring the certificate bundle on CoreOS.
Class Method Summary collapse
Class Method Details
.update_certificate_bundle(m) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/vagrant-ca-certificates/cap/coreos/update_certificate_bundle.rb', line 7 def self.update_certificate_bundle(m) m.communicate.sudo("ls /etc/ssl/certs | awk '{print \"private/\"$1;}' >> /etc/ca-certificates.conf") # enable our custom certs m.communicate.sudo('update-ca-certificates') do |type, data| if [:stderr, :stdout].include?(type) next if data =~ /stdin: is not a tty/ m.env.ui.info data end end end |