Simple service and timer for the apt.sh metrics script from the Prometheus community script collection.
Used on a Debianite system with the Debian repository version of node-exporter, YMMV. puppet/prometheus uses node-exporter as the group by default, can be changed by setting prometheus::node_exporter::group via hiera/resource parameter.
Alternative uses with ACLs are possible; one would have to investigate if the DynamicUser overlay would work for deleting files from a directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dec 12 22:26:38 debian9-64-1 systemd[1]: Starting Corosync Cluster Engine... | |
| Dec 12 22:26:38 debian9-64-1 corosync[2812]: [MAIN ] Corosync Cluster Engine ('2.4.2'): started and ready to provide service. | |
| Dec 12 22:26:39 debian9-64-1 corosync[2812]: notice [MAIN ] Corosync Cluster Engine ('2.4.2'): started and ready to provide service. | |
| Dec 12 22:26:39 debian9-64-1 corosync[2812]: info [MAIN ] Corosync built-in features: dbus rdma monitoring watchdog augeas systemd upstart xmlconf qdevices qnetd snmp pie relro b | |
| indnow | |
| Dec 12 22:26:38 debian9-64-1 corosync[2812]: [MAIN ] Corosync built-in features: dbus rdma monitoring watchdog augeas systemd upstart xmlconf qdevices qnetd snmp pie relro bindnow | |
| Dec 12 22:26:39 debian9-64-1 corosync[2812]: notice [TOTEM ] Initializing transport (UDP/IP Multicast). | |
| Dec 12 22:26:39 debian9-64-1 corosync[2812]: notice [TOTEM ] Initializing transmit/receive security (NSS) crypto: aes256 hash: sha1 | |
| Dec 12 22:26:39 debian9-64-1 corosync[2812]: [TOTEM ] Initializing transp |
Quick event notification thingie to respond to MQTT events; in my case, specifically for the doorbell so I can hear it with headphones on.
Should probably be easily adaptable to fit a more generalized need, and I'll probably do it at a later point.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Debug: Cs_primitive[duncan_vip](provider=pcs): { | |
| :primitive_class=>"ocf", | |
| :primitive_type=>"IPaddr2", | |
| :provided_by=>"heartbeat", | |
| :name=>:duncan_vip, | |
| :ensure=>:present, | |
| :provider=>:pcs, | |
| :parameters=>{ | |
| "cidr_netmask"=>"24", | |
| "ip"=>"172.16.210.101"}, |
How to get less annoyed when trying to install a sort of sane Debian setup on a Hetzner root server.
cp -R /root/.oldroot/nfs/install .patch < hetzner-debian-sanity.diff$PWD/install/installimage
Due to the nature of the scripts (i.e. dirname $0) and me being too lazy to patch them entirely, take care to use the full path when calling the copied installimage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: OSRAM Smart+ Switch | |
| description: Allows mapping of all the buttons of a OSRAM Smart+ Zigbee switch. (ZHA) | |
| domain: automation | |
| input: | |
| device: | |
| name: Device | |
| description: Device entry for the switch. | |
| selector: | |
| device: |
ISC's Kea is gating "comfortable" database management for the configuration backend via a service subscription, so I'll gather what you need to add miscellaneous entries to the database.
At the end, there might be an importer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SUBSYSTEM=="usb", ATTRS{idVendor}=="$VENDORID", ATTRS{idProduct}=="$PRODUCTID", TAG+="systemd", ENV{SYSTEMD_USER_WANTS}+="brother_ql_web.service", ENV{SYSTEMD_ALIAS}+="/sys/subsystem/lp/devices/$attr{product}/$attr{serial}", SYMLINK+="$attr{product}-$attr{serial}" |
OlderNewer