Skip to content

Commit ebcfdb7

Browse files
committed
Merge branch 'main' of github.com:romkey/pdxhackerspace-hackstack
2 parents bd97f84 + 6addc83 commit ebcfdb7

76 files changed

Lines changed: 988 additions & 76 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Update .gitignore
2+
3+
on:
4+
push:
5+
paths:
6+
- "**/.gitignore"
7+
- ".gitignore.initial"
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
update-gitignore:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Check out repository
19+
uses: actions/checkout@v4
20+
21+
- name: Concatenate .gitignore files with directory paths
22+
run: |
23+
# Start with the initial .gitignore file
24+
cp .gitignore.initial .gitignore
25+
26+
# Find all .gitignore files one level down, process each with its path prefix
27+
find . -mindepth 2 -maxdepth 2 -name ".gitignore" | while read -r gitignore_file; do
28+
dir_path=$(dirname "$gitignore_file" | sed 's|^\./||')
29+
echo -e "\n# Patterns from $dir_path/.gitignore" >> .gitignore
30+
sed "s|^|$dir_path/|" "$gitignore_file" >> .gitignore
31+
done
32+
33+
- name: Check for changes
34+
id: changes
35+
run: |
36+
if [[ -n "$(git status --porcelain .gitignore)" ]]; then
37+
echo "changes=true" >> $GITHUB_ENV
38+
else
39+
echo "changes=false" >> $GITHUB_ENV
40+
fi
41+
42+
- name: Commit and push if changes exist
43+
if: env.changes == 'true'
44+
run: |
45+
git config --global user.name "github-actions[bot]"
46+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
47+
git add .gitignore
48+
git commit -m "Update top-level .gitignore with directory paths"
49+
git push
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Update .rsync.exlude
2+
3+
on:
4+
push:
5+
paths:
6+
- "**/.rsync.exclude"
7+
- ".rsync.exclude.initial"
8+
- ".github/actions/concatenate_rsync_exclude.yml"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
update-rsync-exclude:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v4
21+
22+
- name: Concatenate .rsync.exclude files with directory paths
23+
run: |
24+
# Start with the .rsync.exclude.initial file
25+
cp .rsync.exclude.initial .rsync.exclude
26+
27+
# Find all .rsync.exclude files one level down, process each with its path prefix
28+
find . -mindepth 2 -maxdepth 2 -name ".rsync.exclude" | while read -r rsync_excludes; do
29+
dir_path=$(dirname "$rsync_excludes" | sed 's|^\./||')
30+
echo -e "\n# Patterns from $dir_path/.rsync.exclude" >> .rsync.exclude
31+
cat "$rsync_excludes" >> .rsync.exclude
32+
done
33+
34+
- name: Check for changes
35+
id: changes
36+
run: |
37+
if [[ -n "$(git status --porcelain .rsync.exclude)" ]]; then
38+
echo "changes=true" >> $GITHUB_ENV
39+
else
40+
echo "changes=false" >> $GITHUB_ENV
41+
fi
42+
43+
- name: Commit and push if changes exist
44+
if: env.changes == 'true'
45+
run: |
46+
git config --global user.name "github-actions[bot]"
47+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
48+
git add .rsync.exclude
49+
git commit -m "Update top-level .rsync.exclude with directory paths"
50+
git push

.gitignore

Lines changed: 54 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,79 @@
1-
*/.env
1+
# Do not edit .gitignore - the file is assembled automatically by a Github action
2+
# from */.gitignore files and .gitignore.initial on pushes to the repo
3+
#
4+
# To add to .gitignore either edit the related .gitignore file in a subdirectory
5+
# or edit .gitignore.initial
6+
#
7+
# Be sure to git pull after pushing .gitignore modifications and after the action
8+
# runs, so that you get the updated .gitignore file in your local environment
29

3-
access-control-webhook/config/.ssh/
4-
access-control-webhook/config/hooks.json
5-
access-control-webhook/config/run/automation_rsa
10+
**/*.env
611

712
avahi-dns/services
813

9-
backrest/config/config.json*
14+
home-assistant/config/
1015

11-
dnsmasq/conf/dnsmasq.conf
12-
dnsmasq/conf/hosts.d/
16+
redis/conf/
17+
18+
upsd/config/
1319

20+
# Patterns from telegraf/.gitignore
21+
telegraf/config/telegraf.conf
22+
23+
# Patterns from glances/.gitignore
1424
glances/glances.conf
1525
glances/glances.pwd
1626

17-
grafana/config/grafana.ini
18-
19-
home-assistant/config/
27+
# Patterns from dnsmasq/.gitignore
28+
dnsmasq/conf/dnsmasq.conf
29+
dnsmasq/conf/hosts.d/
2030

21-
influxdb/config/influx-configs
31+
# Patterns from zigbee2mqtt/.gitignore
32+
zigbee2mqtt/data/configuration.yaml
33+
zigbee2mqtt/data/state.json
34+
zigbee2mqtt/data/database.db
35+
zigbee2mqtt/data/log/
2236

23-
invidious/config/config.yml
24-
invidious/config/sql/
37+
# Patterns from backrest/.gitignore
38+
backrest/config/config.json*
2539

26-
jellyfin/config/
40+
# Patterns from mopidy/.gitignore
41+
mopidy/config/mopidy.conf
2742

28-
mopidy/conf/mopidy.conf
43+
# Patterns from grafana/.gitignore
44+
grafana/config/grafana.ini
2945

46+
# Patterns from mosquitto/.gitignore
3047
mosquitto/config/mosquitto.conf
3148
mosquitto/config/mos_passwd
3249

33-
mqtt-explorer/config/settings.json
50+
# Patterns from rtlamr2mqtt/.gitignore
51+
rtlamr2mqtt/config.yaml
3452

35-
nginx-proxy-manager/config/
36-
nginx-proxy-manager/letsencrypt/
53+
# Patterns from mqtt-explorer/.gitignore
54+
mqtt-explorer/config/settings.json
3755

38-
redis/conf/
56+
# Patterns from wiki/.gitignore
57+
wiki/config.yml
3958

40-
rtlamr2mqtt/config.yaml
59+
# Patterns from invidious/.gitignore
60+
invidious/config/config.yml
61+
invidious/config/sql/
4162

42-
telegraf/config/telegraf.conf
63+
# Patterns from access-control-webhook/.gitignore
64+
access-control-webhook/config/.ssh/
65+
access-control-webhook/config/hooks.json
66+
access-control-webhook/config/run/automation_rsa
4367

44-
upsd/config/
68+
# Patterns from jellyfin/.gitignore
69+
jellyfin/config/
4570

46-
wiki/config.yml
71+
# Patterns from influxdb/.gitignore
72+
influxdb/config/influx-configs
4773

48-
zigbee2mqtt/data/configuration.yaml
49-
zigbee2mqtt/data/state.json
50-
zigbee2mqtt/data/database.db
51-
zigbee2mqtt/data/log/
74+
# Patterns from nginx-proxy-manager/.gitignore
75+
nginx-proxy-manager/config/
76+
nginx-proxy-manager/letsencrypt/
5277

78+
# Patterns from airconnect/.gitignore
79+
airconnect/config/*.xml

.gitignore.initial

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Do not edit .gitignore - the file is assembled automatically by a Github action
2+
# from */.gitignore files and .gitignore.initial on pushes to the repo
3+
#
4+
# To add to .gitignore either edit the related .gitignore file in a subdirectory
5+
# or edit .gitignore.initial
6+
#
7+
# Be sure to git pull after pushing .gitignore modifications and after the action
8+
# runs, so that you get the updated .gitignore file in your local environment
9+
10+
**/*.env
11+
12+
avahi-dns/services
13+
14+
home-assistant/config/
15+
16+
redis/conf/
17+
18+
upsd/config/

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44
[submodule "auto_planka"]
55
path = auto_planka
66
url = https://github.com/romkey/auto_planka
7+
[submodule "pdxhackerspace-hackstack-trimetd"]
8+
path = pdxhackerspace-hackstack-trimetd
9+
url = git@github.com:romkey/pdxhackerspace-hackstack-trimetd.git
10+
[submodule "autogenerate-hosts"]
11+
path = autogenerate-hosts
12+
url = git@github.com:romkey/pdxhackerspace-hackstack-autogenerate-hosts.git
13+
[submodule "trimetd"]
14+
path = trimetd
15+
url = https://github.com/romkey/pdxhackerspace-hackstack-trimetd

.rsync.exclude

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Do not edit .rsync.exclude
2+
# File is automatically built from .rsync.exclude.inital and */.rsync.exclude
3+
4+
lost+found/
5+
containerd/
6+
docker/
7+
run/
8+
**/*.log
9+
10+
# Patterns from frigate/.rsync.exclude
11+
lib/frigate/config/frigate.db
12+
13+
# Patterns from home-assistant/.rsync.exclude
14+
lib/home-assistant/backups
15+
16+
# Patterns from mariadb/.rsync.exclude
17+
lib/mariadb
18+
19+
# Patterns from grafana/.rsync.exclude
20+
lib/grafana/grafana.db
21+
22+
# Patterns from esphome/.rsync.exclude
23+
lib/esphome/.esphome
24+
25+
# Patterns from mosquitto/.rsync.exclude
26+
lib/mosquitto/mosquitto.db
27+
28+
# Patterns from postgresql/.rsync.exclude
29+
lib/postgresql
30+
31+
# Patterns from calibre-web/.rsync.exclude
32+
lib/calibre-web/metadatab.db
33+
34+
# Patterns from jellyfin/.rsync.exclude
35+
lib/jellyfin/data/jellyfin.db
36+
lib/jellyfin/data/jellyfin.db-shm
37+
lib/jellyfin/data/jellyfin.db-wal
38+
lib/jellyfin/data/library.db
39+
lib/jellyfin/data/library.db-shm
40+
lib/jellyfin/data/library.db-wal
41+
42+
# Patterns from music-assistant/.rsync.exclude
43+
lib/music-assistant/cache.db
44+
lib/music-assistant/library.db
45+
46+
# Patterns from influxdb/.rsync.exclude
47+
lib/influxdb/engine
48+
lib/influxdb/influxd.sqlite
49+
50+
# Patterns from nginx-proxy-manager/.rsync.exclude
51+
lib/nginx-proxy-manager/database.sqlite

.rsync.exclude.initial

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Do not edit .rsync.exclude
2+
# File is automatically built from .rsync.exclude.inital and */.rsync.exclude
3+
4+
lost+found/
5+
containerd/
6+
docker/
7+
run/
8+
**/*.log

access-control-webhook/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
config/.ssh/
2+
config/hooks.json
3+
config/run/automation_rsa

airconnect/.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
AIRCAST_VAR=-i /config/config-aircast.xml
2+
AIRUPNP_VAR=-i /config/config-airupnp.xml
3+
# AIRCAST_VAR=-x /config/config-aircast.xml
4+
# AIRUPNP_VAR=-x /config/config-airupnp.xml

airconnect/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config/*.xml

0 commit comments

Comments
 (0)