acng --> acng2 (#433)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: #433
This commit is contained in:
parent
98f39b1b3a
commit
6475d88cd7
12 changed files with 56 additions and 30 deletions
|
@ -12,7 +12,7 @@ steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: pipelinecomponents/ansible-lint
|
image: pipelinecomponents/ansible-lint
|
||||||
environment:
|
environment:
|
||||||
http_proxy: http://acng.grote.lan:9999
|
http_proxy: http://acng2.grote.lan:9999
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
commands:
|
commands:
|
||||||
- ansible-lint --show-relpath .
|
- ansible-lint --show-relpath .
|
||||||
|
|
|
@ -49,7 +49,7 @@ services:
|
||||||
subtitle: "Selbstbau"
|
subtitle: "Selbstbau"
|
||||||
- name: "Apt-Cacher-NG"
|
- name: "Apt-Cacher-NG"
|
||||||
logo: "assets/icons/acng.jpg"
|
logo: "assets/icons/acng.jpg"
|
||||||
url: "http://acng.grote.lan:9999/acng-report.html"
|
url: "http://acng2.grote.lan:9999/acng-report.html"
|
||||||
target: "_blank"
|
target: "_blank"
|
||||||
subtitle: "apt"
|
subtitle: "apt"
|
||||||
- name: "gitea"
|
- name: "gitea"
|
||||||
|
|
|
@ -18,6 +18,7 @@ golem.de::Fußball
|
||||||
golem.de::Anzeige
|
golem.de::Anzeige
|
||||||
golem.de::Aus dem Verlag:
|
golem.de::Aus dem Verlag:
|
||||||
golem.de::Fifa
|
golem.de::Fifa
|
||||||
|
theycantalk.com::Tinyview
|
||||||
golem.de::(g+)
|
golem.de::(g+)
|
||||||
golem.de::in aller Kürze
|
golem.de::in aller Kürze
|
||||||
golem.de::In eigener Sache
|
golem.de::In eigener Sache
|
||||||
|
|
|
@ -18,7 +18,7 @@ services:
|
||||||
- CRONDELAY=5
|
- CRONDELAY=5
|
||||||
- 'NODES=
|
- 'NODES=
|
||||||
fileserver2.grote.lan:fileserver2.grote.lan
|
fileserver2.grote.lan:fileserver2.grote.lan
|
||||||
acng.grote.lan:acng.grote.lan
|
acng2.grote.lan:acng2.grote.lan
|
||||||
ansible2.grote.lan:ansible2.grote.lan
|
ansible2.grote.lan:ansible2.grote.lan
|
||||||
pve5.grote.lan:pve5.grote.lan
|
pve5.grote.lan:pve5.grote.lan
|
||||||
dokuwiki2.grote.lan:dokuwiki2.grote.lan
|
dokuwiki2.grote.lan:dokuwiki2.grote.lan
|
||||||
|
|
|
@ -1,19 +1,10 @@
|
||||||
---
|
---
|
||||||
### mrlesmithjr.ansible-manage-lvm
|
### PROXMOX
|
||||||
lvm_groups:
|
# acng2 ist ein LXC-Container; der Container ist "privileged" damit der Bind-Mount die richtigen Rechte bekommt
|
||||||
- vgname: vg_acng
|
|
||||||
disks:
|
### mgrote.apt_manage_sources
|
||||||
- /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1
|
manage_sources_apt_proxy: "" # weil der Apt-Cacher-NG sich nicht selbst als Quelle nehmen kann
|
||||||
create: true
|
|
||||||
lvnames:
|
|
||||||
- lvname: lv_acng
|
|
||||||
size: +100%FREE
|
|
||||||
create: true
|
|
||||||
filesystem: xfs
|
|
||||||
mount: true
|
|
||||||
mntp: /var/cache/apt-cacher-ng
|
|
||||||
manage_lvm: true
|
|
||||||
pvresize_to_max: true
|
|
||||||
### oefenweb.ufw
|
### oefenweb.ufw
|
||||||
ufw_rules:
|
ufw_rules:
|
||||||
- rule: allow
|
- rule: allow
|
||||||
|
@ -66,7 +57,7 @@
|
||||||
src: https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/http/http_response
|
src: https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/http/http_response
|
||||||
config: |
|
config: |
|
||||||
[http_response]
|
[http_response]
|
||||||
env.sites http://acng.grote.lan:9999/acng-report.html
|
env.sites http://acng2.grote.lan:9999/acng-report.html
|
||||||
env.max_time 20
|
env.max_time 20
|
||||||
env.short_label true
|
env.short_label true
|
||||||
env.follow_redirect true
|
env.follow_redirect true
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
postfix_smtp_server_port: 587
|
postfix_smtp_server_port: 587
|
||||||
postfix_smtp_use_tls: "yes"
|
postfix_smtp_use_tls: "yes"
|
||||||
### mgrote.apt_manage_sources
|
### mgrote.apt_manage_sources
|
||||||
manage_sources_apt_proxy: "acng.grote.lan:9999"
|
manage_sources_apt_proxy: "acng2.grote.lan:9999"
|
||||||
### mgrote.tmux
|
### mgrote.tmux
|
||||||
tmux_conf_destination: "/home/mg/.tmux.conf"
|
tmux_conf_destination: "/home/mg/.tmux.conf"
|
||||||
tmux_bashrc_destination: "/home/mg/.bashrc"
|
tmux_bashrc_destination: "/home/mg/.bashrc"
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
### PROXMOX
|
||||||
|
# fileserver2 ist ein LXC-Container; der Container ist "privileged" damit der Bind-Mount die richtigen Rechte bekommt
|
||||||
|
|
||||||
### oefenweb.ufw
|
### oefenweb.ufw
|
||||||
ufw_rules:
|
ufw_rules:
|
||||||
- rule: allow
|
- rule: allow
|
||||||
|
|
|
@ -27,7 +27,11 @@
|
||||||
- dataset: rpool/ROOT/pve-1
|
- dataset: rpool/ROOT/pve-1
|
||||||
state: present
|
state: present
|
||||||
refreservation: 10G
|
refreservation: 10G
|
||||||
|
# rpool - Data
|
||||||
|
- dataset: rpool/data
|
||||||
|
state: present
|
||||||
|
- dataset: rpool/data/acng
|
||||||
|
state: present
|
||||||
# rpool - VMs
|
# rpool - VMs
|
||||||
- dataset: rpool/vm
|
- dataset: rpool/vm
|
||||||
state: present
|
state: present
|
||||||
|
@ -155,10 +159,14 @@
|
||||||
recursive: 'no'
|
recursive: 'no'
|
||||||
snapshots: true
|
snapshots: true
|
||||||
template: 'pve3tage'
|
template: 'pve3tage'
|
||||||
|
- path: rpool/data/acng
|
||||||
|
recursive: 'no'
|
||||||
|
snapshots: true
|
||||||
|
template: '3tage'
|
||||||
|
|
||||||
### mgrote.cv4pve-autosnap
|
### mgrote.cv4pve-autosnap
|
||||||
cv4pve_api_user: root@pam!cv4pve-autosnap
|
cv4pve_api_user: root@pam!cv4pve-autosnap
|
||||||
cv4pve_api_token: "{{ lookup('keepass', 'cv4pve_api_token_pve2', 'password') }}"
|
cv4pve_api_token: "{{ lookup('keepass', 'cv4pve_api_token', 'password') }}"
|
||||||
cv4pve_vmid: all,-127,-112,-116,-101,-102,-106 # k3s* wieder in snaps aktivieren!
|
cv4pve_vmid: all,-127,-112,-116,-101,-102,-106 # k3s* wieder in snaps aktivieren!
|
||||||
cv4pve_keep_snapshots: 5
|
cv4pve_keep_snapshots: 5
|
||||||
cv4pve_dl_link: "https://github.com/Corsinvest/cv4pve-autosnap/releases/download/v1.10.0/cv4pve-autosnap-linux-x64.zip"
|
cv4pve_dl_link: "https://github.com/Corsinvest/cv4pve-autosnap/releases/download/v1.10.0/cv4pve-autosnap-linux-x64.zip"
|
||||||
|
@ -221,6 +229,10 @@
|
||||||
mp_nr: 16
|
mp_nr: 16
|
||||||
mp_path_host: /hdd_data_raidz/vm
|
mp_path_host: /hdd_data_raidz/vm
|
||||||
mp_path_guest: /shares_vm
|
mp_path_guest: /shares_vm
|
||||||
|
- vmid: 106
|
||||||
|
mp_nr: 1
|
||||||
|
mp_path_host: /rpool/data/acng
|
||||||
|
mp_path_guest: /var/cache/apt-cacher-ng
|
||||||
|
|
||||||
### mgrote.munin-node
|
### mgrote.munin-node
|
||||||
munin_node_plugins:
|
munin_node_plugins:
|
||||||
|
|
|
@ -11,7 +11,7 @@ all:
|
||||||
dnsmasq.grote.lan:
|
dnsmasq.grote.lan:
|
||||||
acng:
|
acng:
|
||||||
hosts:
|
hosts:
|
||||||
acng.grote.lan:
|
acng2.grote.lan:
|
||||||
ansible:
|
ansible:
|
||||||
hosts:
|
hosts:
|
||||||
ansible2.grote.lan:
|
ansible2.grote.lan:
|
||||||
|
@ -35,7 +35,6 @@ all:
|
||||||
proxmoxprod:
|
proxmoxprod:
|
||||||
hosts:
|
hosts:
|
||||||
pve5.grote.lan:
|
pve5.grote.lan:
|
||||||
children:
|
|
||||||
proxmoxtest:
|
proxmoxtest:
|
||||||
hosts:
|
hosts:
|
||||||
pve5-test.grote.lan:
|
pve5-test.grote.lan:
|
||||||
|
@ -50,7 +49,7 @@ all:
|
||||||
hosts:
|
hosts:
|
||||||
dokuwiki2.grote.lan:
|
dokuwiki2.grote.lan:
|
||||||
fileserver2.grote.lan:
|
fileserver2.grote.lan:
|
||||||
acng.grote.lan:
|
acng2.grote.lan:
|
||||||
ansible2.grote.lan:
|
ansible2.grote.lan:
|
||||||
pve5.grote.lan:
|
pve5.grote.lan:
|
||||||
gitea.grote.lan:
|
gitea.grote.lan:
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
roles:
|
roles:
|
||||||
- role: mgrote.apt_manage_sources
|
- role: mgrote.apt_manage_sources
|
||||||
tags: "apt_sources"
|
tags: "apt_sources"
|
||||||
|
when: "not 'acng2.grote.lan' in inventory_hostname"
|
||||||
|
|
|
@ -1,9 +1,22 @@
|
||||||
---
|
---
|
||||||
- name: install apt-cacher-ng packages
|
- name: ensure directories exists
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.package:
|
ansible.builtin.file:
|
||||||
name: apt-cacher-ng
|
path: "{{ item }}"
|
||||||
state: present
|
state: directory
|
||||||
|
loop:
|
||||||
|
- /etc/apt-cacher-ng
|
||||||
|
- /var/cache/apt-cacher-ng
|
||||||
|
|
||||||
|
- name: ensure directories have the right permissions
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
owner: apt-cacher-ng
|
||||||
|
group: apt-cacher-ng
|
||||||
|
loop:
|
||||||
|
- /var/cache/apt-cacher-ng
|
||||||
|
|
||||||
- name: templating acng.conf
|
- name: templating acng.conf
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -13,6 +26,12 @@
|
||||||
mode: 0664
|
mode: 0664
|
||||||
notify: acng_starten_aktivieren
|
notify: acng_starten_aktivieren
|
||||||
|
|
||||||
|
- name: install apt-cacher-ng packages
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: apt-cacher-ng
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: templating security.conf
|
- name: templating security.conf
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
manage_sources_apt_repo_key_url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg # url zum key für no-subscription-repo
|
manage_sources_apt_repo_key_url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg # url zum key für no-subscription-repo
|
||||||
manage_sources_apt_repo_key_path: /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg # pfad lokal zum key für no-subscription-repo
|
manage_sources_apt_repo_key_path: /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg # pfad lokal zum key für no-subscription-repo
|
||||||
manage_sources_apt_repo_no_subscription: deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription # url zum für no-subscription-repo, manage_sources_apt_proxy_url wird aus der variable entnommen
|
manage_sources_apt_repo_no_subscription: deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription # url zum für no-subscription-repo, manage_sources_apt_proxy_url wird aus der variable entnommen
|
||||||
manage_sources_apt_proxy: acng.grote.lan:9999 # url+Port vom proxy
|
manage_sources_apt_proxy: acng2.grote.lan:9999 # url+Port vom proxy
|
||||||
# manage_sources_extra_repos: # Extra Repositories
|
# manage_sources_extra_repos: # Extra Repositories
|
||||||
# - name: vivaldi # optional
|
# - name: vivaldi # optional
|
||||||
# url: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
|
# url: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
|
||||||
|
|
Loading…
Reference in a new issue