We don't enable the default site by default because it's not good for production use - we attempt to make the cookbook defaults configure apache in a secure way.ThanksHey Taylor,Looks you are right, never mind, I scrolled down the tutorial and I could do some steps of bringing up a virtualbox and resume from where I am stuck. Setting up of the virtual host on the tutorial is not too far from things I have attempted with web_app, I could not just understood that there should be lots of parameters to cater for just for the default site.On Sat, Jun 27, 2015 at 2:22 PM Joseph Djomeda < " target="_blank"> > wrote:Hello There,Below are the modifications I did on my cookbook/phpapp/recipes/default.rb
include_recipe 'apache2'
include_recipe 'apache2::default'
template "#{node['apache']['dir']}/sites-available/default.conf" do
cookbook 'apache2'
source 'web_app.conf.erb'
owner 'root'
group node['apache']['root_group']
mode '0644'
# notifies :restart , 'service[apache2]'
end
#web_app "default" do
# #template 'web_app.conf.erb'
# #name 'default'
# server_name 'localhost'
# enable true
# docroot '/var/www/html'
#end
apache_site 'default' do
enable true
endIt produces this output hosted on pastee.org .It looks like it's expecting to see the remaining variable passed to. In that case I would like to ask if there isn't any default variable mechanism in vagrant.Thanks in advanceOn Sat, Jun 27, 2015 at 12:06 PM Joseph Djomeda < " target="_blank"> > wrote:In the meantime any other updated and useful step by step resource on chef is welcome.I might switch to another tutorial for the mean time but it will be useful for my own sake to find out what happened and how to debug etc. I will be grateful if anybody and land a hand.What I have noticed is that there is only default-ssl.conf in the sites-available folder and nothing in the sites-enabled folder. As at now I have no idea as to how this happened. I wouldn't want to start rolling out my own virtuahost template because I really want to make sure I follow the steps.My recipe/default.rb really has :I started with a very modest article from gettingstartedwithchef.com I have already managed to get into trouble. I am running this in vagrant with trusty. I have 2 interfaces Nat and hostonly so I can talk to the vagrant box via it own IP.I have an intermediate experience with ansible so I kind of have the big picture with configuration management.Hello Guys,I have been doing a full start from scratch all day chef series in order to start the week with team members and eventually using it through opsworks.
include_recipe 'apache2'
apache_site 'default' do
enable true
endThanks in advanceBest Regards,
Archive powered by MHonArc 2.6.16.