Compare commits
9 Commits
bf33c2ab7c
...
2b12ce769c
Author | SHA1 | Date |
---|---|---|
|
2b12ce769c | |
|
3270011fee | |
|
2ee86f6344 | |
|
4df047cf76 | |
|
a63ee2bff5 | |
|
4804b1357b | |
|
0ef65e4e5d | |
|
e6ac6ae202 | |
|
e1c157ce87 |
|
@ -0,0 +1,2 @@
|
|||
collectd_plugins:
|
||||
thermal: true
|
|
@ -42,6 +42,7 @@ vmagent_scrape_configs:
|
|||
- https://tabitha.biz/
|
||||
- https://dustinandtabitha.com/
|
||||
- https://hatchlearningcenter.org/
|
||||
- https://invoiceninja.pyrocufflink.net/
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
|
|
|
@ -246,26 +246,27 @@ vm_autostart:
|
|||
- dc-headphone
|
||||
- delay 30s
|
||||
- loki1
|
||||
- logs-dusk
|
||||
- delay 10s
|
||||
- db0
|
||||
- k8s-ctrl0
|
||||
- ctrl-crave
|
||||
- ctrl-sycamore
|
||||
- delay 10s
|
||||
- stor-alfalfa
|
||||
- stor-rentable
|
||||
- node-abreast
|
||||
- node-direction
|
||||
- node-gleaming
|
||||
- node-hatbox
|
||||
- node-refrain
|
||||
- delay 15s
|
||||
- web0
|
||||
- file0
|
||||
- cloud0
|
||||
- bw0
|
||||
- delay 5s
|
||||
- smtp1
|
||||
- delay 10s
|
||||
- pxe0
|
||||
- unifi3
|
||||
- unifi-nuptials
|
||||
|
||||
promtail_dac_read_search: true
|
||||
promtail_scrape_configs:
|
||||
|
|
6
hosts
6
hosts
|
@ -97,7 +97,6 @@ file0.pyrocufflink.blue
|
|||
burp-server
|
||||
|
||||
[k8s-controller]
|
||||
k8s-ctrl0.pyrocufflink.blue
|
||||
ctrl-2ed8d3.k8s.pyrocufflink.black
|
||||
|
||||
[k8s-iot-net-ctrl]
|
||||
|
@ -185,7 +184,6 @@ dc-headphone.pyrocufflink.blue
|
|||
file0.pyrocufflink.blue
|
||||
git0.pyrocufflink.blue
|
||||
haproxy0.pyrocufflink.blue
|
||||
k8s-ctrl0.pyrocufflink.blue
|
||||
loki1.pyrocufflink.blue
|
||||
nut1.pyrocufflink.blue
|
||||
nvr2.pyrocufflink.blue
|
||||
|
@ -199,9 +197,13 @@ web0.pyrocufflink.blue
|
|||
samba-dc
|
||||
|
||||
[raspberry-pi]
|
||||
ctrl-2ed8d3.k8s.pyrocufflink.black
|
||||
node-474c83.k8s.pyrocufflink.black
|
||||
nut1.pyrocufflink.blue
|
||||
|
||||
[raspberry-pi:children]
|
||||
cm4-k8s-node
|
||||
|
||||
[remote-blackbox]
|
||||
vps-04485add.vps.ovh.us
|
||||
|
||||
|
|
7
newvm.sh
7
newvm.sh
|
@ -138,6 +138,11 @@ if [ -z "${LIBVIRT_DEFAULT_URI}" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ ${fedora} -gt 40 ] && [ ${memory} -lt 4096 ]; then
|
||||
printf 'WARNING Fedora 41+ requires at least 4 GB memory to install\n' >&2
|
||||
memory=4096
|
||||
fi
|
||||
|
||||
if ${default_groups}; then
|
||||
groups_xml="<group name=\"chrony\"/>${groups_xml}"
|
||||
groups_xml="<group name=\"collectd\"/>${groups_xml}"
|
||||
|
@ -177,7 +182,7 @@ set -- \
|
|||
--extra-args "${extra_args}" \
|
||||
--disk pool=default,size=${disk_size},cache=none \
|
||||
--network ${network} \
|
||||
--os-variant fedora$(rpm -E %fedora) \
|
||||
--os-variant fedora-rawhide \
|
||||
--console pty,target.type=serial,log.file=/var/log/libvirt/console/${name}.log \
|
||||
--sound none \
|
||||
--redirdev none \
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[Service]
|
||||
ExecStartPre=+/bin/mkdir -p %t/libvirt/network
|
||||
ExecStartPre=+/bin/chcon -t virtnetworkd_var_run_t %t/libvirt/network
|
|
@ -4,6 +4,8 @@ After=libvirt.service
|
|||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
RequiresMountsFor=/var/lib/libvirt/images
|
||||
StartLimitInterval=1s
|
||||
StartLimitBurst=1
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
@ -11,9 +13,8 @@ RemainAfterExit=yes
|
|||
Environment=LIBVIRT_DEFAULT_URI=qemu:///system
|
||||
ExecStart=/usr/local/libexec/vm-autostart.sh
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
|
||||
DynamicUser=yes
|
||||
SupplementaryGroups=libvirt
|
||||
CapabilityBoundingSet=
|
||||
DeviceAllow=
|
||||
DevicePolicy=closed
|
||||
|
|
|
@ -5,6 +5,8 @@ if [ ! -r /etc/vm-autostart ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
virsh connect || exit
|
||||
|
||||
while read name args; do
|
||||
if [ "${name}" = delay ]; then
|
||||
sleep ${args}
|
||||
|
|
|
@ -40,6 +40,31 @@
|
|||
tags:
|
||||
- log-dir
|
||||
|
||||
- name: ensure virtnetworkd.service drop-in directory exists
|
||||
file:
|
||||
path: /etc/systemd/system/virtnetworkd.service.d
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rwx,go=rx
|
||||
state: directory
|
||||
tags:
|
||||
- systemd
|
||||
- virtnetworkd-selinux-bug
|
||||
- 'rhbz#2362040'
|
||||
- name: 'ensure virtnetworkd selinux bug work-around is in place (rhbz#2362040)'
|
||||
copy:
|
||||
src: fix-run-libvirt-network.conf
|
||||
dest: /etc/systemd/system/virtnetworkd.service.d/
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,go=r
|
||||
notify:
|
||||
- reload systemd
|
||||
tags:
|
||||
- systemd
|
||||
- virtnetworkd-selinux-bug
|
||||
- 'rhbz#2362040'
|
||||
|
||||
- name: ensure libvirtd starts at boot
|
||||
service:
|
||||
name: '{{ item }}'
|
||||
|
|
Loading…
Reference in New Issue