consolidation of old templates
This commit is contained in:
20
vagrant/hyperv/ubuntu/docker/Vagrantfile
vendored
Executable file
20
vagrant/hyperv/ubuntu/docker/Vagrantfile
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/ubuntu2004"
|
||||
config.vm.network "public_network"
|
||||
config.vm.synced_folder ".", "/vagrant_data", disabled: true
|
||||
config.vm.provider "hyperv"
|
||||
config.vm.provider "hyperv" do |h|
|
||||
h.enable_virtualization_extensions = false
|
||||
h.linked_clone = true
|
||||
h.memory = 2048
|
||||
h.vmname = "ubuntu_docker_1"
|
||||
end
|
||||
|
||||
config.vm.provision "ansible" do |a|
|
||||
a.verbose = "v"
|
||||
a.playbook = "playbook.yaml"
|
||||
end
|
||||
end
|
||||
29
vagrant/hyperv/ubuntu/docker/playbook.yaml
Normal file
29
vagrant/hyperv/ubuntu/docker/playbook.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: install prerequisites
|
||||
apt:
|
||||
name:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- gnupg-agent
|
||||
- software-properties-common
|
||||
update_cache: yes
|
||||
- name: add apt-key
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/ubuntu/gpg
|
||||
- name: add docker repo
|
||||
apt_repository:
|
||||
repo: deb https://download.docker.com/linux/ubuntu focal stable
|
||||
- name: install docker
|
||||
apt:
|
||||
name:
|
||||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
- docker-compose
|
||||
update_cache: yes
|
||||
- name: add userpermissions
|
||||
shell: "usermod -aG docker vagrant"
|
||||
20
vagrant/hyperv/ubuntu/microk8s-installed/Vagrantfile
vendored
Executable file
20
vagrant/hyperv/ubuntu/microk8s-installed/Vagrantfile
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/ubuntu2004"
|
||||
config.vm.network "public_network"
|
||||
config.vm.synced_folder ".", "/vagrant_data", disabled: true
|
||||
config.vm.provider "hyperv"
|
||||
config.vm.provider "hyperv" do |h|
|
||||
h.enable_virtualization_extensions = false
|
||||
h.linked_clone = true
|
||||
h.memory = 2048
|
||||
h.vmname = "ubuntu_plain_1"
|
||||
end
|
||||
|
||||
config.vm.provision "ansible" do |a|
|
||||
a.verbose = "v"
|
||||
a.playbook = "playbook.yaml"
|
||||
end
|
||||
end
|
||||
11
vagrant/hyperv/ubuntu/microk8s-installed/playbook.yaml
Normal file
11
vagrant/hyperv/ubuntu/microk8s-installed/playbook.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: install microk8s
|
||||
snap:
|
||||
classic: yes
|
||||
name: microk8s
|
||||
- name: add userpermissions
|
||||
shell: "usermod -aG microk8s vagrant"
|
||||
|
||||
22
vagrant/hyperv/ubuntu/plain-with-cockpit/Vagrantfile
vendored
Executable file
22
vagrant/hyperv/ubuntu/plain-with-cockpit/Vagrantfile
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/ubuntu2004"
|
||||
config.vm.network "public_network", bridge: "BRIDGE"
|
||||
config.vm.synced_folder ".", "/vagrant_data", disabled: true
|
||||
config.vm.provider "hyperv"
|
||||
config.vm.hostname = "ubuntu_plan-with-cockpit-1"
|
||||
|
||||
config.vm.provider "hyperv" do |h|
|
||||
h.enable_virtualization_extensions = false
|
||||
h.linked_clone = true
|
||||
h.memory = 2048
|
||||
h.vmname = "ubuntu_plan-with-cockpit-1"
|
||||
end
|
||||
|
||||
config.vm.provision "ansible" do |a|
|
||||
a.verbose = "v"
|
||||
a.playbook = "playbook.yaml"
|
||||
end
|
||||
end
|
||||
8
vagrant/hyperv/ubuntu/plain-with-cockpit/playbook.yaml
Executable file
8
vagrant/hyperv/ubuntu/plain-with-cockpit/playbook.yaml
Executable file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: install cockpit
|
||||
apt:
|
||||
name: cockpit
|
||||
update_cache: yes
|
||||
15
vagrant/hyperv/ubuntu/plain/Vagrantfile
vendored
Executable file
15
vagrant/hyperv/ubuntu/plain/Vagrantfile
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/ubuntu2004"
|
||||
config.vm.network "public_network"
|
||||
config.vm.synced_folder ".", "/vagrant_data", disabled: true
|
||||
config.vm.provider "hyperv"
|
||||
config.vm.provider "hyperv" do |h|
|
||||
h.enable_virtualization_extensions = false
|
||||
h.linked_clone = true
|
||||
h.memory = 2048
|
||||
h.vmname = "ubuntu_plain_1"
|
||||
end
|
||||
end
|
||||
38
vagrant/hyperv/ubuntu/ubuntu-cluster-plain/Vagrantfile
vendored
Normal file
38
vagrant/hyperv/ubuntu/ubuntu-cluster-plain/Vagrantfile
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
|
||||
config.vm.define "node1", primary: true do |node1|
|
||||
|
||||
node1.vm.box = "generic/ubuntu2004"
|
||||
node1.vm.network "public_network", bridge: "BRIDGE"
|
||||
node1.vm.synced_folder ".", "/vagrant_data", disabled: true
|
||||
node1.vm.provider "hyperv"
|
||||
node1.vm.hostname = "node1"
|
||||
|
||||
node1.vm.provider "hyperv" do |h|
|
||||
h.enable_virtualization_extensions = false
|
||||
h.linked_clone = true
|
||||
h.memory = 2048
|
||||
h.vmname = "node1"
|
||||
end
|
||||
end
|
||||
|
||||
config.vm.define "node2" do |node2|
|
||||
|
||||
node2.vm.box = "generic/ubuntu2004"
|
||||
node2.vm.network "public_network", bridge: "BRIDGE"
|
||||
node2.vm.synced_folder ".", "/vagrant_data", disabled: true
|
||||
node2.vm.provider "hyperv"
|
||||
node2.vm.hostname = "node2"
|
||||
|
||||
node2.vm.provider "hyperv" do |h|
|
||||
h.enable_virtualization_extensions = false
|
||||
h.linked_clone = true
|
||||
h.memory = 2048
|
||||
h.vmname = "node2"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
16
vagrant/kvm/ubuntu/Vagrantfile
vendored
Normal file
16
vagrant/kvm/ubuntu/Vagrantfile
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/ubuntu2004"
|
||||
config.vm.network :public_network,
|
||||
:dev => "virbr0",
|
||||
:mode => "bridge",
|
||||
:type => "bridge"
|
||||
config.vm.synced_folder ".", "/vagrant_data", disabled: true
|
||||
config.vm.provider :libvirt do |libvirt|
|
||||
libvirt.cpus = 2
|
||||
libvirt.memory = 4096
|
||||
libvirt.nested = true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user