Skip to content

Commit

Permalink
vagrant infra to test and development
Browse files Browse the repository at this point in the history
  • Loading branch information
bertogravscale committed Mar 10, 2024
1 parent e8e0ecf commit 49013d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vagrant/VAGRANT.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ If you want to only use pyvyos you dont need to install vagrant

1. Install Vagrant
2. Install VirtualBox
3. Install Vagrant plugin for vyos
3. Install Vagrant plugins
```
vagrant plugin install vagrant-vyos
vagrant plugin install vagrant-dotenv
```
4. Install mkisofs
```
Expand Down
11 changes: 11 additions & 0 deletions vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49013d8

Please sign in to comment.