This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
secret = Chef::EncryptedDataBagItem.load_secret("#{node['diw']['base']['secrets']}") | |
require 'net/ssh' | |
key = OpenSSL::PKey::RSA.new(4096) | |
private_key = key.to_pem | |
public_key = "#{key.ssh_type} #{[key.to_blob].pack('m0')}" | |
jenkins_keys = { | |
"id" => "#{node[:hostname]}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: wrapper-nginx | |
# Attributes:: default | |
# | |
default['nginx']['openssl_source']['version'] = '1.0.1g' | |
default['nginx']['default_site_enabled'] = false | |
default['nginx']['disable_access_log'] = true | |
default['nginx']['gzip'] = 'on' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define :memcached_instance do | |
include_recipe "runit" | |
include_recipe "memcached" | |
opts = params | |
runit_service "memcached-#{params[:name]}" do | |
run_template_name "memcached" | |
default_logger true | |
cookbook "memcached" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgs.flatten.each do |pkg| | |
r = package pkg do | |
action( node['build_essential']['compiletime'] ? :nothing : :install ) | |
end | |
r.run_action(:install) if node['build_essential']['compiletime'] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<servicing></servicing> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<DiskConfiguration> | |
<Disk wcm:action="add"> | |
<CreatePartitions> | |
<CreatePartition wcm:action="add"> | |
<Order>1</Order> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if provider | |
# Verify that the given provider matches what the box has. | |
if box_provider.to_sym != provider | |
@logger.error("Added box provider doesnt match expected: #{box_provider}") | |
raise Errors::BoxProviderDoesntMatch, :expected => provider, :actual => box_provider | |
end | |
else | |
# We weren't given a provider, so store this one. | |
provider = box_provider.to_sym |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.require_plugin "vagrant-windows" | |
win2k8_servers = { | |
:www => { | |
:hostname => "www", | |
:rdp_port => 3390, | |
:winrm_port => 5986 | |
}, | |
:api => { | |
:hostname => "api", |
NewerOlder