Sha256: 1b22e844af297a56be5b8376c72aefc17b7c4269ba5864fc817e261382251ecc

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

include_recipe "apache2"

if node['apache']['mod_auth_cas']['from_source']

  package "httpd-devel" do
    package_name value_for_platform_family(
      ["rhel", "fedora", "suse"] => "httpd-devel",
      "debian" => "apache2-dev"
    )
  end

  git '/tmp/mod_auth_cas' do
    repository 'git://github.com/Jasig/mod_auth_cas.git'
    revision node['apache']['mod_auth_cas']['source_revision']
    notifies :run, 'execute[compile mod_auth_cas]', :immediately
  end

  execute 'compile mod_auth_cas' do
    command './configure && make && make install'
    cwd '/tmp/mod_auth_cas'
    not_if "test -f #{node['apache']['libexecdir']}/mod_auth_cas.so"
  end

  template "#{node['apache']['dir']}/mods-available/auth_cas.load" do
    source 'mods/auth_cas.load.erb'
    owner 'root'
    group node['apache']['root_group']
    mode 00644
  end

else
  case node['platform_family']
  when "debian"

    package "libapache2-mod-auth-cas"

  when "rhel", "fedora"

    yum_package "mod_auth_cas" do
      notifies :run, "execute[generate-module-list]", :immediately
    end

    file "#{node['apache']['dir']}/conf.d/auth_cas.conf" do
      action :delete
      backup false
    end

  end
end

apache_module 'auth_cas' do
  conf true
end

directory "#{node['apache']['cache_dir']}/mod_auth_cas" do
  owner node['apache']['user']
  group node['apache']['group']
  mode 00700
end

Version data entries

4 entries across 3 versions & 3 rubygems

Version Path
agile_solo-0.1.0 spec/chef_repo/cookbooks/apache2/recipes/mod_auth_cas.rb
vagrant-managed-servers-0.1.0 cookbooks/apache2/recipes/mod_auth_cas.rb
vagrant-openstack-0.0.4 tmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/apache2/version-uri/a7ab7e6a4c7e38e585540241cf05880e/package/recipes/mod_auth_cas.rb
vagrant-openstack-0.0.4 cookbooks/apache2/recipes/mod_auth_cas.rb