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://tabitha.biz/
|
||||||
- https://dustinandtabitha.com/
|
- https://dustinandtabitha.com/
|
||||||
- https://hatchlearningcenter.org/
|
- https://hatchlearningcenter.org/
|
||||||
|
- https://invoiceninja.pyrocufflink.net/
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
target_label: __param_target
|
target_label: __param_target
|
||||||
|
|
|
@ -246,26 +246,27 @@ vm_autostart:
|
||||||
- dc-headphone
|
- dc-headphone
|
||||||
- delay 30s
|
- delay 30s
|
||||||
- loki1
|
- loki1
|
||||||
|
- logs-dusk
|
||||||
- delay 10s
|
- delay 10s
|
||||||
- db0
|
- db0
|
||||||
- k8s-ctrl0
|
- ctrl-crave
|
||||||
|
- ctrl-sycamore
|
||||||
- delay 10s
|
- delay 10s
|
||||||
- stor-alfalfa
|
- stor-alfalfa
|
||||||
- stor-rentable
|
- stor-rentable
|
||||||
- node-abreast
|
- node-abreast
|
||||||
|
- node-direction
|
||||||
- node-gleaming
|
- node-gleaming
|
||||||
- node-hatbox
|
- node-hatbox
|
||||||
- node-refrain
|
|
||||||
- delay 15s
|
- delay 15s
|
||||||
- web0
|
- web0
|
||||||
- file0
|
- file0
|
||||||
- cloud0
|
- cloud0
|
||||||
- bw0
|
|
||||||
- delay 5s
|
- delay 5s
|
||||||
- smtp1
|
- smtp1
|
||||||
- delay 10s
|
- delay 10s
|
||||||
- pxe0
|
- pxe0
|
||||||
- unifi3
|
- unifi-nuptials
|
||||||
|
|
||||||
promtail_dac_read_search: true
|
promtail_dac_read_search: true
|
||||||
promtail_scrape_configs:
|
promtail_scrape_configs:
|
||||||
|
|
6
hosts
6
hosts
|
@ -97,7 +97,6 @@ file0.pyrocufflink.blue
|
||||||
burp-server
|
burp-server
|
||||||
|
|
||||||
[k8s-controller]
|
[k8s-controller]
|
||||||
k8s-ctrl0.pyrocufflink.blue
|
|
||||||
ctrl-2ed8d3.k8s.pyrocufflink.black
|
ctrl-2ed8d3.k8s.pyrocufflink.black
|
||||||
|
|
||||||
[k8s-iot-net-ctrl]
|
[k8s-iot-net-ctrl]
|
||||||
|
@ -185,7 +184,6 @@ dc-headphone.pyrocufflink.blue
|
||||||
file0.pyrocufflink.blue
|
file0.pyrocufflink.blue
|
||||||
git0.pyrocufflink.blue
|
git0.pyrocufflink.blue
|
||||||
haproxy0.pyrocufflink.blue
|
haproxy0.pyrocufflink.blue
|
||||||
k8s-ctrl0.pyrocufflink.blue
|
|
||||||
loki1.pyrocufflink.blue
|
loki1.pyrocufflink.blue
|
||||||
nut1.pyrocufflink.blue
|
nut1.pyrocufflink.blue
|
||||||
nvr2.pyrocufflink.blue
|
nvr2.pyrocufflink.blue
|
||||||
|
@ -199,9 +197,13 @@ web0.pyrocufflink.blue
|
||||||
samba-dc
|
samba-dc
|
||||||
|
|
||||||
[raspberry-pi]
|
[raspberry-pi]
|
||||||
|
ctrl-2ed8d3.k8s.pyrocufflink.black
|
||||||
node-474c83.k8s.pyrocufflink.black
|
node-474c83.k8s.pyrocufflink.black
|
||||||
nut1.pyrocufflink.blue
|
nut1.pyrocufflink.blue
|
||||||
|
|
||||||
|
[raspberry-pi:children]
|
||||||
|
cm4-k8s-node
|
||||||
|
|
||||||
[remote-blackbox]
|
[remote-blackbox]
|
||||||
vps-04485add.vps.ovh.us
|
vps-04485add.vps.ovh.us
|
||||||
|
|
||||||
|
|
7
newvm.sh
7
newvm.sh
|
@ -138,6 +138,11 @@ if [ -z "${LIBVIRT_DEFAULT_URI}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if ${default_groups}; then
|
||||||
groups_xml="<group name=\"chrony\"/>${groups_xml}"
|
groups_xml="<group name=\"chrony\"/>${groups_xml}"
|
||||||
groups_xml="<group name=\"collectd\"/>${groups_xml}"
|
groups_xml="<group name=\"collectd\"/>${groups_xml}"
|
||||||
|
@ -177,7 +182,7 @@ set -- \
|
||||||
--extra-args "${extra_args}" \
|
--extra-args "${extra_args}" \
|
||||||
--disk pool=default,size=${disk_size},cache=none \
|
--disk pool=default,size=${disk_size},cache=none \
|
||||||
--network ${network} \
|
--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 \
|
--console pty,target.type=serial,log.file=/var/log/libvirt/console/${name}.log \
|
||||||
--sound none \
|
--sound none \
|
||||||
--redirdev 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
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
RequiresMountsFor=/var/lib/libvirt/images
|
RequiresMountsFor=/var/lib/libvirt/images
|
||||||
|
StartLimitInterval=1s
|
||||||
|
StartLimitBurst=1
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
@ -11,9 +13,8 @@ RemainAfterExit=yes
|
||||||
Environment=LIBVIRT_DEFAULT_URI=qemu:///system
|
Environment=LIBVIRT_DEFAULT_URI=qemu:///system
|
||||||
ExecStart=/usr/local/libexec/vm-autostart.sh
|
ExecStart=/usr/local/libexec/vm-autostart.sh
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartSec=1
|
||||||
|
|
||||||
DynamicUser=yes
|
|
||||||
SupplementaryGroups=libvirt
|
|
||||||
CapabilityBoundingSet=
|
CapabilityBoundingSet=
|
||||||
DeviceAllow=
|
DeviceAllow=
|
||||||
DevicePolicy=closed
|
DevicePolicy=closed
|
||||||
|
|
|
@ -5,6 +5,8 @@ if [ ! -r /etc/vm-autostart ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
virsh connect || exit
|
||||||
|
|
||||||
while read name args; do
|
while read name args; do
|
||||||
if [ "${name}" = delay ]; then
|
if [ "${name}" = delay ]; then
|
||||||
sleep ${args}
|
sleep ${args}
|
||||||
|
|
|
@ -40,6 +40,31 @@
|
||||||
tags:
|
tags:
|
||||||
- log-dir
|
- 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
|
- name: ensure libvirtd starts at boot
|
||||||
service:
|
service:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
|
|
Loading…
Reference in New Issue