davama

oxidized-newmodel-testing

Oct 25th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. require 'oxidized/model/linuxgeneric.rb'
  2.  
  3. class PRF < LinuxGeneric
  4. prompt /^(\[root\@\w+\-\w+\-\w+\-*(ecr|kvm|prf)\-\d+\s\W\]#\s)/
  5. comment '#NEWCOMMENT### '
  6.  
  7. # taken from the linuxgeneric.rb
  8. post do
  9. cfg += add_comment 'BLABLABLABLABLA'
  10. cfg += cmd 'cat /etc/dumbfile'
  11. end
  12.  
  13. #other cmds
  14. end
Advertisement
Add Comment
Please, Sign In to add comment