Browse Source

Merge branch 'master' of ssh://gitea.c3d2.de:2222/C3D2/nix-config

pull/1/head
Markus Schmidl 2 years ago
parent
commit
b333024bac

+ 5
- 0
ansible/ansible.cfg View File

@@ -0,0 +1,5 @@
1
+[defaults]
2
+
3
+# some basic default values...
4
+
5
+inventory      = ./hosts

+ 5
- 0
ansible/hosts View File

@@ -0,0 +1,5 @@
1
+[hypervisor]
2
+server3.hq.c3d2.de 
3
+server4.hq.c3d2.de 
4
+server5.hq.c3d2.de
5
+server6.hq.c3d2.de   

+ 5
- 0
ansible/hypervisor.yml View File

@@ -0,0 +1,5 @@
1
+---
2
+# file: hypervisor.yml
3
+- hosts: hypervisor
4
+  roles:
5
+    - proxmox

+ 25
- 0
ansible/roles/proxmox/tasks/main.yml View File

@@ -0,0 +1,25 @@
1
+---
2
+- name: Update all packages to the latest version
3
+  apt:
4
+    upgrade: dist
5
+- name: Install packages
6
+  apt:
7
+    name: "{{ packages }}"
8
+  vars:
9
+    packages:
10
+    - zsh
11
+    - iotop
12
+    - latencytop
13
+    - htop
14
+
15
+- name: Cloning  oh-my-zsh
16
+  git:
17
+    repo=https://github.com/robbyrussell/oh-my-zsh
18
+    dest=~/.oh-my-zsh
19
+
20
+- name: Link ~/.zshrc
21
+  file:
22
+    src: /etc/pve/zshrc
23
+    dest: ~/.zshrc
24
+    state: link
25
+    force: yes

+ 1
- 0
hosts/containers/feile/configuration.nix View File

@@ -82,6 +82,7 @@
82 82
      gitAndTools.git
83 83
 
84 84
      mpv
85
+     iotop
85 86
      # libmagic how ?
86 87
   ];
87 88
 

+ 4
- 0
hosts/containers/registry/configuration.nix View File

@@ -90,6 +90,10 @@
90 90
     locations."/" = {
91 91
            proxyPass = "http://localhost:5000";
92 92
     };
93
+    extraConfig = ''
94
+      client_max_body_size 2048M;
95
+      gzip off;
96
+    '';
93 97
   };
94 98
 
95 99
   # This value determines the NixOS release with which your system is to be

+ 1
- 1
secrets

@@ -1 +1 @@
1
-Subproject commit 47e9ecab99cf951f31b51ae9b0b79cc4073ae5ef
1
+Subproject commit 3fbfe2f9a6949fee19d70c97d2e5ca27f9d6539f

Loading…
Cancel
Save