Sha256: 43287d7b3486e879e8aa5048ae34c82c34d4aca8a3421e5d0e3609181d41e051
Contents?: true
Size: 452 Bytes
Versions: 8
Compression:
Stored size: 452 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.cut_head 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
8 entries across 8 versions & 1 rubygems