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
<html> | |
<body> | |
<h1>Welcome to <%= node["motd"]["company"] %></h1> | |
<h2>We love <%= @site_name %></h2> | |
<%= node["ipaddress"] %>:<%= @port %> | |
</body> | |
</html> |
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" | |
description "Web Server" | |
run_list "recipe[apache]" | |
default_attributes({ | |
"apache" => { | |
"sites" => { | |
"admin" => { | |
"port" => 8000 | |
} | |
} |
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" | |
description "Web Server" | |
run_list "recipe[apache]" | |
default_attributes({ | |
"apache" => { | |
"sites" => { | |
"admin" => { | |
"port" => 8000 | |
}, | |
"bears" => { |
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 "dev" | |
description "For developers!" | |
cookbook "apache", "= 0.2.0" |
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 "production" | |
description "For Prods!" | |
cookbook "apache", "= 0.1.0" | |
override_attributes({ | |
"pci" => { | |
"in_scope" => true | |
} | |
}) |
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
{ | |
"id": "bobo", | |
"comment": "Bobo T. Clown", | |
"uid": 2000, | |
"gid": 0, | |
"home": "/home/bobo", | |
"shell": "/bin/bash" | |
} |
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
{ | |
"id": "frank", | |
"comment": "Frank Belson", | |
"uid": 2001, | |
"gid": 0, | |
"home": "/home/frank", | |
"shell": "/bin/bash" | |
} |
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
{ | |
"id": "clowns", | |
"gid": 3000, | |
"members": ["bobo", "frank"] | |
} |
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
# | |
# Cookbook Name:: users | |
# Recipe:: default | |
# | |
# Copyright (c) 2016 The Authors, All Rights Reserved. | |
search("users", "*:*").each do |user_data| | |
user user_data["id"] do | |
comment user_data["comment"] | |
uid user_data["uid"] |
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
search("groups", "*:*").each do |group_data| | |
group group_data["id"] do | |
gid group_data["gid"] | |
members group_data["members"] | |
end | |
end |