Sha256: beff2696c11afcbf2eda80d4c37886ac65672e4e456d5bc505e4b0292cf47236

Contents?: true

Size: 621 Bytes

Versions: 6

Compression:

Stored size: 621 Bytes

Contents

# LinuxGeneric model notes

To expand the usage of this model for more specific needs you can create a file in `~/.config/oxidized/model/linuxgeneric.rb`

```ruby
require 'oxidized/model/linuxgeneric.rb'

class LinuxGeneric
  
  cmd :secret, clear: true do |cfg|
    cfg.gsub! /^(default (\S+).* (expires) ).*/, '\\1 <redacted>'
    cfg
  end

  post do
    cfg = add_comment 'THE MONKEY PATCH'
    cfg += cmd 'firewall-cmd --list-all --zone=public'
  end
end
```

See [Extending-Model](https://github.com/ytti/oxidized/blob/master/docs/Creating-Models.md#creating-and-extending-models)

Back to [Model-Notes](README.md)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oxidized-0.31.0 docs/Model-Notes/LinuxGeneric.md
oxidized-0.30.1 docs/Model-Notes/LinuxGeneric.md
oxidized-0.30.0 docs/Model-Notes/LinuxGeneric.md
oxidized-0.29.1 docs/Model-Notes/LinuxGeneric.md
oxidized-0.29.0 docs/Model-Notes/LinuxGeneric.md
oxidized-0.28.0 docs/Model-Notes/LinuxGeneric.md