Add a base role, so that chef is updated before anything else
This commit is contained in:
14
site-cookbooks/kosmos-base/recipes/chef_client.rb
Normal file
14
site-cookbooks/kosmos-base/recipes/chef_client.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
#
|
||||
# Cookbook Name:: kosmos-base
|
||||
# Recipe:: chef_client
|
||||
#
|
||||
# Copyright 2019, Kosmos
|
||||
#
|
||||
# All rights reserved - Do Not Redistribute
|
||||
#
|
||||
|
||||
# Update chef to the chosen version
|
||||
chef_version = '14.11.21'
|
||||
chef_client_updater "Install #{chef_version}" do
|
||||
version chef_version
|
||||
end
|
||||
@@ -11,12 +11,6 @@ include_recipe 'apt'
|
||||
include_recipe 'timezone_iii'
|
||||
include_recipe 'ntp'
|
||||
|
||||
# Update chef to the chosen version
|
||||
chef_version = '14.11.21'
|
||||
chef_client_updater "Install #{chef_version}" do
|
||||
version chef_version
|
||||
end
|
||||
|
||||
package 'mailutils'
|
||||
package 'mosh'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user