Add ntp package and don't run most kosmos-base things in development
This commit is contained in:
parent
26097197ca
commit
5534b57752
@ -14,3 +14,4 @@ depends 'hostname'
|
|||||||
depends 'firewall'
|
depends 'firewall'
|
||||||
depends 'chef_client_updater'
|
depends 'chef_client_updater'
|
||||||
depends 'timezone-ii'
|
depends 'timezone-ii'
|
||||||
|
depends 'ntp'
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
include_recipe 'apt'
|
include_recipe 'apt'
|
||||||
include_recipe 'timezone-ii'
|
include_recipe 'timezone-ii'
|
||||||
|
include_recipe 'ntp'
|
||||||
|
|
||||||
# Update chef to the chosen version
|
# Update chef to the chosen version
|
||||||
chef_version = '12.19.36'
|
chef_version = '12.19.36'
|
||||||
@ -39,29 +40,29 @@ unless node.chef_environment == "development"
|
|||||||
]
|
]
|
||||||
node.override['authorization']['sudo']['passwordless'] = true
|
node.override['authorization']['sudo']['passwordless'] = true
|
||||||
include_recipe 'sudo'
|
include_recipe 'sudo'
|
||||||
end
|
|
||||||
|
|
||||||
include_recipe 'kosmos-postfix'
|
include_recipe 'kosmos-base::firewall'
|
||||||
|
|
||||||
node.override['set_fqdn'] = '*'
|
include_recipe 'kosmos-postfix'
|
||||||
include_recipe 'hostname'
|
|
||||||
|
|
||||||
include_recipe 'kosmos-base::firewall'
|
node.override['set_fqdn'] = '*'
|
||||||
|
include_recipe 'hostname'
|
||||||
|
|
||||||
package 'ca-certificates'
|
package 'ca-certificates'
|
||||||
|
|
||||||
directory '/usr/local/share/ca-certificates/cacert' do
|
directory '/usr/local/share/ca-certificates/cacert' do
|
||||||
action :create
|
action :create
|
||||||
end
|
end
|
||||||
|
|
||||||
['http://www.cacert.org/certs/root.crt', 'http://www.cacert.org/certs/class3.crt'].each do |cert|
|
['http://www.cacert.org/certs/root.crt', 'http://www.cacert.org/certs/class3.crt'].each do |cert|
|
||||||
remote_file "/usr/local/share/ca-certificates/cacert/#{File.basename(cert)}" do
|
remote_file "/usr/local/share/ca-certificates/cacert/#{File.basename(cert)}" do
|
||||||
source cert
|
source cert
|
||||||
action :create_if_missing
|
action :create_if_missing
|
||||||
notifies :run, 'execute[update-ca-certificates]', :immediately
|
notifies :run, 'execute[update-ca-certificates]', :immediately
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
execute 'update-ca-certificates' do
|
||||||
|
action :nothing
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
execute 'update-ca-certificates' do
|
|
||||||
action :nothing
|
|
||||||
end
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user