Add a base role, so that chef is updated before anything else
This commit is contained in:
parent
fddadbce25
commit
12355a6b27
6
roles/base.rb
Normal file
6
roles/base.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
name "base"
|
||||||
|
|
||||||
|
run_list %w(
|
||||||
|
kosmos-base::chef_client
|
||||||
|
kosmos-base::default
|
||||||
|
)
|
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 'timezone_iii'
|
||||||
include_recipe 'ntp'
|
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 'mailutils'
|
||||||
package 'mosh'
|
package 'mosh'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user