mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-28 07:45:49 +02:00
proftpd needs the hostname in /etc/hosts
This commit is contained in:
parent
3453c20899
commit
1545f8930a
|
@ -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/'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user