Skip to content
Snippets Groups Projects
Commit b1c64cb1 authored by Zdeněk Vydra's avatar Zdeněk Vydra
Browse files

Merge branch 'vydra-ci-cd' into 'master'

Vydra ci cd

See merge request !1
parents ff14df55 3a600db3
No related branches found
No related tags found
1 merge request!1Vydra ci cd
Pipeline #61363 passed with stages
in 56 minutes and 41 seconds
include:
- project: muni-kypo-images/ci-cd-virtual-images
file: .gitlab-ci-template.yml
variables:
NAME: "kali"
TYPE: "linux"
DISTRO: "debian"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "mybox"
config.vm.box_check_update = false
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "4096"
end
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook.yml"
ansible.verbose = true
ansible.extra_vars = {
ansible_python_interpreter: "/usr/bin/python3",
}
end
end
......@@ -3,7 +3,7 @@
"__comment": "qemu at MacOS doesn't come with SDL support, use_default_display must be set to true",
"builders": [
{
"accelerator": "kvm",
"use_default_display": "true",
"boot_command": [
"<esc><wait>",
"install ",
......@@ -32,9 +32,8 @@
"http_port_max": "{{user `http_port_max`}}",
"http_port_min": "{{user `http_port_min`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `iso_url`}}",
"name": "kali-qemu",
"name": "qemu",
"net_device": "virtio-net",
"output_directory": "target-qemu",
"qemuargs": [
......@@ -83,9 +82,8 @@
"http_port_max": "{{user `http_port_max`}}",
"http_port_min": "{{user `http_port_min`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `iso_url`}}",
"name": "kali-vbox",
"name": "vbox",
"vboxmanage": [
[
"modifyvm",
......@@ -127,7 +125,7 @@
"scripts/fixesQEMU.sh"
],
"type": "shell",
"only": ["kali-qemu"]
"only": ["qemu"]
},
{
"scripts": [
......@@ -136,7 +134,7 @@
"scripts/fixesVBox.sh"
],
"type": "shell",
"only": ["kali-vbox"]
"only": ["vbox"]
},
{
"scripts": [
......@@ -151,19 +149,18 @@
"type": "vagrant",
"output" : "target-vbox/kali.box",
"vagrantfile_template": "Vagrantfile-template",
"only": ["kali-vbox"]
"only": ["vbox"]
}
],
"variables": {
"boot_wait": "10s",
"cpus": "4",
"disk_size": "16384",
"headless": "false",
"headless": "true",
"http_directory": "http",
"http_port_max": "10089",
"http_port_min": "10082",
"iso_checksum": "bad0d602a531b872575e23cc025b45fee475523b51378a035928b733ca395ac5",
"iso_checksum_type": "sha256",
"iso_url": "https://cdimage.kali.org/kali-2019.4/kali-linux-2019.4-amd64.iso",
"memory_size": "4096",
"shutdown_command": "shutdown -P now",
......
- name: Hello world
hosts: all
gather_facts: no
tasks:
- name: Wait for connection
wait_for_connection:
timeout: 600
- name: Gather facts
setup:
- name: Print hello world
debug:
msg: "Hello World"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment