Skip to content

lewismarshall/puppet-exec-noop-out

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

puppet-exec-noop-out

A puppet exec type for custom noop output.

Useful for integrating external tools that support an audit or noop mode.

  1. Display potential changes in noop mode
  2. Will only deploy scripts when run in apply (not noop)
  3. Run script in specified user context
  4. Supports custom env
  5. Will auto transform any parameters representing files to temp paths when run in noop mode

Example:

exec_noop_out { 'audit_script.rb':
  deploy_path   => "${home}/current/utilities/links",
  owner         => $app_user,
  script_name   => "audit_script.rb",
  params        => "${params} apply_changes",
  noop_params   => "${params}",
  files_content => { 'audit_script.rb'          => $audit_script_content,
                     'lib/alib.rb'              => $alib_content,
                     'audit_script.cfg'         => $audit_script_cfg,
                   },
  environment   => ["ORACLE_HOME=${ora_home}",
                    "TNS_ADMIN=${tns_admin}"],
  changes_ret   => 5,
  funcerr_ret   => 10,
}

About

A puppet exec type for using displaying noop output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages