Sha256: cec2460c3094ff8dbc78bf3a94a98eda075a6d1759942213863729ea6030523b

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 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`

```
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

1 entries across 1 versions & 1 rubygems

Version Path
oxidized-0.27.0 docs/Model-Notes/LinuxGeneric.md