initial commit

This commit is contained in:
2022-01-23 22:17:19 +01:00
parent f2b1d9fe3d
commit 787250b190
12 changed files with 89 additions and 0 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
# ---> Ansible
*.retry
/.vagrant/
**.deb

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "innernet"]
path = innernet
url = https://git.fsfe.org/fsfe-system-hackers/innernet.git

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM rust:slim-bullseye
RUN cargo install cargo-deb
RUN apt-get update
RUN apt-get install -y libsqlite3-dev libclang-dev
RUN mkdir -p /innernet
WORKDIR /innernet

17
Vagrantfile vendored Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
Vagrant.configure("2") do |config|
config.vm.box = "generic/debian11"
config.vm.box_check_update = true
config.vm.synced_folder ".", "/vagrant"
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 4
libvirt.memory = 2048
end
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook.yml"
ansible.become = true
end
end

3
ansible.cfg Normal file
View File

@@ -0,0 +1,3 @@
[defaults]
interpreter_python = auto
inventory = inventory.ini

19
build-innernet-client.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# build needed Docker container
docker build . -t rust-deb:bullseye
# Go to innernet-src submodule
cd innernet || exit
INNERNET_VERSION="${INNERNET_VERSION:-1.5.1}"
# Checkout correct version
git checkout "v${INNERNET_VERSION}"
# Build binaries
echo "Building client binary"
docker run --rm -v $PWD:/innernet rust-deb:bullseye cargo deb -p client
# Copy binaries to Ansible roles
cp target/debian/innernet_"$INNERNET_VERSION"_amd64.deb ./innernet.deb

15
group_vars/all.yml Normal file
View File

@@ -0,0 +1,15 @@
---
# system packages to install
pkgs_to_install:
# e-mail
- thunderbird
# password manager
- keepassxc
- webext-keepassxc-browser
# adblocker for firefox
- webext-ublock-origin-firefox
# nextcloud integration
- nextcloud-desktop
- nautilus-nextcloud
# desktop tweaking
- gnome-tweaks

5
group_vars/shell.nix Normal file
View File

@@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell { buildInputs = [ ansible vagrant qemu ]; }

1
innernet Submodule

Submodule innernet added at 9a59ac3094

2
inventory.ini Normal file
View File

@@ -0,0 +1,2 @@
[target]
local ansible_connection=local

10
playbook.yml Normal file
View File

@@ -0,0 +1,10 @@
- name: Install packages
tags: [pkgs, base, apt]
hosts: all
become: true
tasks:
- name: Install packages from Debian
apt:
state: present
update_cache: true
pkg: "{{ pkgs_to_install }}"

5
shell.nix Normal file
View File

@@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell { buildInputs = [ ansible vagrant ]; }