This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
config.vm.box = "bento/centos-6.7” | |
config.vm.network "forwarded_port", guest: 80, host: 6080 | |
config.vm.network "forwarded_port", guest: 443, host: 6081 | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
vb.memory = "1024" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package "httpd" do | |
action :install | |
end | |
service "httpd" do | |
action [:enable, :start] | |
end | |
template "/var/www/html/index.html" do | |
source "index.html.erb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello World!</h1> | |
<p>My IP address is <%= node['ipaddress'] %></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default['apache']['greeting'] = "Earth" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello <%= node['apache']['greeting'] %>!</h1> | |
<p>My IP address is <%= node['ipaddress'] %></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "webserver", | |
"default_attributes": { | |
"apache" : { | |
"greeting" : "Person" | |
} | |
}, | |
"run_list" : [ | |
"recipe[apache]" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
config.vm.box = "centos_6.7" | |
config.vm.box_url = "bento/centos-6.7" | |
config.vm.network "forwarded_port", guest: 80, host: 6080 | |
config.vm.network "forwarded_port", guest: 443, host: 6081 | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
vb.memory = "1024" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package "httpd" do | |
action :install | |
end | |
service "httpd" do | |
action [:enable, :start] | |
end | |
template "/var/www/html/index.html" do | |
source "index.html.erb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello World!</h1> | |
<p>My IP address is <%= node['ipaddress'] %></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default['apache']['greeting'] = "Earth" |
OlderNewer