summaryrefslogtreecommitdiff
path: root/roles/vagrant-libvirt/files
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vagrant-libvirt/files')
-rw-r--r--roles/vagrant-libvirt/files/Vagrantfile12
-rw-r--r--roles/vagrant-libvirt/files/config.boot41
-rw-r--r--roles/vagrant-libvirt/files/metadata.json1
-rw-r--r--roles/vagrant-libvirt/files/persistence.conf1
4 files changed, 55 insertions, 0 deletions
diff --git a/roles/vagrant-libvirt/files/Vagrantfile b/roles/vagrant-libvirt/files/Vagrantfile
new file mode 100644
index 0000000..7c89422
--- /dev/null
+++ b/roles/vagrant-libvirt/files/Vagrantfile
@@ -0,0 +1,12 @@
+Vagrant.configure("2") do |config|
+ config.vm.synced_folder './', '/vagrant',
+ type: "rsync",
+ owner: 'vyos',
+ group: 'users',
+ mount_options: ['dmode=775,fmode=775']
+ config.ssh.username = "vyos"
+ config.ssh.password = "vyos"
+ config.vm.provider :libvirt do |libvirt|
+ libvirt.driver = "kvm"
+ end
+end
diff --git a/roles/vagrant-libvirt/files/config.boot b/roles/vagrant-libvirt/files/config.boot
new file mode 100644
index 0000000..f1ec4f5
--- /dev/null
+++ b/roles/vagrant-libvirt/files/config.boot
@@ -0,0 +1,41 @@
+service {
+ ssh {
+ port 22
+ }
+}
+system {
+ host-name vyos
+ login {
+ user vyos {
+ authentication {
+ encrypted-password "$6$MjV2YvKQ56q$QbL562qhRoyUu8OaqrXagicvcsNpF1HssCY06ZxxghDJkBCfSfTE/4FlFB41xZcd/HqYyVBuRt8Zyq3ozJ0dc."
+ plaintext-password ""
+ }
+ level admin
+ }
+ }
+ syslog {
+ global {
+ facility all {
+ level notice
+ }
+ facility protocols {
+ level debug
+ }
+ }
+ }
+ ntp {
+ server "0.pool.ntp.org"
+ server "1.pool.ntp.org"
+ server "2.pool.ntp.org"
+ }
+ config-management {
+ commit-revisions 100
+ }
+}
+interfaces {
+ ethernet eth0 {
+ address dhcp
+ }
+ loopback lo
+}
diff --git a/roles/vagrant-libvirt/files/metadata.json b/roles/vagrant-libvirt/files/metadata.json
new file mode 100644
index 0000000..a502c63
--- /dev/null
+++ b/roles/vagrant-libvirt/files/metadata.json
@@ -0,0 +1 @@
+{"format":"qcow2","provider":"libvirt","virtual_size":1}
diff --git a/roles/vagrant-libvirt/files/persistence.conf b/roles/vagrant-libvirt/files/persistence.conf
new file mode 100644
index 0000000..f500aef
--- /dev/null
+++ b/roles/vagrant-libvirt/files/persistence.conf
@@ -0,0 +1 @@
+/ union