This file contains hidden or 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 "production" | |
| description "For Prods!" | |
| cookbook "apache", "= 0.1.0" | |
| override_attributes({ | |
| "pci" => { | |
| "in_scope" => true | |
| } | |
| }) |
This file contains hidden or 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 "dev" | |
| description "For developers!" | |
| cookbook "apache", "= 0.2.0" |
This file contains hidden or 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" | |
| description "Web Server" | |
| run_list "recipe[apache]" | |
| default_attributes({ | |
| "apache" => { | |
| "sites" => { | |
| "admin" => { | |
| "port" => 8000 | |
| }, | |
| "bears" => { |
This file contains hidden or 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" | |
| description "Web Server" | |
| run_list "recipe[apache]" | |
| default_attributes({ | |
| "apache" => { | |
| "sites" => { | |
| "admin" => { | |
| "port" => 8000 | |
| } | |
| } |
This file contains hidden or 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
| <html> | |
| <body> | |
| <h1>Welcome to <%= node["motd"]["company"] %></h1> | |
| <h2>We love <%= @site_name %></h2> | |
| <%= node["ipaddress"] %>:<%= @port %> | |
| </body> | |
| </html> |
This file contains hidden or 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
| <% if @port != 80 -%> | |
| Listen <%= @port %> | |
| <% end -%> | |
| <VirtualHost *:<%= @port %>> | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot <%= @document_root %> | |
| <Directory /> | |
| Options FollowSymLinks |
This file contains hidden or 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
| # | |
| # Cookbook Name:: apache | |
| # Recipe:: default | |
| # | |
| # Copyright (c) 2016 The Authors, All Rights Reserved. | |
| package "apache2" do | |
| action :install | |
| end |
This file contains hidden or 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
| This server is property of <%= node["motd"]["company"] %> | |
| <% if node["pci"]["in_scope"] -%> | |
| This server is in-scope for PCI compliance | |
| <% end -%> |
This file contains hidden or 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
| # | |
| # Cookbook Name:: motd | |
| # Recipe:: default | |
| # | |
| # Copyright (c) 2016 The Authors, All Rights Reserved. | |
| template "/etc/motd" do | |
| source "motd.erb" | |
| mode "0644" | |
| end |
This file contains hidden or 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
| <html> | |
| <body> | |
| <h1>Hello, world!</h1> | |
| </body> | |
| </html> |