From 14956aee958cf79ccb7d3b473b1cf90921bea5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ga=C3=A1l?= Date: Wed, 23 Dec 2020 14:25:50 +0300 Subject: [PATCH] Add custom certificate bundles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Gaál --- .gitignore | 2 ++ Vagrantfile-centos8 | 7 +++++++ crt/.gitignore | 0 3 files changed, 9 insertions(+) create mode 100644 crt/.gitignore diff --git a/.gitignore b/.gitignore index 35646756..0eb13af4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,8 @@ /pke-single-config.yaml /pke-multi-config.yaml +/crt/*.crt + **/.vagrant* .DS_Store diff --git a/Vagrantfile-centos8 b/Vagrantfile-centos8 index 2f4b50e5..6f90a004 100644 --- a/Vagrantfile-centos8 +++ b/Vagrantfile-centos8 @@ -11,6 +11,7 @@ Vagrant.configure("2") do |config| # sync build folder config.vm.synced_folder '.', '/vagrant', disabled: true config.vm.synced_folder 'scripts/vagrant/', '/scripts/', create: true + config.vm.synced_folder 'crt/', '/opt/crt/', create: true config.vm.synced_folder 'build/', '/banzaicloud/', create: true $num_instances = 4 @@ -60,6 +61,12 @@ Vagrant.configure("2") do |config| node.vm.provision "shell" do |s| s.inline = <<-SHELL + yum install -y ca-certificates + update-ca-trust enable + cd /opt/crt + find . -type f -name '*.crt' -execdir cp {} /etc/pki/ca-trust/source/anchors/{} \\; + update-ca-trust extract + dnf install -y yum-utils wget curl chrony vim net-tools socat echo 'sync time' systemctl enable --now chronyd diff --git a/crt/.gitignore b/crt/.gitignore new file mode 100644 index 00000000..e69de29b