Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/puppet/modules/development/sec/manifests/defines/initbuilder.pp
- define initbuilder ( $inputfile )
- {
- file { "$inputfile":
- mode => 755, owner => root, group => root,
- ensure => present,
- path => "/etc/init.d/sec",
- content => template("sec/init.erb"),
- }
- }
- /etc/puppet/modules/development/sec/manifests/classes/initscript.pp
- class sec::initscript {
- initbuilder { "$myinputfile":
- mode => 755, owner => root, group => root,
- ensure => present,
- path => "/etc/init.d/sec",
- input_file => $myinputfile,
- content => template("sec/init.erb"),
- }
- }
- /etc/puppet/modules/development/sec/templates/init.erb
- /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