Add a base role, so that chef is updated before anything else

This commit is contained in:
Greg 2019-04-08 17:38:07 +02:00
parent fddadbce25
commit 12355a6b27
3 changed files with 20 additions and 6 deletions

6
roles/base.rb Normal file
View File

@ -0,0 +1,6 @@
name "base"
run_list %w(
kosmos-base::chef_client
kosmos-base::default
)

View 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

View File

@ -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'