proftpd needs the hostname in /etc/hosts

This commit is contained in:
James Barnett 2017-09-08 15:04:00 -05:00
parent 3453c20899
commit 1545f8930a
2 changed files with 7 additions and 3 deletions

View File

@ -3,9 +3,9 @@
# Attributes:: default
#
default[:metasploitable][:docker_users] = ['boba_fett',
'jabba_hutt',
'greedo',
'chewbacca',]
'jabba_hutt',
'greedo',
'chewbacca',]
default[:metasploitable][:files_path] = '/vagrant/chef/cookbooks/metasploitable/files/'

View File

@ -31,6 +31,10 @@ bash 'compile and install proftpd' do
EOH
end
execute 'add hostname to /etc/hosts' do
command "echo #{node[:ipaddress]} #{node[:hostname]} >> /etc/hosts"
end
cookbook_file '/etc/init.d/proftpd' do
source 'proftpd/proftpd'
mode '760'