Skip to content

Commit

Permalink
Update chef install script
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwcole committed May 1, 2022
1 parent c626d67 commit 669e616
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion templates/user_data/chef_bootstrap.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ do_download() {
return 16
}

install_sh="https://www.opscode.com/chef/install.sh"
install_sh="https://omnitruck.chef.io/install.sh"
if ! exists /usr/bin/chef-client || ! chef-client -v | grep "^Chef: <%= @chef_version %>$" >/dev/null; then
echo "-----> Installing Chef Omnibus (-v <%= @chef_version %>)"
do_download ${install_sh} $tmp_dir/install.sh
Expand All @@ -187,6 +187,7 @@ log_location STDOUT
node_name "<%= ref('AWS::StackName') %>"
chef_server_url "<%= @chef_server_url %>"
validation_client_name "<%= @chef_validation_client_name %>"
chef_license accept
EOP

cat > /etc/chef/first-boot.json <<EOP
Expand Down
2 changes: 1 addition & 1 deletion templates/user_data/ubuntu_init.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

apt-get update
apt-get -y install python3-pip
apt-get install -y python3-pip curl
pip3 install pystache==0.5.4 # https://www.reddit.com/r/aws/comments/rcpeft/awscfnbootstrap_pip_install_broken_by_new/
pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-2.0-6.tar.gz

0 comments on commit 669e616

Please sign in to comment.