1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
Commit graph

647 commits

Author SHA1 Message Date
Jerry Vonau
00152a0769 use iiab-dnsmasq.service everywhere 2018-12-19 15:58:53 -06:00
Jerry Vonau
f4a99abaf2 less time without services 2018-12-16 07:22:38 -06:00
Jerry Vonau
82e1a6fe63 use netplan for static wan interface on U-18 2018-12-16 06:39:19 -06:00
A Holt
ab8017647a
Apply suggestions from code review
as requested

Co-Authored-By: jvonau <jvonau3@gmail.com>
2018-12-16 06:26:55 -06:00
Jerry Vonau
bba77de643 yaml syntax 2018-12-15 18:55:18 +00:00
Jerry Vonau
3e36883758 networkd only 2018-12-15 00:32:33 -06:00
Jerry Vonau
d6690b2537 lets not use netplan for bridges 2018-12-15 00:32:33 -06:00
A Holt
f24e600945 Update roles/network/tasks/netplan.yml
Co-Authored-By: jvonau <jvonau3@gmail.com>
2018-12-15 00:32:33 -06:00
A Holt
c0f2d38d1c Update roles/network/tasks/netplan.yml
Co-Authored-By: jvonau <jvonau3@gmail.com>
2018-12-15 00:32:33 -06:00
A Holt
eb9a222887 Update roles/network/tasks/netplan.yml
Co-Authored-By: jvonau <jvonau3@gmail.com>
2018-12-15 00:32:33 -06:00
Jerry Vonau
27470ab830 stdout_lines 2018-12-15 00:32:33 -06:00
Jerry Vonau
3167f8133a #1320 fix for U-18 dnsmasq 2018-12-15 00:32:33 -06:00
Jerry Vonau
967102bc4f easier way to disable cloud-init 2018-12-15 00:32:33 -06:00
Jerry Vonau
14dd29eba4 refine netplan2 2018-12-15 00:32:33 -06:00
Jerry Vonau
d0c66fb4d3 refine netplan 2018-12-15 00:32:33 -06:00
Jerry Vonau
343d00848f split out netplan2 2018-12-15 00:32:33 -06:00
Jerry Vonau
93694e853b split out netplan 2018-12-15 00:32:33 -06:00
A Holt
e74dd2def1
Update named.yml 2018-12-03 03:05:17 -05:00
A Holt
15d5405295
Update named.yml 2018-12-03 02:54:49 -05:00
A Holt
ff10a576f3
Update dnsmasq.yml 2018-12-03 02:31:12 -05:00
A Holt
5353d725a8
Update dnsmasq.yml 2018-12-03 02:30:16 -05:00
A Holt
d05123afe9
Allow systemd-resolved AND dnsmasq to work (#1306) 2018-12-03 02:23:39 -05:00
georgejhunt
84da40c40d
Cap2 (#1300)
* move captive portal to its own role

* runrole still not working

* make apache name consistent, define py_captive_portal_port

* record android fixes

* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows

* works all platforms

* one captive_portal_install not changed to py_captive...

* port into defaults

* windows 7,8,10,mac,ios,android 5,7

* add # to dnsmasq.d/captive

* guess what android 8 might need

* move captive portal to its own role

* runrole still not working

* make apache name consistent, define py_captive_portal_port

* record android fixes

* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows

* works all platforms

* one captive_portal_install not changed to py_captive...

* port into defaults

* windows 7,8,10,mac,ios,android 5,7

* add # to dnsmasq.d/captive

* guess what android 8 might need

* restart apache2 and dnsmasq in role

* do not hard code apache name

* cut out disfunctional experiments

* variable py_captive_portal_port misspelled

* add wildcard serveralias to box.lan vhost to fix default

* add in STDOUT to log

* remove the py_

* add in msn to urls to capture

* missed a few py_
2018-11-17 20:09:40 -08:00
A Holt
57e0747564
Update restart.yml 2018-11-03 23:39:03 -04:00
A Holt
c7854d760d
Update named.yml 2018-10-31 14:12:08 -04:00
A Holt
858306b547
Update named.yml 2018-10-31 14:02:37 -04:00
A Holt
7c79fed0ae
Update squid.yml 2018-10-31 13:51:10 -04:00
A Holt
f8b28cfc6d
Update enable_services.yml 2018-10-31 03:58:55 -04:00
A Holt
b3adcfff6e
Update dansguardian.yml 2018-10-30 20:53:32 -04:00
A Holt
ca15a70c00
Update squid.yml 2018-10-30 20:51:21 -04:00
A Holt
5e956b9203
Update dansguardian.yml 2018-10-28 12:19:01 -04:00
A Holt
b6e842f38b
Update squid.yml 2018-10-28 12:09:55 -04:00
A Holt
1b1744c2b5
Update named.yml 2018-10-28 12:07:44 -04:00
A Holt
d37c0acc88
Update captive_portal.yml 2018-10-27 20:54:44 -04:00
root
b5efe25edb /etc/iiab/iiab.ini -> {{ iiab_ini_file }} 2018-10-15 07:01:09 -04:00
root
b973906dc3 iiab_env_file -> {{ iiab_env_file }} or "{{ iiab_env_file }}" 2018-10-15 06:41:58 -04:00
root
d9c73cc804 service_filelist -> iiab_ini_file 2018-10-15 06:13:57 -04:00
A Holt
a0d62e87fb
Update detected_network.yml 2018-10-15 04:54:01 -04:00
A Holt
ad247eb8b4
Update computed_services.yml 2018-10-15 04:53:40 -04:00
A Holt
89cf8be11d
Update computed_network.yml 2018-10-15 04:53:20 -04:00
A Holt
15df488fce
Update rpi_debian.yml 2018-10-09 17:21:25 -04:00
A Holt
eaf81d0d6b
Update computed_services.yml 2018-10-09 16:52:20 -04:00
Jerry Vonau
9d616cf301 explicitly identify which primary dhcp server is being disabled
dhcp_service2 is used in restart.yml when not in Appliance mode
2018-10-09 12:20:03 -05:00
Jerry Vonau
bb6b3c2ab2 Explicitly disable dnsmasq when in Appliance mode
otherwise dnsmasq will become active upon reboot because enable_services.yml
would still be acting upon local_vars.yml where dnsmasq_enabled is set to True
while there is not LAN interface available to bind the service to.
2018-10-09 11:50:00 -05:00
A Holt
ababc0cba7
Update hosts.yml 2018-10-08 19:34:04 -04:00
A Holt
2f3fb69e01
Merge branch 'master' into dnsmasq-initial-cleanup 2018-10-08 19:32:08 -04:00
A Holt
691fb23f83
Update avahi.yml 2018-10-08 19:14:10 -04:00
A Holt
b96b6f42ac
Update main.yml 2018-10-08 19:03:26 -04:00
A Holt
aa1c8287d5
Update edit_ifcfg.yml 2018-10-08 19:00:25 -04:00
A Holt
30c4f2a868
Update enable_wan.yml 2018-10-08 18:55:09 -04:00
A Holt
c6e6f7967c
Update hosts.yml 2018-10-08 18:49:04 -04:00
A Holt
27e04ebe0e
Update named.yml 2018-10-08 18:40:11 -04:00
A Holt
e94077fc3d
Update redetect.yml 2018-10-08 18:34:16 -04:00
A Holt
20988fda38
Update squid.yml 2018-10-08 18:30:21 -04:00
A Holt
73a2ce03da
Update static.yml 2018-10-08 18:29:15 -04:00
A Holt
d81a6788a6
Update wondershaper.yml 2018-10-08 18:24:17 -04:00
A Holt
0d0ef2fd39
Update NM.yml 2018-10-08 18:15:50 -04:00
A Holt
62e1a07e53
Update avahi.yml 2018-10-08 18:09:49 -04:00
A Holt
31388eee9d
Rename create_ifcfg.yml to create_ifcfg.yml.deprecated 2018-10-08 18:00:22 -04:00
A Holt
2004e621e9
Update detected_network.yml 2018-10-08 17:58:38 -04:00
A Holt
535dca7fca
Update detected_redhat.yml 2018-10-08 17:52:40 -04:00
A Holt
4986aef070
Update detected_redhat.yml 2018-10-08 17:51:15 -04:00
A Holt
394a308d72
Update dhcpd.yml 2018-10-08 17:44:35 -04:00
A Holt
c32fc5c7d6
Update dhcpd.yml 2018-10-08 17:13:03 -04:00
A Holt
5bf67f847c
Update computed_services.yml 2018-10-08 17:05:44 -04:00
A Holt
5b129ec79b
Update computed_network.yml 2018-10-08 17:04:00 -04:00
A Holt
30550052f1
Update computed_services.yml 2018-10-08 15:51:21 -04:00
A Holt
6645cc284e
Update hosts.yml 2018-10-03 18:20:00 -04:00
A Holt
9cbf08cf8f
Update captive_portal.yml 2018-10-03 16:14:15 -04:00
A Holt
a6b0bceef8
Update captive_portal.yml 2018-10-03 15:57:07 -04:00
A Holt
d41abbbbc3
Update hosts.yml 2018-10-03 14:52:04 -04:00
George Hunt
ac6c854646 change name of service, and test 2018-10-03 16:47:22 +00:00
George Hunt
b11b46ccd0 use hard coded iiab-servar.lan as a link between client redirects and our server 2018-10-02 02:30:52 +00:00
George Hunt
e26aa688c7 with_items 2018-10-01 18:52:00 +00:00
George Hunt
18d2315438 service->systemd 2018-10-01 18:27:54 +00:00
George Hunt
c91cb6cd32 no change to hosts 2018-10-01 18:18:36 +00:00
George Hunt
f91c67ad58 fix dual when 2018-10-01 18:16:51 +00:00
George Hunt
4ee9c3e2b5 add in template dir
rebase bassed upon copy in

cut out obvious dead code

working on put-204

make users a sqlite db

sqlite db has users, and agent info

android timeouts not yet working

android 5 and 6 both work. lost mac

return to a working version for the MAC. Missing the splash

android,mac,windows all appear to work

sqlite get status of execute row == Null

initialize lasttimestamp with ajax call when home is triggered

remove commented code, move towards logging vs print statements

add logging with the -l flag

no changes to default_vars.yml

drop iptables captive portal stuff not using port 8090, and dnsmasq

missed deleting trap_enabled

fixes for 6.7 defaults

add in template dir

rebase bassed upon copy in

cut out obvious dead code

working on put-204

make users a sqlite db

sqlite db has users, and agent info

android timeouts not yet working

android 5 and 6 both work. lost mac

return to a working version for the MAC. Missing the splash

android,mac,windows all appear to work

sqlite get status of execute row == Null

initialize lasttimestamp with ajax call when home is triggered

remove commented code, move towards logging vs print statements

drop iptables captive portal stuff not using port 8090, and dnsmasq

missed deleting trap_enabled

fixes for 6.7 defaults

dispense with apache logs for captive portal, use the rotating portal.log instead

bring in clean defaults and py

Squash debugging details

remove backup file

still cannot dispense with cna on iphone. mac escape from cna broke with these changes

captive comes after iiab in apache config

one filename wrong

logging used for debug, lost mac escape from cna

typos

got mac/iphone full browser back

remove dead code

python was not creating db, or putting ip when first encountered
2018-09-29 03:40:14 +00:00
A Holt
d97f62edf9
Update main.yml 2018-08-21 12:45:38 -04:00
A Holt
b3a7af09c5
Update named.yml 2018-07-20 05:16:57 -04:00
A Holt
1d128593ee
Update debian.yml 2018-07-17 02:01:01 -04:00
A Holt
5161152432
Update debian.yml 2018-07-17 01:57:12 -04:00
A Holt
b3dbf16a27
Update ifcfg_mods.yml 2018-07-17 01:56:14 -04:00
A Holt
0247ee1930
Update debian.yml 2018-07-17 01:54:14 -04:00
A Holt
74dca68882
Update down-debian.yml 2018-07-17 01:49:14 -04:00
A Holt
7790fd6624
Update ifcfg_mods.yml 2018-07-17 01:48:19 -04:00
A Holt
44c1c0293a
Update restart.yml 2018-07-17 01:41:51 -04:00
A Holt
eb1f6a5dcc
Update enable_services.yml 2018-07-12 14:04:52 -04:00
A Holt
281e0de791
Update enable_services.yml 2018-07-12 13:51:59 -04:00
A Holt
1337b651ac
modern Ansible syntax/style for readability 2018-07-12 13:50:32 -04:00
A Holt
d9398e39a7
modern Ansible syntax/style for readability 2018-07-12 13:36:44 -04:00
Jerry Vonau
cc09adb677 replace named-iiab.conf to pickup changes in dns_jail_enabled 2018-07-04 09:29:05 -05:00
Jerry Vonau
418d941833 whitespace 2018-07-04 08:30:53 -05:00
Anish Mangal
5674675ef9 captive_portal service must run as root 2018-07-04 08:27:11 -05:00
Anish Mangal
74fb19864f Initial working copy of the captive portal 2018-07-04 08:27:11 -05:00
A Holt
b04a6147e9
typo in comment: counry -> country 2018-06-29 17:40:50 -04:00
A Holt
11d18826c7
Update dnsmasq.yml 2018-06-14 15:22:11 -04:00
A Holt
831107839f
@jvonau requests we comment out most lines for now 2018-06-14 15:18:06 -04:00
A Holt
fa150095a6
commas were missing; fix to path roles/network/templates/network/dnsmasq.conf.j2 2018-06-14 14:56:42 -04:00
Jerry Vonau
1db445aacb use full path otherwise .j2 is used - no need to supply systemd unit file 2018-06-01 11:16:30 -05:00
Jerry Vonau
f6e16fea68 setup installing dnsmasq 2018-06-01 10:56:16 -05:00
Jerry Vonau
1267c1e19c Fallback to old gateway info when WAN is not detected when configuring static ip 2018-05-31 11:20:35 -05:00
Jerry Vonau
7501d256f8 handle different netplan file name 2018-05-20 11:57:10 -05:00
Jerry Vonau
5ca184297e handle systemd-networkd having enabled-runtime 2018-05-20 11:34:02 -05:00
Jerry Vonau
36217b7b3f allow backout from static to dhcp 2018-05-14 13:22:32 -05:00
Jerry Vonau
0ad689711f missing .j2 2018-05-14 10:02:32 -05:00
Jerry Vonau
7d0cfc0f93 systemd-networkd support for wan static ip address 2018-05-13 21:13:34 -05:00
Jerry Vonau
450a346839 NetworkManager support for wan static ip address 2018-05-13 21:13:34 -05:00
Jerry Vonau
0c578c6a7d debian-9 clear out interfaces when static ip 2018-05-13 16:48:12 -05:00
Jerry Vonau
506ce3ffd3 debian-9 networking restart workaround 2018-05-13 15:27:09 -05:00
Jerry Vonau
90ffdb9f69 netplan file change only for ubuntu-18 2018-05-13 12:09:31 -05:00
Jerry Vonau
ff7022b563 get rid of the stall with 'dhcp' 2018-05-12 23:13:27 -05:00
Jerry Vonau
aad974777a needed for dhcp now 2018-05-12 22:44:08 -05:00
Jerry Vonau
1082dd2aa4 allow the console to back out of static 2018-05-12 22:44:08 -05:00
Jerry Vonau
db2b3b7ee1 netplan systemd-networkd static support 2018-05-12 22:44:08 -05:00
Jerry Vonau
852d14dbde correct false postive, numbers need quotes 2018-05-05 07:57:04 -05:00
Jerry Vonau
1dda6adf6d Disable isc-dhcp-server6.service on ubuntu-18 2018-05-03 09:40:08 -05:00
Jerry Vonau
e74cc9e241 Disable and mask systemd-networkd-wait-online on ubuntu-18 2018-05-03 08:10:31 -05:00
Jerry Vonau
039b584fb2 systemd-networkd fix-ups 2018-05-02 21:27:14 -05:00
Jerry Vonau
e2c641e974 allow br0 removel 2018-05-02 21:27:14 -05:00
Jerry Vonau
4ed7c38f4f NM not playing nice on ubuntu-16, use older method 2018-05-01 14:40:04 -05:00
Jerry Vonau
50ad0de6be revise feedback 2018-04-08 19:57:49 -05:00
Jerry Vonau
5a0a37d064 scripts only apply to the RPi 2018-04-08 19:46:31 -05:00
Jerry Vonau
ceb4d7d901 hostapd - disable before enable
Similar workarounds exist in named.yml and dhcpd.yml, just go with the flow
2018-04-08 19:23:13 -05:00
Jerry Vonau
367164029c replace shell use of daemon_reload with systemd module, use systemd module in place of service for hostapd 2018-04-07 17:31:36 -05:00
Jerry Vonau
e7872a2a9d fix enabling hostapd 2018-04-07 11:50:13 -05:00
A Holt
902b473f5b
Merge pull request #726 from georgejhunt/fix6.5
fix6.5 - auto-enable hostapd (during Ethernet install of IIAB)
2018-04-05 12:17:59 -04:00
A Holt
464488da62
Update main.yml 2018-04-04 04:16:51 -04:00
A Holt
aec942f75a
Update main.yml 2018-04-04 03:57:33 -04:00
A Holt
1396704aff
record HOSTAPD_ENABLED=<value> into iiab.env 2018-04-04 03:15:19 -04:00
George Hunt
95ea759fa0 Merge branch 'fix6.5' of https://github.com/georgejhunt/iiab into fix6.5 2018-03-31 00:02:25 +00:00
George Hunt
9be8d52736 need systemd service for hostapd unconditionally 2018-03-31 00:01:45 +00:00
George Hunt
82394328cf centos errors out if no ifcfg files to delete 2018-03-30 16:02:31 -07:00
George Hunt
54066b9b07 typo, and use rfkill to unblock wifi 2018-03-30 00:17:56 +00:00
George Hunt
227b5f4c32 wifi really is turned off by rfkill until wpa_supplicant has country= 2018-03-29 20:39:20 +00:00
George Hunt
5c074e59a4 put rpi in Gateway, enable hostapd 2018-03-29 17:57:24 +00:00
Jerry Vonau
8c17fa14e4 NM correct permissions, lockout of hostapd, fix boot race 2018-03-25 23:59:09 -05:00
A Holt
167a1940a8
and -> or (per George's suggestion) 2018-02-15 15:56:04 -05:00
George Hunt
f908a84b48 do not ignore gui request for fixed ip 2018-02-10 01:40:19 +00:00
A Holt
8419873d9c
Revert #652 as iiab-startup.sh sets promiscuous early on 2018-01-11 18:29:39 -05:00
A Holt
7f227413ca
turn on wlan0 promiscuous mode much earlier?! 2018-01-11 15:35:28 -05:00
A Holt
1b86d291b0
computed_network.yml workaround discovered_lan_iface -> discovered_wan_iface 2018-01-11 11:41:51 -05:00
A Holt
9a689d8af9
discovered_lan_iface depr so TRY discovered_wan_iface 2018-01-11 09:56:26 -05:00
A Holt
236580eff6
Clarify how hostapd_enabled is RECORDED into /etc/iiab/iiab.ini 2018-01-11 09:02:24 -05:00
A Holt
f700843f69
Readability tweaks 2018-01-11 00:32:41 -05:00
A Holt
95f726e913
Context Explained: WiFi-as-gateway detection logic 2018-01-01 11:45:19 -05:00
A Holt
ebd2f3ac61
manually_toggle_AP: True -> hostapd_enabled: False 2018-01-01 11:04:30 -05:00
A Holt
f6e3d6830b
manually_toggle_AP: True -> hostapd_enabled: False 2018-01-01 11:03:29 -05:00
A Holt
4272185a88
manually_toggle_AP: True -> hostapd_enabled: False 2018-01-01 10:58:46 -05:00
A Holt
25161b558d
manually_toggle_AP: false -> hostapd_enabled: True 2018-01-01 10:50:47 -05:00
A Holt
3d5d5ac039
Avoid restarting hostapd if manually_toggle_AP 2017-12-29 01:19:06 -05:00
A Holt
4dc6643d47
Avoid restarting hostapd unless nec 2017-12-29 01:08:01 -05:00
A Holt
44675f659a
"no_net_restart: True" to prevent WiFi flakiness? 2017-12-29 01:03:02 -05:00
A Holt
7986d5b28a
Clarify IIAB_LAN|WAN_DEVICE saved to /etc/iiab/iiab.env 2017-12-28 22:11:37 -05:00
A Holt
82862c4dd0
"when: not installing" redundant...comment or remove!? 2017-12-28 22:01:01 -05:00
A Holt
a2ab1b79cc
Clarif: manually_toggle_AP used in hostapd.yml & rpi_debian.yml 2017-12-28 19:39:29 -05:00
A Holt
5261301482
Clarify hostapd service is being restarted 2017-12-28 19:12:36 -05:00
A Holt
2ba4737aba
hostapd.yml: enable/restart svc if manually_toggle_AP is false 2017-12-28 19:08:13 -05:00
A Holt
c412f02f70
Enable manually_toggle_AP when WiFi is primary gateway 2017-12-28 18:57:22 -05:00
A Holt
cbc8ec3f44
Clarify output of roles/network/tasks/hostapd.yml 2017-12-28 17:13:22 -05:00
A Holt
6a632bffc7
Typos discovered_*_lan_iface -> iiab_*_lan_iface 2017-12-28 14:26:56 -05:00
A Holt
4f250ac5f2
clarify "RPi - don't reboot to AP post install - installed via wifi" 2017-12-28 10:01:46 -05:00
A Holt
4f9be5eba0
Update squid.yml 2017-12-08 06:18:55 -05:00
A Holt
46470e75bf
Update squid.yml 2017-12-08 06:08:14 -05:00
A Holt
2a4b5fdb21
Update squid.yml 2017-12-08 06:04:39 -05:00
A Holt
ca6e9741cb
Update squid.yml 2017-12-08 06:01:33 -05:00
A Holt
a7245aa0e0
Update dansguardian.yml 2017-12-08 05:51:38 -05:00
A Holt
2063b77fb4
Update squid.yml 2017-12-08 05:47:21 -05:00
Jerry Vonau
fb331c7e09 always restart dns server 2017-12-07 12:43:41 -06:00
A Holt
3a729396f0
Merge pull request #554 from jvonau/U17-2
U17-2: refine network for Ubuntu 18.04 LTS daily builds
2017-12-07 12:46:34 -05:00
A Holt
2df3afbc78
"reboot_to_AP: False" (today for RPi only) was being ignored 2017-12-04 18:18:07 -05:00
A Holt
0b3a5eab5d
Merge pull request #584 from jvonau/upgrades
guard against losing dns lookups when the machine has alreay been con…

closes #581
2017-12-04 11:53:19 -05:00
Jerry Vonau
4c18f746dc guard against losing dns lookups when the machine has alreay been configured in which /etc/resolv.conf would contain 127.0.0.1 as the nameserver address with resolvconf in action and /etc/iiab/iiab.env absent 2017-11-25 11:57:55 -06:00
Jerry Vonau
bd5684cd10 dhcpd contol for iiab-hotspot-on|off 2017-11-24 13:05:43 -06:00
Jerry Vonau
29104b9f75 add install time option for control of AP upon reboot 2017-11-24 13:01:18 -06:00
Jerry Vonau
117a3f513b cleanup 2017-11-24 11:04:37 -06:00
Jerry Vonau
ac738458f0 use results to set_facts 2017-11-24 11:04:37 -06:00
Jerry Vonau
1775c77265 name the tasks 2017-11-24 11:04:37 -06:00
Jerry Vonau
e83d65ea7b record new facts 2017-11-24 11:04:36 -06:00
Jerry Vonau
7e4ff797e5 hand merge of systemd-net with a rename 2 2017-11-24 11:04:36 -06:00
Jerry Vonau
095bf1acdc use down more 2017-11-24 11:04:36 -06:00
Jerry Vonau
e1e9108ac4 NM support 2017-11-24 11:04:36 -06:00
Jerry Vonau
e762dd3d8d rpi_debian.yml 2017-11-24 11:04:36 -06:00
Jerry Vonau
f1f2ffa275 go with keyfile 2017-11-22 18:01:04 -06:00
Jerry Vonau
f73585aea1 keyfile layout 2017-11-22 17:20:46 -06:00
Jerry Vonau
f8d7c1ddad add not wan_in_interfaces check before cobbering /etc/network/interfaces 2017-11-22 14:01:40 -06:00
Jerry Vonau
b9d97bce4f provide NetworkManager.conf - and move prior to daemon-reload 2017-11-22 13:57:48 -06:00
Jerry Vonau
3510641b41 has_NM use /etc/network/interfaces, need to toggle "manged" in NetworkManager.conf
Alternative keyfile option is possible just like the XO days.
http://manpages.ubuntu.com/manpages/zesty/man5/NetworkManager.conf.5.html
2017-11-22 10:34:58 -06:00
Jerry Vonau
47328e6ab5 don't use /etc/network/interfaces.d/iiab 2017-11-22 10:21:18 -06:00
Jerry Vonau
9204c4caf5 single interface - strings need to be quoted, add stdout_lines 2017-11-22 09:58:13 -06:00
Jerry Vonau
20398be41a partial 831e189795bf37d6c785a657a882556c3d649294 2017-11-20 11:20:20 -06:00
Jerry Vonau
30ee7a2449 iiab-hotspot-on|off 2017-11-20 11:20:20 -06:00
Jerry Vonau
65214d84f2 hostapd default on 2017-11-20 11:20:20 -06:00
Jerry Vonau
3c2090424b hostapd in enable_services.yml 2017-11-20 11:20:20 -06:00
Jerry Vonau
fa3512f2b1 alter wifi list to include gateway 2017-11-20 11:17:16 -06:00
Jerry Vonau
a6d63e66d2 use {{}} and iiab_lan_iface 2017-11-20 11:17:16 -06:00
Jerry Vonau
e9aae150f4 rpi test 3 wifi flip on reboot 2017-11-20 11:17:16 -06:00
Jerry Vonau
f3bcabe498 rpi test 2 supply template for hostapd 2017-11-20 11:17:16 -06:00
Jerry Vonau
450c04697d dnsmasq.conf based on George's template
https://raw.githubusercontent.com/georgejhunt/iiab/37e9c4cdbe55709cb306862f4d3324449ec011d5/roles/network/templates/network/dnsmasq.conf
2017-11-20 11:17:16 -06:00
Jerry Vonau
73fd3959b2 4- not network, better logging, and adjust tags network- FQDN 2017-11-20 11:15:20 -06:00
Jerry Vonau
0143cea2dd dhcpd move stock disable 2017-11-19 20:34:19 -06:00
Jerry Vonau
4416cf5e55 make that a 2 min timeout for squid 2017-11-18 22:18:48 -06:00
Jerry Vonau
f469a44dee network - disable is_redhat specific detection 2017-11-18 22:18:47 -06:00
Jerry Vonau
4cc6da39fb blacklist_wifi -> reserved_wifi as a better discription of the use case
Document option for use in local_vars - used with BM's U17 install
2017-11-15 20:46:19 -06:00
A Holt
6e48d41d60
Merge pull request #516 from holta/master
bringing all pkg descriptions into same format, for /etc/iiab/iiab.ini
2017-11-13 14:47:07 -05:00
A Holt
1f8551e226
bringing all pkg descriptions into same format 2017-11-13 14:25:06 -05:00
A Holt
3597896d71
Merge pull request #510 from jvonau/U17
U17: Ubuntu 17.10 preparations
2017-11-13 12:35:16 -05:00
Jerry Vonau
405607c845 DG path - iiab_lan_iface tweeks 2017-11-13 09:59:14 -06:00
Jerry Vonau
db2827a0ed removed unused templates & touchups 2017-11-13 09:59:14 -06:00
Jerry Vonau
5e38b47d04 move proxy install option to 4-common 2017-11-13 09:59:13 -06:00
Jerry Vonau
8a2c560f5b Squid on the fly, loses some speed thou 2017-11-13 09:59:13 -06:00
Jerry Vonau
c08de05fbd shift FQDN 2017-11-13 09:59:13 -06:00
Jerry Vonau
0d5d494514 iptables 2017-11-13 09:59:13 -06:00
Jerry Vonau
f810e91322 stopping named after install but during upgrades is a bad idea 2017-11-13 09:56:46 -06:00
Jerry Vonau
7b5de542cf don't run lan_list_result when 'Count LAN ifaces' is zero to quite
down noisy log when detecting single interface
2017-11-13 09:56:46 -06:00
Jerry Vonau
95409fdfff move dhcpcd detection to local_facts to clean up logging 2017-11-12 19:30:59 -06:00
A Holt
2a1b18d8ad
typos/tweaks in detected_network.yml 2017-11-10 11:39:20 -05:00
A Holt
340f425456
roles/network/tasks/debian.yml output tweaks 2017-11-10 11:33:19 -05:00
Jerry Vonau
41033ba949 br0 - single interface mis-detection 2017-11-09 12:21:57 -06:00
A Holt
fc7bdc0009
using 'debuntu' in Ansible output 2017-11-08 04:41:16 -05:00
A Holt
4585445e80
Capitalize 1st word of ansible outputs 2017-11-08 02:00:07 -05:00
A Holt
60d8afaab8
spelling typos cleaned 2017-11-08 01:58:26 -05:00
A Holt
901aad5e0f
dansguardian -> DansGuardian 2017-11-08 01:55:04 -05:00
A Holt
6173e59b1d
clarif: 'hostapd' service 2017-11-08 01:53:19 -05:00
A Holt
f687037996
Merge pull request #480 from holta/master
clarifs in medium.localvars, default_vars.yml, runansible, 2-common/tasks/iiab_ini.yml, network/tasks/squid.yml, moodle/tasks/main.yml, sugarizer/tasks/main.yml, cups/tasks/main.yml, calibre/tasks/main.yml, nextcloud/tasks/*.yml, kalite/tasks/*.yml, README-historical.md
2017-11-08 00:52:21 -05:00
Jerry Vonau
991f1e87b8 wondershaper.yml 2017-11-06 20:15:51 -06:00
Jerry Vonau
ccdb5cd2fb restart.yml - wifi bridge slave touchup 2017-11-06 20:15:51 -06:00
Jerry Vonau
3df58f1d00 network - remove unused installing.yml file 2017-11-06 15:34:28 -06:00
Jerry Vonau
5132062bf7 install iptables in 2-common 2017-11-06 15:34:28 -06:00
Jerry Vonau
a32f81922e set hostname alias early 2017-11-06 15:34:28 -06:00
Jerry Vonau
35cd2b44a5 iiab_wireless_lan_iface is defined for machines without wifi 2017-11-06 15:34:28 -06:00
Jerry Vonau
78a9434122 restore bridging for RPi and make optional 2017-11-06 15:34:28 -06:00
Jerry Vonau
a9926e6700 adjust for 'is defined' and order 2017-11-06 15:34:27 -06:00
Jerry Vonau
e74838b8b2 test disabling include_vars and moving computed_vars.yml in main.yml
looking at "installing" as defined in roles/0-init/defaults/main.yml
and first use in named.yml: Stop named before copying files where the install
aborts when not defined
2017-11-06 15:34:27 -06:00
Jerry Vonau
f3fa1d21e9 move squid stop before DG 2017-11-06 15:34:27 -06:00
Jerry Vonau
df08c29cfd Ubuntu - skip restart with DG enabled during install 2017-11-06 15:34:27 -06:00
Jerry Vonau
4a6db98f5b Ubuntu - bigger hammer to stop squid on ubuntu with DG enabled 2017-11-06 15:34:27 -06:00
Jerry Vonau
836747908d Ubuntu - stop squid before replacing the stock config files otherwise stock service does not stop with replacement files already in place 2017-11-06 15:34:27 -06:00
Jerry Vonau
f5f3e17583 stop named after install 2017-11-06 15:34:27 -06:00
Jerry Vonau
259c03fbcb better squid <-> dansguardian switchover when enabling/disabling services due to port 3128 usage 2017-11-06 15:34:27 -06:00
Jerry Vonau
9bd493b0c5 discovered_lan_iface -> discovered_wired_iface 2017-11-06 15:34:27 -06:00
Jerry Vonau
47dd40bd26 CentOS - numbers should not have quotes & no config file needed.
Might need to enable resolveconf to have the correct nameserver used
-needs further testing to confirm testing
2017-11-06 15:34:27 -06:00
Jerry Vonau
18d66e47f4 numbers should not have quotes 2017-11-06 15:34:27 -06:00
Jerry Vonau
26aa57537f stop squid after install 2017-11-06 15:34:27 -06:00
Jerry Vonau
4015a7c8f1 no_net_restart 2017-11-06 15:34:27 -06:00
Jerry Vonau
3e4ae6b07d syntax check 2017-11-06 15:34:27 -06:00
Jerry Vonau
4a63f79085 local_vars is_VM 2 2017-11-06 15:34:26 -06:00
Jerry Vonau
16adb8e199 Noted odd behaviour when altering local_vars for 'host_ssid' & is_VM 2017-11-06 15:34:26 -06:00
Jerry Vonau
a33c5f76b9 quotes 2017-11-06 15:34:26 -06:00
Jerry Vonau
f2d3207ac3 adjust debian.yml 2017-11-06 15:34:26 -06:00
Jerry Vonau
4d8fe7fd46 remove dup'd stanza 2017-11-06 15:34:26 -06:00
Jerry Vonau
73b6937c8e re-enable bridging for non-RPi 2017-11-06 15:34:26 -06:00
Jerry Vonau
e467df273e move enable_service - edits 2017-11-06 15:34:26 -06:00
Jerry Vonau
8e37472fbf running - double check after rebase 2017-11-06 15:34:26 -06:00
Jerry Vonau
37b8e3fdb6 fixed cherry-pick of 76835bac05 2017-11-06 15:34:26 -06:00
Jerry Vonau
cdf368d257 fixed cherry-pick 54f7b4e728 2017-11-06 15:34:26 -06:00
Jerry Vonau
22165b1c04 dhcpd - iiab_network_mode != Appliance debian 2017-11-06 15:34:26 -06:00
Jerry Vonau
5829faac91 dhcpd - is_VM 2017-11-06 15:34:26 -06:00
Jerry Vonau
c1183cc578 big hammer on bridging 2017-11-06 15:34:26 -06:00
Jerry Vonau
e490693dab merge - move services - double check after rebase 2017-11-06 15:34:26 -06:00
Jerry Vonau
9f9a462ad0 is_VM 2017-11-06 15:34:26 -06:00
Jerry Vonau
2c9a2970bc merge iiab-install - missed is_redhat 2017-11-06 15:34:26 -06:00
Jerry Vonau
534bd253f4 network detection replace first_run with iiab_stage 2017-11-06 15:34:25 -06:00
Jerry Vonau
6cae3930b7 move network package install - double check after rebase 2017-11-06 15:34:25 -06:00
Jerry Vonau
ff22bcaf83 backport of 46c36b3e3542ffe5609ab5cc10a60de7335d6cd9 double check after rebase
backport of c837cde92304cfaf4a44c31dfb40bbadfd05fe04

backport of a0102669d2d842163d17d61e254dbd0ba8a3ea92

touch up

backport of a55c0555b6fb92a6b6b239a9dce2fde2100e7ae5
2017-11-06 15:34:25 -06:00
Jerry Vonau
c0590d973e move hostname handling from network role --edited double check after rebase 2017-11-06 15:34:25 -06:00
Adam Holt
c07c0d2d76 56 changes to include_tasks --edits double check after rebase 2017-11-06 15:34:25 -06:00
Jerry Vonau
28a1ebb1b0 dhcp_service first_run add is_debuntu only 2017-11-06 12:33:42 -06:00
Jerry Vonau
b17bc7f779 tighten up hostapd check 2017-11-06 12:33:42 -06:00
Jerry Vonau
c1a272cd90 treat ubuntu same as debian 2017-11-06 12:33:42 -06:00
Jerry Vonau
aab78257d4 disable stock isc-dhcp-server config 2017-11-06 12:33:42 -06:00
Jerry Vonau
82854b94a1 too fancy atm 2017-11-06 12:33:41 -06:00
Jerry Vonau
a60661f45c move avahi package install 2017-11-06 12:33:41 -06:00
Jerry Vonau
5cd426fa89 redhat debugging and remove dup'd stanzas 2017-11-06 12:33:41 -06:00
Jerry Vonau
8bb6166914 network install once 2017-11-06 12:33:41 -06:00
Jerry Vonau
ea44bcaf05 split installing out of main.yml 2017-11-06 12:33:41 -06:00
Jerry Vonau
8cad64c34a fix proper runtags support 2017-11-06 12:33:41 -06:00
Jerry Vonau
5ca8db9d09 lose rpi_debian - rebased -- dropped file 2017-11-06 12:33:41 -06:00
Jerry Vonau
de4be7c646 Everybody is testing debian.yml - Toggle dnsmasq_enabled False - edits
use hostapd.yml supplied templates sooner - remove systemd reload and restarted - move restarted to restart.yml

live testing
2017-11-06 12:33:41 -06:00
Jerry Vonau
8cf4481553 port dnsmasq over from nginx-rebase-eth0 - rebased edits 2017-11-06 12:33:41 -06:00
Jerry Vonau
cc8494608e reorder dhcpcd networking services - rebased edits
looks weird on redhat

add systemd reload
2017-11-06 12:33:41 -06:00
Jerry Vonau
c326a49de1 rename interfaces.j2 - rebased - edits 2017-11-06 12:33:41 -06:00
Jerry Vonau
78cd58ca8a boolean in template needs ==t/f 2017-11-06 12:33:41 -06:00
Jerry Vonau
788407cc9a correct service name - stock interfaces - rebased edits 2017-11-06 12:33:41 -06:00
A Holt
6b8cdf7831
obectionable -> objectionable 2017-11-02 01:20:13 -04:00
A Holt
bc3f59d30b
Ansible output refined 2017-10-27 14:13:19 -04:00
A Holt
0f8cc95815
refined 2017-10-27 13:57:40 -04:00
A Holt
01eb8f3528
refined 2017-10-27 13:56:51 -04:00
A Holt
9cd03ceb85
refined 2017-10-27 13:55:24 -04:00
A Holt
7414763721
refined 2017-10-27 13:53:46 -04:00
A Holt
dfc0641e19
refined 2017-10-27 13:51:20 -04:00
A Holt
d38627f053
refined 2017-10-27 13:49:00 -04:00
A Holt
bc10993ec3
refined 2017-10-27 13:44:36 -04:00
A Holt
1df73baf70
refined 2017-10-27 13:43:15 -04:00
A Holt
68cd077b40
cleaner Ansible output 2017-10-27 13:37:37 -04:00
A Holt
052305979f
cleaner messaging 2017-10-27 13:36:33 -04:00
A Holt
bc7efdd8d9
slight bit cleaner 2017-10-27 13:34:00 -04:00
A Holt
4aa5ada670
Update iptables.yml 2017-10-27 13:32:06 -04:00
A Holt
721e1c97ed
Update ifcfg_mods.yml 2017-10-27 13:30:54 -04:00
A Holt
bb3e4d0eb5
Apostrophe 2017-10-27 13:28:17 -04:00
A Holt
28ee464753
cleaner Ansible output 2017-10-27 13:26:27 -04:00
A Holt
9fdcd5cbaa
cleaner output 2017-10-27 13:24:19 -04:00
A Holt
ee55dea59b
a bit better/cleaner 2017-10-27 13:19:59 -04:00
A Holt
9d97750b6d
more readable 2017-10-27 13:16:13 -04:00
A Holt
eab8010b0a
cleaner 2017-10-27 13:13:11 -04:00
A Holt
3b9940c16e
cleaner 2017-10-27 13:09:12 -04:00
A Holt
37148b3cf8
cleaner Ansible output 2017-10-27 12:22:06 -04:00
A Holt
7431fe572e
cleaner 2017-10-27 12:17:09 -04:00
A Holt
3ee4beda19
clean Ansible output 2017-10-27 12:15:10 -04:00
A Holt
4a76c927ce
clean Ansible output 2017-10-27 12:12:05 -04:00
A Holt
753752ae9b
clean Ansible output 2017-10-27 12:08:35 -04:00
A Holt
a5ebc31991
More readable Ansible output 2017-10-27 12:05:27 -04:00
A Holt
15e8ef565e
More readable Ansible output 2017-10-27 12:02:21 -04:00
A Holt
5e89182876
More readable Ansible output 2017-10-27 11:59:36 -04:00
A Holt
c8b7bba77f
More readable Ansible output 2017-10-27 11:53:43 -04:00
A Holt
d6bbb9cd07
More readable Ansible output 2017-10-27 11:49:55 -04:00
A Holt
e662025c4b cleaner Ansible messaging 2017-10-27 09:33:32 -04:00
A Holt
3c6d31b22f Update detected_network.yml 2017-10-27 03:27:28 -04:00
A Holt
8f75d24dfa Update enable_services.yml 2017-10-27 02:37:42 -04:00
Jerry Vonau
0aedaa24fd split network up in iiab.ini 2017-10-26 10:48:40 -05:00
Jerry Vonau
bd50433874 move network detection to network -- adjused for hostname 2017-10-26 10:48:40 -05:00
A Holt
89e3461e17 Merge pull request #442 from jvonau/433
named / DNS fix for #433 Squid install fail

closes #433
2017-10-22 02:45:34 -04:00
Jerry Vonau
d98291fb04 named - wrong place 2017-10-21 14:23:36 -05:00
Arky
602223e4ff Adds spaces in variables after {{ and before }}
Fixes various warnings in Travis CI 

[EXTRA0001] Variables should have spaces after {{ and before }}
2017-10-20 11:36:10 +07:00
Arky
3abb27bbed Misc Fixes: Clean up whitespace warnings 2017-10-19 13:40:23 +07:00
A Holt
c1101d2e3d Merge pull request #380 from jvonau/permissions
permissions - storaged as execuables in git - installed files need not be executable
2017-10-16 10:25:31 -04:00
Arky
6f0a903a5f Fix octal permissions warnings in Travis CI 2017-10-16 13:57:57 +07:00
Jerry Vonau
9d2fb21705 permissions 2017-10-10 15:06:31 -05:00
A Holt
6cf1bcd980 typo currupted -> corrupted 2017-10-01 21:43:25 -04:00
Jerry Vonau
50f849a649 cover bad selection of install False enabled True by enduser 2017-09-19 18:35:00 -05:00
Jerry Vonau
ae66aa3433 correct package name 2017-09-18 13:38:53 -07:00
Jerry Vonau
43bf8174c0 make DG and squid respect *_install and default dansguardian_install to False 2017-09-18 13:38:53 -07:00
Jerry Vonau
6877bb2ac2 typo eth0 (#251)
correct service name

lets shut-up systemd

keep wifi variables with networking - remove unused variable
2017-09-18 08:19:46 -07:00
georgejhunt
ed2b5d78f2 just move our config to interfaces.d (#247)
* just move our config to interfaces.d

* debian needs same fix as rpi

* try to recover/upgrade from putting wrong content in interfaces -- restore it

* modify dhcpcd.conf for gui static changes

* cannot comment out jinja2 with #, need to wipe the {%

* deny Lan for dhcpcd, will need work if wifi is used upstream

* attempt to change ip from console without requiring a reboot

* Revert "attempt to change ip from console without requiring a reboot"

This reverts commit 14c7499cdc.

Better not to break an upstream connection

* cleanup the iiab.j2 template --changing only comment lines
2017-09-15 22:31:09 -07:00
georgejhunt
092617e75d hardcoding ifaces on rpi was a bad idea (#232)
* remove hardcodeing of ifaces - raspbian

* remove commented out hardcodeing
2017-09-11 09:20:12 -07:00
georgejhunt
54bd3f7414 pi zero is different ansible_machine (#144)
* pi zero is different ansible_machine

* trying to create link fails, if same nams as file exists. This was too much backward compatability
2017-08-31 10:09:03 -07:00
georgejhunt
29b0b50885 Debian9 (#91)
* do a special download and install of usbmount

* misspelled iiab_download_url

* misspell downloads_dir

* diable php-sqlite

* php version issues

* fixes transferred from recognize branch

* local_fact moved

* remove preload

* remove preload

* spell ansible

* debian9 sqlite3

* package needs name

* remove prepped

* use apt ratheer than ansible package for npm

* monit disable chkconfig

* moodle needs php-zip and php-mbstring

* debian9 -> debian-9

* returen to os_ver nomenclature for OS.yml
2017-07-04 13:27:44 -07:00
georgejhunt
30f4dfc1af Notags (#73)
* bulk change use_cache/no_network->internet_available

* bulk change use_cache/no_network->internet_available

* remove unuseful debug statements

* remove download tags

* appendix has_internet_connection

* ubuntu dhcpd needs to connect to br0
2017-06-29 10:48:41 -07:00
georgejhunt
4462652deb Iiab (#68)
* xs- goes to iiab-

* more xs->iiab

* sysconfig was forgotten

* hyphen vs underscore i roles network templates

* bulk sed on pgsql-xs

* create links for old script names

* missed named-xs -> named-iiab

* squid-xs ->squid-iiab

* misspelled squid-iiab.conf.j2
2017-06-27 19:53:13 -07:00
George Hunt
3f862da6a2 PR16 and PR17 -- moodle/templates/install -- /etc/hosts 2017-06-19 17:20:01 -07:00
georgejhunt
f319afa432 Test (#20)
* change apache_data to apache_user in all

* no libapach2 in centos. just php. no php-magick in centos

* remove redundant vars entries

* do not create apache user

* missed one pound sign

* soft code all references to apache_user

* centos requires older setuptools

* revert ansible_lsb.id in xsce.yml

* try getting recent pip

* move pip download to 2prep so that kalite success is not dependent on iiab coming first

* still need to replace setuptools in kalite

* add curl -- needed in debian

* massivly substitue iiab for xsce, and rename files

* completed runansible

* centos fixes,install  pip

* appliance means no iptables rules

* change to earlier version of setuptools for centos

* delete file duplicate, hopefully unnecessary. generate the offline docs

* wiki docs errors

* create the admin group -- deleted earlier

* use the --yes option with pip uninstall

* base of repo moved from schoolserver to iiab, unleashkids.org->iiab.io

* network detection broken due to tupo
2017-06-09 16:25:56 -07:00
George Hunt
86e40bbda4 somehow we lost some definitions in Debian.yml, called in dhcpcd-dbus rather than dhcpcd5, which works 2017-06-05 12:23:08 -07:00
George Hunt
a5128f839b remove anything that breaks if resolvconf service is referenced 2017-06-02 23:50:24 +00:00
George Hunt
3da96de4e9 correct for ubuntu 2017-05-28 06:47:49 -07:00
George Hunt
6a1cd439cd rest of patches 2017-05-27 16:40:12 -07:00
George Hunt
cb344d7d47 patch 0002 2017-05-27 16:10:45 -07:00
George Hunt
845632d0ac initial checkin -- May 27, 2017 2017-05-27 11:09:50 -07:00