Hello folks, brand new Puppet admin here, so please go easy on me. I'm 
trying to deploy Nxlog to Windows via Puppet + Foreman. So far, I can get 
my deployment to work properly if I put the following in my 
/etc/puppetlabs/code/environments/production/manifests/site.pp:

node 'mywindows.servername.com' {
include nxlog
nxlog::input {'in':
  input_name   => 'in',
  input_module => 'im_msvistalog',
  query        => '<QueryList><Query Id="0"><Select 
Path="Application">*</Select><Select Path="System">*</Select><Select 
Path="Security">*</Select></Query></QueryList>',
  }

nxlog::output {'out':
  output_name   => 'out',
   output_module => 'om_tcp',
  output_host    => 'mylogserver.com',
  output_port   => '514',
  output_exec   => 'to_syslog_snare();',
  }
# must route to existing output defined above
 nxlog::route {'route1':
  route_name => 'route1',
  route_path => 'in => out', 
}
}

While this works, I don't want to define every node in manifests/site.pp; 
I'd like to control the deployments using Foreman. However, I can't figure 
out how to tell Foreman to include these defined types in its config.
Here's the Nxlog class I'm using, if needed: 
https://forge.puppet.com/dschaaff/nxlog

Any help is appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to