Debian workstation project with guest additions

This commit is contained in:
Kris Lamoureux 2021-11-27 00:53:58 -05:00
commit bf9aee2004
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
10 changed files with 80 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.vagrant

5
LICENSE Normal file
View File

@ -0,0 +1,5 @@
Copyright (C) 2021 by Kris Lamoureux <kris@lamoureux.io>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

9
README.md Normal file
View File

@ -0,0 +1,9 @@
# workstation
An Ansible project for provisioning and managing a Debian GNU/Linux productivity workstation
- The vagrant user's password is: `password`
#### Copyrights and Licenses
Copyright 2021 Kris Lamoureux
This project is licensed under the 0BSD license, a public-domain-equivalent license. Please refer to the LICENSE file contained in the repository.

20
Vagrantfile vendored Normal file
View File

@ -0,0 +1,20 @@
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/vagrant", disabled: true
# Boot with a GUI in VirtualBox
config.vm.provider "virtualbox" do |vbox|
vbox.customize ["modifyvm", :id, "--vram", "128"]
vbox.memory = 4096
vbox.cpus = 2
vbox.gui = true
end
# Provision with Ansible
config.vm.provision "ansible" do |ansible|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
ansible.compatibility_mode = "2.0"
ansible.playbook = "site-vagrant.yml"
end
end

2
ansible.cfg Normal file
View File

@ -0,0 +1,2 @@
[defaults]
interpreter_python = /usr/bin/python3

2
inventory.yml Normal file
View File

@ -0,0 +1,2 @@
# Settings convenient for development in vagrant
development: true

View File

@ -0,0 +1,23 @@
- name: Set vagrant user password
user:
name: vagrant
password: "$6$xu0I8bbf.Nva7uCo$OHz5/64u0SjHa1jn0EwCLSNw7Zoj5ejhL\
6NtaXYY6zlC0CQa0J4kZIxAp2Ls4lMdLmuo7oMQX/vlDucR9BbcA."
- name: Install fasttrack archive keyring
apt:
name: fasttrack-archive-keyring
state: present
- name: Enable fasttrack
copy:
dest: /etc/apt/sources.list.d/fasttrack.list
content: |
deb https://fasttrack.debian.net/debian-fasttrack/ bullseye-fasttrack main contrib
deb https://fasttrack.debian.net/debian-fasttrack/ bullseye-backports-staging main contrib
- name: Install guest additions
apt:
name: virtualbox-guest-x11
state: present
update_cache: true

View File

@ -0,0 +1,5 @@
- name: Install KDE
apt:
name: kde-standard
state: present
update_cache: true

View File

@ -0,0 +1,6 @@
- import_tasks: development.yml
tags: development
when: development
- import_tasks: gui.yml
tags: gui

7
site-vagrant.yml Normal file
View File

@ -0,0 +1,7 @@
- name: Install Workstation
hosts: all
become: true
vars_files:
- inventory.yml
roles:
- common