Skip to content

Commit

Permalink
Add key to byod-dhcp
Browse files Browse the repository at this point in the history
  • Loading branch information
tdorianh committed Jun 28, 2018
1 parent d463ca6 commit 37eaf8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/byod-dhcp/files/dhcpd-updater.crontab
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*/5 * * * * root /usr/local/sbin/openbsd-dhcpd-supervisor https://constellation.collegiumv.org/devices/api/v1/device/show/all /etc/dhcpd.conf.d/15-user-macs /usr/local/sbin/dhcpd-reconf >/dev/null 2>&1
*/5 * * * * root /usr/local/sbin/openbsd-dhcpd-supervisor https://constellation.collegiumv.org/devices/api/v1/device/show/all/ /etc/dhcpd.conf.d/15-user-macs /usr/local/sbin/dhcpd-reconf >/dev/null 2>&1
6 changes: 6 additions & 0 deletions roles/byod-dhcp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
notify:
- crontab

- name: Insert Key in cronjob
replace:
path: /etc/crontab.d/dhcpd-updater.crontab
regexp: 'show/all/'
replace: "show/all/{{ lookup('file', 'secret/constellation_showdeviceskey') }}"

- name: Install pf Rules
copy:
src: 10-mac-updater
Expand Down

0 comments on commit 37eaf8a

Please sign in to comment.