Created
March 28, 2012 22:03
-
-
Save pcn/2230952 to your computer and use it in GitHub Desktop.
patch knewton bootstrap
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
diff --git a/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb b/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb | |
index fcbba02..9ac69b3 100644 | |
--- a/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb | |
+++ b/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb | |
@@ -237,6 +237,10 @@ service chef-client stop | |
service chef-client disable | |
<%- if (@config[:bootstrap_runs_chef_client].to_s == 'true') || (@chef_config.knife[:bootstrap_runs_chef_client].to_s == 'true') %> | |
+if [ "$APT_UPDATED" != "yes" ] ; then | |
+ echo -e "`date` \n\n**** \n**** apt update:\n****\n" | |
+ (apt-get -y update && APT_UPDATED=yes ) 2>&1 | throttle_verbosity | |
+fi | |
echo -e "`date` \n\n**** \n**** First run of chef:\n****\n" | |
set -e | |
<%= start_chef %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment