Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a6 #23

Merged
merged 2 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename a5 to a6, add vm files
  • Loading branch information
64bitpandas committed Oct 27, 2020
commit e5630e9345dea3450f7d223189ee28a78e4bc5fc
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions a6/vm/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
# Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "bento/debian-9.0"
config.vm.hostname = "i-am-become-penguin"
config.vm.network "private_network", ip: "192.168.42.42"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#

config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.sudo = true
end
end
22 changes: 22 additions & 0 deletions a6/vm/vagrant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
- hosts: all
tasks:
- name: Install packages for this assignment
apt:
name: "{{ item }}"
state: present
with_items:
- traceroute
- python3-pip
- dnsmasq
- mtr
- vim
- git
- name: Export sbin paths for vagrant user
lineinfile:
dest: /etc/profile
line: export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
- name: Clone the labs repo
git:
repo: https://github.com/0xcf/decal-labs.git
dest: /home/vagrant/decal-labs