summaryrefslogtreecommitdiff
path: root/vagrant/Vagrantfile
diff options
context:
space:
mode:
authorRoberto Berto <roberto.berto@under.com.br>2024-03-10 19:35:58 -0300
committerRoberto Berto <roberto.berto@under.com.br>2024-03-10 19:35:58 -0300
commit49013d83ce053912fe58edf007dddd78172b7f31 (patch)
treee9c0bdeaa91ba960a597462221184c66eea8e497 /vagrant/Vagrantfile
parente8e0ecfd07f624100fa0e5d3fed1a737ae8b14f7 (diff)
downloadpyvyos-49013d83ce053912fe58edf007dddd78172b7f31.tar.gz
pyvyos-49013d83ce053912fe58edf007dddd78172b7f31.zip
vagrant infra to test and developmentv0.2.1
Diffstat (limited to 'vagrant/Vagrantfile')
-rw-r--r--vagrant/Vagrantfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 89edbf3..1b20c97 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -33,6 +33,17 @@ Vagrant.configure("2") do |config|
# first boot is not necessary
pyvyos.ssh.insert_key = true
+ # mkdir /opt/vyatta/config/certs
+ # chmod 0700 /opt/vyatta/config/certs
+
+ # generate pki certificate self-signed file /opt/vyatta/config/certs/certself
+ # set pki certificate certself certificate "$(cat /opt/vyatta/config/certs/certself.pem | tail -n +2 | head -n -1 | tr -d '\n')"
+ # set pki certificate certself private key "$(cat /opt/vyatta/config/certs/certself.key | tail -n +2 | head -n -1 | tr -d '\n')"
+
+ # generate pki ca file /opt/vyatta/config/certs/certca
+ # set pki ca certca certificate "$(cat /opt/vyatta/config/certs/certca.pem | tail -n +2 | head -n -1 | tr -d '\n')"
+ # set pki ca certca private key "$(cat /opt/vyatta/config/certs/certca.key | tail -n +2 | head -n -1 | tr -d '\n')"
+
# shell script to provision the vyos vm
pyvyos.vm.provision "shell", inline: <<-SHELL
#!/bin/vbash