Defined Type: service::deployment_script
- Defined in:
- modules/service/manifests/deployment_script.pp
Overview
Define service::deployment_script
Creates a script that should make deploying a config+code change easier.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'modules/service/manifests/deployment_script.pp', line 5
define service::deployment_script(
Stdlib::HTTPUrl $monitor_url,
Stdlib::Unixpath $release_dir = "/srv/deployment/${title}/deploy",
String $provider = 'git',
Boolean $has_autorestart = false,
Wmflib::Ensure $ensure = present,
){
$service = $title
file { "/usr/local/bin/${service}-deploy":
ensure => $ensure,
owner => 'root',
group => 'root',
mode => '0555',
content => template('service/deployment_script.sh.erb')
}
}
|