summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorBruno Brito Carvalho <brunoricardobritocarvalho@gmail.com>2017-08-29 10:49:45 +0200
committerGitHub <noreply@github.com>2017-08-29 10:49:45 +0200
commiteb437cc51815fa7c314af7292eca61a1ebb03113 (patch)
tree41f785fee24c10f33dde06bf2776887d57113911 /lib/oxidized
parenta4174019e55992182a357573022a8ce024284bf7 (diff)
Hide db last update
Everyday the IPS URL db is updated and so the configuration is "changed". I believe this information spams the diff config and my team and I just decided to replace it by a unique string. Maybe instead of putting this in the :secret, we could create an other var or something that can be specified in the conf. Don't know what you think of this ;-)
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/fortios.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb
index 2d15aae..605a596 100644
--- a/lib/oxidized/model/fortios.rb
+++ b/lib/oxidized/model/fortios.rb
@@ -17,6 +17,7 @@ class FortiOS < Oxidized::Model
cmd :secret do |cfg|
cfg.gsub! /(set (?:passwd|password|secondary-secret|rsso-secret|psksecret|secret|key ENC)).*/, '\\1 <configuration removed>'
cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 <configuration removed>'
+ cfg.gsub! /(IPS Malicious URL Database).*/, '\\1 <configuration removed>'
cfg
end