Commit 7012096f authored by nimrod's avatar nimrod
Browse files

Homelab circa early 2010s.

A dump of my homelab (and the start of shore.co.il infrastructure).
Apparently I never committed them (it was some sort of WIP although it
reflects alot of what I had in "production"). This can be seen as a
snapshot of things when I wrote alot of different Ansible roles and used
LXC containers instead of VMs. I think that the only thing I kept is the
OpenBSD setup (no Docker there).
parent 3b9d5839
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+5 −0
Original line number Diff line number Diff line
roles/
~*
*~
*.sw[op]
*.retry

.gitmodules

0 → 100644
+3 −0
Original line number Diff line number Diff line
[submodule "library/shore"]
	path = library/shore
	url = https://www.shore.co.il/git/ansible-modules

ansible.cfg

0 → 100644
+12 −0
Original line number Diff line number Diff line
[defaults]
inventory = hosts/
private_key_file = ~/.ssh/shore_ecdsa
vault_password_file = ~/Documents/Shore/vault.pwd
roles_path = roles/
library = library/

[privilege_escalation]
become = True
become_method = sudo
become_user = root
become_ask_pass = False

common.yml

0 → 100644
+27 −0
Original line number Diff line number Diff line
---
- hosts:
      - ns1.shore.co.il
      - 192.168.3.1
  gather_facts: no
  roles:
      - role: openbsd-bootstrap
        tags: [openbsd, openbsd-bootstrap]

- hosts: all
  roles:
      - role: users
        tags: [users]

      - role: ca-store
        tags: [ca-store]

      - role: ntp-client
        tags: [ntp-client]

      - role: ufw
        when: ansible_os_family == 'Debian'
        tags: [ufw, Debian]

      - role: unattended-upgrades
        when: ansible_os_family == 'Debian'
        tags: [unattended-upgrades, Debian]

files/compilekernel

0 → 100755
+8 −0
Original line number Diff line number Diff line
#!/bin/sh
cd /usr/src/sys/arch/$(machine)/conf
KK=$(sysctl -n kern.osversion | cut -d# -f1)
config $KK
cd ../compile/$KK
make
make install
make clean
Loading