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
/Users/elonbarevan/chef-repo/data_bags/users --> cat frank.json | |
{ | |
"id":"frank", | |
"comment":"Frank Belson", | |
"uid":"2001", | |
"gid":"0", | |
"home":"/home/frank", | |
"shell":"/bin/bash" | |
} |
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
opscode@domU-12-31-39-09-C5-DF:~$ sudo chef-client | |
[sudo] password for opscode: | |
Starting Chef Client, version 11.8.2 | |
resolving cookbooks for run list: ["apache", "motd", "users"] | |
Synchronizing Cookbooks: | |
- apache | |
- motd | |
- pci | |
- users | |
Compiling Cookbooks... |
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
package "apache2" | |
service "apache2" do | |
action [ :enable, :start ] | |
end | |
aardir = "Chef::Config[:file_cache_path]" | |
aarfile = "#{aardir}/master.zip" | |
aarapp = "Awesome-Appliance-Repair-master" |
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
# NOTE: The instructions are below in the Apache code, surrounded by hash (#) symbols.# | |
# When replacing instructions with a variable, remove the comments, including the hash symbols # | |
# Please remove these instructions too!# | |
<% if @port != 80 -%> #this line is an example of what to do below# | |
Listen <%= #put_port_variable_here# %> #the ruby evaluation tags are correct, but you need to put in the 'port' variable# | |
<% end -%> | |
<VirtualHost *:#put_port_variable_here# > #replace the 'port' variable, including ruby evaluation tags to print the value# | |
ServerAdmin webmaster@localhost |
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
Listen 81 | |
<VirtualHost *:81> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /srv/apache/bears | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> |
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
Daniel Smith | |
52.6.88.187 | |
Eric Franson | |
52.6.88.183 | |
Gert van Emmenes | |
52.6.87.136 |
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
Chris 1 | 52.91.174.60 | | |
Chris 2 | 54.84.57.117 | | |
Chris 3 | 52.91.159.88 | | |
======================================================== | |
Matt 1 | 54.175.248.60 | | |
Matt 2 | 54.175.248.5 | | |
Matt 3 | 54.175.248.50 | | |
======================================================== | |
Drew 1 | 54.175.247.242 | | |
Drew 2 | 54.175.247.197 | |