if [ -f /etc/lsb-release ]; then
  curl -o chefdk.deb https://packages.chef.io/files/stable/chefdk/2.4.17/ubuntu/16.04/chefdk_2.4.17-1_amd64.deb
  dpkg -i chefdk.deb
elif [ -f /etc/redhat-release ]; then
  curl -o chefdk.rpm https://packages.chef.io/files/stable/chefdk/1.6.11/el/7/chefdk-1.6.11-1.el7.x86_64.rpm
  rpm -Kvv --nosignature chefdk.rpm
  rpm -ivh chefdk.rpm
else echo "We could not detect your OS type, cannot install chefdk!"
fi

if [ -f /etc/lsb-release ]; then
    curl -o chefdk.deb https://packages.chef.io/files/stable/chefdk/3.0.36/ubuntu/16.04/chefdk_3.0.36-1_amd64.deb
    dpkg -i chefdk.deb
elif [ -f /etc/redhat-release ]; then
    curl -o chefdk.rpm https://packages.chef.io/files/stable/chefdk/3.0.36/el/7/chefdk-3.0.36-1.el7.x86_64.rpm
    rpm -Kvv --nosignature chefdk.rpm
    rpm -ivh chefdk.rpm
else echo "We could not detect your OS type, cannot install chefdk!"
fi

Use newer ChefDK version 3.0.36
Use newer ChefDK version 3.0.36


Former-commit-id: 7211ee30b789a60f64b4a4d14a6b125d8cf87210