krb5.rb 1.16 KB
Newer Older
m.pausch's avatar
m.pausch committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# Cookbook Name:: sys
# Recipe:: krb5
#
# Copyright 2013, Matthias Pausch
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

m.pausch's avatar
m.pausch committed
20
unless node['sys']['krb5'].empty?
m.pausch's avatar
m.pausch committed
21
  %w(
m.pausch's avatar
m.pausch committed
22
    heimdal-docs
m.pausch's avatar
m.pausch committed
23
24
25
    heimdal-clients
    libpam-heimdal
    libsasl2-modules-gssapi-heimdal
26
    kstart
m.pausch's avatar
m.pausch committed
27
28
  ).each { |p| package p }

29
30
31
32
33
  template "/etc/krb5.conf" do
    helpers(Sys::Harry)
    source "etc_krb5.conf_generic.erb"
    mode "0644"
    variables(:sections => node['sys']['krb5']['krb5.conf'])
34
    only_if { node['sys']['krb5']['krb5.conf'] }
m.pausch's avatar
m.pausch committed
35
  end
36

37
# unless node['debian']['codename'].eql?('stretch') 
38
  package "wallet-client"
39
40
# end
  
41
42
  sys_wallet "host/#{node['fqdn']}" do
    place "/etc/krb5.keytab"
43
  end
44

m.pausch's avatar
m.pausch committed
45
end