Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You may want to create a custom fact, then add script to the exec file to be invoked. Meaning as an example:

if &operatingsystem == /[(RHEL)]/: file => /root/myscript.sh, ensure => present,

  exec  => 'run_this_class":
  cmd => '/bin /root/myscript.sh,
  path => '/bin:/sbin:/usr/local/bin:/usr/local/sbin

You could place this in any class you have written.

   myscript.sh
  puppet apply  'name of class'
  puppet agent -t --noop

or add

joshs/agent_noop

to your classification and pin the nodes.

What I am not clear about? If you want the default puppet run to exec on a single node and noop everyone in a particular class? Maybe a little more insight before I get to deep into the weeds will help.