fixes
This commit is contained in:
parent
7addee4f6f
commit
104ed53b16
@ -18,7 +18,7 @@ module Capistrano
|
||||
|
||||
def replace_placeholders(command, channel)
|
||||
command = _replace_placeholders(command, channel)
|
||||
command.gsub!('$CAPISTRANO:TARGETHOSTNAME$', channel[:server].options[:target_hostname])
|
||||
command.gsub!('$CAPISTRANO:TARGETHOSTNAME$', channel[:server].options[:target_hostname] || '')
|
||||
command
|
||||
end
|
||||
end
|
||||
|
@ -14,7 +14,7 @@ class varnish::debian($version, $vcl_template, $store_file_mb = 1024) {
|
||||
vcl_template => $vcl_template
|
||||
}
|
||||
|
||||
init_d_bundle { 'varnish':
|
||||
init_d { 'varnish':
|
||||
init_d_prolog => template('varnish/debian/init-d-prolog'),
|
||||
init_d_prerun => template('varnish/debian/init-d-prerun'),
|
||||
require => Class['varnish']
|
||||
|
@ -3,25 +3,33 @@ define ssh {
|
||||
|
||||
file { $ssh_dir:
|
||||
ensure => directory,
|
||||
mode => '2700'
|
||||
mode => '0700',
|
||||
owner => $name,
|
||||
group => $name
|
||||
}
|
||||
|
||||
file { "${ssh_dir}/authorized_keys":
|
||||
content => template("ssh/${name}/authorized_keys"),
|
||||
require => File[$ssh_dir],
|
||||
mode => '0644'
|
||||
mode => '0644',
|
||||
owner => $name,
|
||||
group => $name
|
||||
}
|
||||
|
||||
file { "${ssh_dir}/id_dsa":
|
||||
content => template("ssh/${name}/id_dsa"),
|
||||
require => File[$ssh_dir],
|
||||
mode => '0600'
|
||||
mode => '0600',
|
||||
owner => $name,
|
||||
group => $name
|
||||
}
|
||||
|
||||
file { "${ssh_dir}/id_dsa.pub":
|
||||
content => template("ssh/${name}/id_dsa.pub"),
|
||||
require => File[$ssh_dir],
|
||||
mode => '0644'
|
||||
mode => '0644',
|
||||
owner => $name,
|
||||
group => $name
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user