Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captive portal #804

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/0-once/tasks/fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
- /etc/yum.repos.d/fedora.repo
- /etc/yum.repos.d/fedora-updates.repo
- /etc/yum.repos.d/fedora-updates-testing.repo

7 changes: 7 additions & 0 deletions roles/0-once/tasks/prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
owner=root
mode=0666

- name: Install captive-portal repo
template: backup=yes
dest=/etc/yum.repos.d/captive-portal.repo
src=captive-portal.repo
owner=root
mode=0666

- name: Install rpmfusion-free-updates repo -- for exfat
template: dest=/etc/yum.repos.d/rpmfusion-free-updates.repo
src=rpmfusion-free-updates.repo
Expand Down
7 changes: 7 additions & 0 deletions roles/0-once/templates/captive-portal.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[captive-portal]
name=captive-portal
failovermethod=priority
baseurl=http://people.sugarlabs.org/anish/captive-portal-repo/
enabled=1
metadata_expire=1d
gpgcheck=0
1 change: 1 addition & 0 deletions roles/6-generic-apps/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dependencies:
- { role: mysql, tags: ['generic','mysql'], when: mysql_install }
- { role: captive_portal, tags: ['generic','radius','captive_portal'] }
- { role: elgg, tags: ['generic','elgg'], when: elgg_install }
- { role: owncloud, tags: ['generic','owncloud'], when: owncloud_install }
- { role: dokuwiki, tags: ['generic','dokuwiki'], when: dokuwiki_install }
Expand Down
9 changes: 9 additions & 0 deletions roles/captive_portal/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# The values here are default local variables.
captive_portal: True
freeradius_db_password: g0adm1n
freeradius_admin_user: xsce-admin
freeradius_admin_password: g0adm1n
freeradius_secret: g0adm1n
daloradius_src_file: daloradius
daloradius_path: /opt
Loading