The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| #!/bin/bash | |
| # User data to configure a vanilla Ubuntu EC2 instance. | |
| # Installs chef-client (with minimal dependencies), | |
| # configures chef, and adds roles | |
| test $UID == 0 || (echo "Error: must run as root"; exit 1) | |
| ######### STEP 1: OPERATING SYSTEM CONFIGURATION | |
| BOOTLOG="/var/log/bootstrap.log" |
I hereby claim:
To claim this, I am signing this object:
| traceroute to ldc52e.clearspring.com (8.37.70.145), 30 hops max, 60 byte packets | |
| 1 ip-10-0-0-0.us-west-1.compute.internal (10.0.0.0) 0.211 ms 0.175 ms 0.167 ms | |
| 2 ip-10-0-0-0.us-west-1.compute.internal (10.0.0.0) 0.163 ms 0.129 ms 0.112 ms | |
| 3 * * * | |
| 4 * * * | |
| 5 * * * | |
| 6 * * * | |
| 7 100.64.78.174 (100.64.78.174) 3.735 ms 100.64.79.134 (100.64.79.134) 0.924 ms 100.64.78.164 (100.64.78.164) 3.689 ms | |
| 8 100.64.89.208 (100.64.89.208) 0.416 ms 100.64.91.242 (100.64.91.242) 0.393 ms 100.64.92.50 (100.64.92.50) 0.425 ms | |
| 9 100.64.200.49 (100.64.200.49) 9.027 ms 100.64.200.35 (100.64.200.35) 17.626 ms 100.64.200.19 (100.64.200.19) 1.345 ms |
| directories = %w( /dir/one /dir/two /dir/three ) | |
| directories.each do |dir| | |
| directory dir do | |
| owner "foo" | |
| mode 0755 | |
| end | |
| end |
| line = '127.0.0.1 gateway.internal gateway' | |
| file = Chef::Util::FileEdit.new('/etc/hosts') | |
| file.insert_line_if_no_match(/#{line}/, line) | |
| file.write_file |
| [microwaving] | |
| Microwaving is an action applying to one thing. | |
| Understand "microwave [something]" as microwaving. | |
| Understand "cook [something]" as microwaving. | |
| Understand "heat [something]" as microwaving. | |
| Understand "reheat [something]" as microwaving. | |
| Check microwaving: | |
| Unless the microwave oven is in the location, say "How do you propose to do that?" instead; | |
| Unless the microwave is empty: |
| "test" by "custo" | |
| Combining it with is an action applying to two carried things. | |
| Understand "combine [something] and [something]" as combining it with. | |
| Understand "combine [something] with [something]" as combining it with. | |
| Understand the command "attach" as something new. Understand "attach [something] to [something]" as combining it with. | |
| The combining it with action has an object called the item built. | |
| Setting action variables for combining something with something: |
| [microwaving] | |
| Microwaving is an action applying to one thing. | |
| Understand "microwave [something]" as microwaving. | |
| Understand "cook [something]" as microwaving. | |
| Understand "heat [something]" as microwaving. | |
| Understand "reheat [something]" as microwaving. | |
| Check microwaving: | |
| Unless the microwave oven is in the location, say "How do you propose to do that?" instead; | |
| Unless the microwave is empty: |
| "SubMap" by "The Custodian" | |
| When play begins, say "Welcome to a super-sketchy notional Los Angeles Class attack submarine, the USS Aardvark!" | |
| Chapter 0 - Setup | |
| Forward is a direction. The opposite of forward is aft. | |
| Index map with Forward mapped as east. | |
| Aft is a direction. The opposite of aft is forward. | |
| Index map with aft mapped as west. |