Skip to content

Commit

Permalink
Merge pull request socallinuxexpo#651 from socallinuxexpo/rh/17052077…
Browse files Browse the repository at this point in the history
…41facts

[READY] - Updating 21x show facts for openwrt
  • Loading branch information
owendelong authored Jan 14, 2024
2 parents f8243d9 + 8b69cbb commit b1f8527
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 47 deletions.
21 changes: 5 additions & 16 deletions facts/secrets/ar71xx-openwrt-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root_hash: "$1$zh0PjBbB$f9aFGDX9vNYNdSRexhib8/"

# Bump for each year for scale
scale: 19
scale: 21

sshd:
password_auth: true
Expand All @@ -12,9 +12,6 @@ rsyslog:
port: '514'
protocol: 'udp'

zabbix:
server: 'zabbix.scale.lan'

ntp:
server: '0.openwrt.pool.ntp.org'

Expand Down Expand Up @@ -108,29 +105,21 @@ wireless:
channel: '11'
path: 'pci0000:00/0000:00:11.0'
htmode: 'HT20'
txpower: '8'
txpower: '12'
networks:
- ssid: 'scale-public-slow'
password: 'tuxlinux'
password: 'penguins'
interface: 'scaleslow'
disabled: 0
- ssid: 'scale-staff-24'
password: 'testpassword'
interface: 'staffwifi'
disabled: 0
- name: 'radio1'
type: 'mac80211'
hwmode: '11a'
channel: '36'
path: 'pci0000:00/0000:00:12.0'
htmode: 'HT20'
txpower: '8'
txpower: '12'
networks:
- ssid: 'scale-public-fast'
password: 'tuxlinux'
password: 'penguins'
interface: 'scalefast'
disabled: 0
- ssid: 'scale-staff-5'
password: 'testpassword'
interface: 'staffwifi'
disabled: 0
5 changes: 1 addition & 4 deletions facts/secrets/ar71xx-openwrt-show.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root_hash: "$6$A.qZ6.jIUKL/WS0P$lrIP99C3BgP7OMmVlYOGaErcatjipS0cL0AiVFeTAAk6IwBkstXz/EpMv1SOtO8rDifzC.mLta3eOvG/q4cRq."

# Bump for each year for scale
scale: 20
scale: 21

sshd:
password_auth: false
Expand All @@ -12,9 +12,6 @@ rsyslog:
port: '514'
protocol: 'udp'

zabbix:
server: 'monitor.scale.lan'

ntp:
server: '0.openwrt.pool.ntp.org'

Expand Down
3 changes: 0 additions & 3 deletions facts/secrets/mt7622-openwrt-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ rsyslog:
port: '514'
protocol: 'udp'

zabbix:
server: 'zabbix.scale.lan'

ntp:
server: '0.openwrt.pool.ntp.org'

Expand Down
18 changes: 18 additions & 0 deletions facts/secrets/mt7622-openwrt-show.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# scale
root_hash: "$1$zh0PjBbB$f9aFGDX9vNYNdSRexhib8/"

# Bump for each year for scale
scale: 21

sshd:
password_auth: false

rsyslog:
server: 'loghost.scale.lan'
port: '514'
protocol: 'udp'

ntp:
server: '0.openwrt.pool.ntp.org'

# Wired/Wireless config can directly be found in files dir
2 changes: 1 addition & 1 deletion openwrt/files/etc/config/lldpd
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ config lldpd config
# Set class of device
option lldp_class 4
# if empty, the distribution description is sent
option lldp_description "OpenWrt System"
option lldp_description "{{ env.Getenv "TARGET" }} SCaLE OpenWrt"
2 changes: 1 addition & 1 deletion tests/unit/openwrt/golden/ar71xx/etc/config/lldpd
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ config lldpd config
# Set class of device
option lldp_class 4
# if empty, the distribution description is sent
option lldp_description "OpenWrt System"
option lldp_description "ar71xx SCaLE OpenWrt"
26 changes: 4 additions & 22 deletions tests/unit/openwrt/golden/ar71xx/etc/config/wireless.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ config wifi-device 'radio0'
option path 'pci0000:00/0000:00:11.0'
option htmode 'HT20'
option channel '11'
option txpower '8'
option txpower '12'
option country 'US'

config wifi-device 'radio1'
Expand All @@ -14,7 +14,7 @@ config wifi-device 'radio1'
option path 'pci0000:00/0000:00:12.0'
option htmode 'HT20'
option channel '36'
option txpower '8'
option txpower '12'
option country 'US'


Expand All @@ -25,16 +25,7 @@ config wifi-iface 'scaleslow_radio0'
option mode 'ap'
option network 'scaleslow'
option encryption 'psk2'
option key 'tuxlinux'
option disabled '0'

config wifi-iface 'staffwifi_radio0'
option device 'radio0'
option ssid 'scale-staff-24'
option mode 'ap'
option network 'staffwifi'
option encryption 'psk2'
option key 'testpassword'
option key 'penguins'
option disabled '0'

config wifi-iface 'scalefast_radio1'
Expand All @@ -43,15 +34,6 @@ config wifi-iface 'scalefast_radio1'
option mode 'ap'
option network 'scalefast'
option encryption 'psk2'
option key 'tuxlinux'
option disabled '0'

config wifi-iface 'staffwifi_radio1'
option device 'radio1'
option ssid 'scale-staff-5'
option mode 'ap'
option network 'staffwifi'
option encryption 'psk2'
option key 'testpassword'
option key 'penguins'
option disabled '0'

0 comments on commit b1f8527

Please sign in to comment.