I have a file whose contents are something like:
node 'sghjknch16' {
include vmware
include sudo
include sssd
include hardening
include hpom
include tidal
include tibco-mft-ps
include jboss
include cmd-medical-app
include accounts
realize (Accounts::User[ 'jboss' ])
realize (Accounts::Group[ 'jboss' ])
include jboss
class { sshd:
x11Forwarding => 'yes',
addressFamily => 'inet',
allowgroups => ['JBOSS-LO'],
}
... ... ...
... ... ...
The file contains several node definitions. I want to delete all the lines associated with a particular node.
The node definitions are like:
node nodename {
...
...
...
}