diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg new file mode 100644 index 00000000..0a7eb0d4 --- /dev/null +++ b/ansible/ansible.cfg @@ -0,0 +1,5 @@ +[defaults] + +# some basic default values... + +inventory = ./hosts \ No newline at end of file diff --git a/ansible/hosts b/ansible/hosts new file mode 100644 index 00000000..bae11c49 --- /dev/null +++ b/ansible/hosts @@ -0,0 +1,5 @@ +[hypervisor] +server3.hq.c3d2.de +server4.hq.c3d2.de +server5.hq.c3d2.de +server6.hq.c3d2.de diff --git a/ansible/hypervisor.yml b/ansible/hypervisor.yml new file mode 100644 index 00000000..8004c1ab --- /dev/null +++ b/ansible/hypervisor.yml @@ -0,0 +1,5 @@ +--- +# file: hypervisor.yml +- hosts: hypervisor + roles: + - proxmox diff --git a/ansible/roles/proxmox/tasks/main.yml b/ansible/roles/proxmox/tasks/main.yml new file mode 100644 index 00000000..bd9b3528 --- /dev/null +++ b/ansible/roles/proxmox/tasks/main.yml @@ -0,0 +1,25 @@ +--- +- name: Update all packages to the latest version + apt: + upgrade: dist +- name: Install packages + apt: + name: "{{ packages }}" + vars: + packages: + - zsh + - iotop + - latencytop + - htop + +- name: Cloning oh-my-zsh + git: + repo=https://github.com/robbyrussell/oh-my-zsh + dest=~/.oh-my-zsh + +- name: Link ~/.zshrc + file: + src: /etc/pve/zshrc + dest: ~/.zshrc + state: link + force: yes \ No newline at end of file diff --git a/hosts/containers/feile/configuration.nix b/hosts/containers/feile/configuration.nix index b49ef411..765c52ce 100644 --- a/hosts/containers/feile/configuration.nix +++ b/hosts/containers/feile/configuration.nix @@ -82,6 +82,7 @@ gitAndTools.git mpv + iotop # libmagic how ? ]; diff --git a/hosts/containers/registry/configuration.nix b/hosts/containers/registry/configuration.nix index 22833674..f9e0d071 100644 --- a/hosts/containers/registry/configuration.nix +++ b/hosts/containers/registry/configuration.nix @@ -90,6 +90,10 @@ locations."/" = { proxyPass = "http://localhost:5000"; }; + extraConfig = '' + client_max_body_size 2048M; + gzip off; + ''; }; # This value determines the NixOS release with which your system is to be diff --git a/secrets b/secrets index 47e9ecab..3fbfe2f9 160000 --- a/secrets +++ b/secrets @@ -1 +1 @@ -Subproject commit 47e9ecab99cf951f31b51ae9b0b79cc4073ae5ef +Subproject commit 3fbfe2f9a6949fee19d70c97d2e5ca27f9d6539f