package 'nginx' service 'nginx' do action [:enable, :start] end template '/etc/nginx/sites-enabled/default' do source 'nginx-default.conf.erb' variables( server_name: 'www.mikroways.net', document_root: '/var/www' ) notifies :restart, 'service[nginx]', :immediately end directory '/var/www' file '/var/www/index.html' do content <<-HTML

Hello world!

HTML end