Skip to content

Instantly share code, notes, and snippets.

@powdahound
Created June 9, 2010 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save powdahound/432208 to your computer and use it in GitHub Desktop.
Save powdahound/432208 to your computer and use it in GitHub Desktop.
#
# Author:: David Abdemoulaie <opscode@hobodave.com>
# Cookbook Name:: chef
# Attributes:: server_proxy
#
# Copyright 2009, David Abdemoulaie
#
# 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.
set_unless[:chef][:doc_root] = "#{languages[:ruby][:gems_dir]}/gems/chef-server-webui-#{chef[:server_version]}/public"
set_unless[:chef][:server_ssl_req] = "/C=US/ST=Several/L=Locality/O=Example/OU=Operations/" +
"CN=#{chef[:server_fqdn]}/emailAddress=ops@#{chef[:server_fqdn]}"
set_unless[:chef][:server_proxy][:css_expire_hours] = "120"
set_unless[:chef][:server_proxy][:js_expire_hours] = "24"
Chef::Log.warn("Overriding chef server_proxy attributes - done")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment