Sha256: b2773beb393f2e731b797578e31a89476e9351cb4fd831e4e480a47d31335867
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
class OpnSense < Oxidized::Model # minimum required permissions: "System: Shell account access" # must enable SSH and password-based SSH access cmd :all do |cfg| cfg.each_line.to_a[1..-1].join end cmd 'cat /conf/config.xml' do |cfg| cfg.gsub! /\s<revision>\s*<time>\d*<\/time>\s*.*\s*.*\s*<\/revision>/, '' cfg.gsub! /\s<last_rule_upd_time>\d*<\/last_rule_upd_time>/, '' cfg end cfg :ssh do exec true pre_logout 'exit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.24.0 | lib/oxidized/model/opnsense.rb |
oxidized-0.23.0 | lib/oxidized/model/opnsense.rb |
oxidized-0.22.0 | lib/oxidized/model/opnsense.rb |