Anonymous
public text v1 · immutablevsftpd_cfg = data_bag_item('services', 'vsftpd')
package 'vsftpd' do
action :install
end
service 'vsftpd' do
action [:enable, :start]
supports :restart => true, :status => true
end
template '/etc/vsftpd/vsftpd.conf' do
source 'vsftpd.conf.erb'
variables({
#:anonymous_enable => vsftpd_cfg['anonymous_enable']
if node[:anonymous_enable]
:anonymous_enable => node[:anonymous_enable]
else
:anonymous_enable => vsftpd_cfg['anonymous_enable']
end
})
notify =>
end