Guest User

Untitled

a guest
Oct 22nd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. /etc/puppet/modules/development/sec/manifests/defines/initbuilder.pp
  2. define initbuilder ( $inputfile )
  3.  
  4. {
  5.  
  6. file { "$inputfile":
  7. mode => 755, owner => root, group => root,
  8. ensure => present,
  9. path => "/etc/init.d/sec",
  10. content => template("sec/init.erb"),
  11. }
  12.  
  13. }
  14.  
  15. /etc/puppet/modules/development/sec/manifests/classes/initscript.pp
  16. class sec::initscript {
  17.  
  18. initbuilder { "$myinputfile":
  19. mode => 755, owner => root, group => root,
  20. ensure => present,
  21. path => "/etc/init.d/sec",
  22. input_file => $myinputfile,
  23. content => template("sec/init.erb"),
  24. }
  25.  
  26. }
  27.  
  28. /etc/puppet/modules/development/sec/templates/init.erb
  29.  
  30. /usr/local/bin/sec -conf=/etc/sec/* -input=<% input_file %> -pid=/var/run/sec.pid -log=/var/log/sec.log -detach
Add Comment
Please, Sign In to add comment