Compare commits

...

2 Commits

Author SHA1 Message Date
f481a965dd
Update Samba and WireGuard configuration
- Adjust Samba config file permissions to 644
- Introduce PresharedKey option in WireGuard config template
2024-09-10 22:35:20 -04:00
a0aa289c05
Restrict GitHub Actions to a dedicated branch
- The Vagrant testing setup on macos-latest is broken
- Temporary measure until fixed or abandoned
2024-09-10 22:11:31 -04:00
3 changed files with 7 additions and 3 deletions

View File

@ -3,8 +3,9 @@ name: homelab-ci
on: on:
push: push:
branches: branches:
- main - github_actions
- testing # - main
# - testing
jobs: jobs:
homelab-ci: homelab-ci:

View File

@ -26,7 +26,7 @@
ansible.builtin.template: ansible.builtin.template:
src: smb.conf.j2 src: smb.conf.j2
dest: /etc/samba/smb.conf dest: /etc/samba/smb.conf
mode: "700" mode: "644"
notify: restart_samba notify: restart_samba
- name: Start smbd and enable on boot - name: Start smbd and enable on boot

View File

@ -8,6 +8,9 @@ ListenPort = {{ wireguard.listenport }}
{% for peer in wireguard.peers %} {% for peer in wireguard.peers %}
[Peer] [Peer]
PublicKey = {{ peer.publickey }} PublicKey = {{ peer.publickey }}
{% if peer.presharedkey is defined %}
PresharedKey = {{ peer.presharedkey }}
{% endif %}
{% if peer.endpoint is defined %} {% if peer.endpoint is defined %}
Endpoint = {{ peer.endpoint }} Endpoint = {{ peer.endpoint }}
{% endif %} {% endif %}