summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_ca_certs.py
diff options
context:
space:
mode:
authorCosmin Luță <q4break@gmail.com>2012-03-09 22:38:29 +0200
committerCosmin Luță <q4break@gmail.com>2012-03-09 22:38:29 +0200
commita52691ec3a4ad6802597a214b2375cf438fe9fa0 (patch)
tree8689bb2e2ac44f4ad7ae26691933bfc48a6d413d /cloudinit/CloudConfig/cc_ca_certs.py
parentd8db2154fb7bc468ab2baa6e6f4a11db59251ae1 (diff)
parent0d4fedc1f7bccd15e12e5f2a3fc829ed16d22c57 (diff)
downloadvyos-cloud-init-a52691ec3a4ad6802597a214b2375cf438fe9fa0.tar.gz
vyos-cloud-init-a52691ec3a4ad6802597a214b2375cf438fe9fa0.zip
Renamed data source to CloudStack
Diffstat (limited to 'cloudinit/CloudConfig/cc_ca_certs.py')
-rw-r--r--cloudinit/CloudConfig/cc_ca_certs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_ca_certs.py b/cloudinit/CloudConfig/cc_ca_certs.py
index c18821f9..3af6238a 100644
--- a/cloudinit/CloudConfig/cc_ca_certs.py
+++ b/cloudinit/CloudConfig/cc_ca_certs.py
@@ -16,7 +16,7 @@
import os
from subprocess import check_call
from cloudinit.util import (write_file, get_cfg_option_list_or_str,
- delete_dir_contents)
+ delete_dir_contents, subp)
CA_CERT_PATH = "/usr/share/ca-certificates/"
CA_CERT_FILENAME = "cloud-init-ca-certs.crt"
@@ -54,6 +54,8 @@ def remove_default_ca_certs():
delete_dir_contents(CA_CERT_PATH)
delete_dir_contents(CA_CERT_SYSTEM_PATH)
write_file(CA_CERT_CONFIG, "", mode=0644)
+ debconf_sel = "ca-certificates ca-certificates/trust_new_crts select no"
+ subp(('debconf-set-selections', '-'), debconf_sel)
def handle(_name, cfg, _cloud, log, _args):