This file contains 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
{ | |
"SiteName": "test.internal-api_com", | |
"ParentFolder": "C:\\_ot\\web\\internal-api_com", | |
"SiteHostHeader": "test.internalapi.com", | |
"Hosts": [ | |
{ | |
"Name": "test.internalapi.com", | |
"IP": "127.0.0.1" | |
}, | |
{ |
This file contains 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
class hosts { | |
file { 'hosts': | |
ensure => file, | |
path => 'c:/windows/system32/drivers/etc', | |
source => 'puppet:///modules/hosts/hosts', | |
notify => Exec['flush_dns'], | |
} | |
exec { 'flush_dns': |
This file contains 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
class hosts { | |
host { 'www.mysite.com': | |
ip => '127.0.0.1', | |
host_aliases => [ 'mysite.com', 'secure.mysite.com' ], | |
notify => Exec['flush_dns'], | |
} | |
exec { 'flush_dns': | |
command => 'powershell.exe -executionpolicy unrestricted -Command "C:\windows\system32\ipconfig.exe /flushdns"', |
This file contains 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
class disable_windows_firewall { | |
service { 'MpsSvc': | |
ensure => 'stopped', | |
} | |
} |
This file contains 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
class application_7zip { | |
case $::architecture { | |
'x64': { | |
$file_name = '7z922-x64.msi' | |
$exe_filepath = 'C:\Program Files\7-Zip\7z.exe' | |
} | |
'x86', default: { | |
$file_name = '7z922.msi' | |
$exe_filepath = 'C:\Program Files (x86)\7-Zip\7z.exe' |
This file contains 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
class install_my_certificate { | |
manage_sslcertificate{ "Mycert.co.uk": { | |
password => "my cert password", | |
certificate_location => "c:\path to cert", | |
cert_root_store => "LocalMachine", | |
cert_store_dir => "My" | |
} | |
} |
This file contains 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
Write-Output ("##teamcity[buildNumber '" + $OT_BRANCHTAG +"_" + $OT_VERSION + "']") |
This file contains 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
==> vmware: Deleting output directory... | |
Build 'vmware' errored: remove output-vmware/packer-vmware.plist: no such file or directory | |
==> Some builds didn't complete successfully and had errors: | |
--> vmware: remove output-vmware/packer-vmware.plist: no such file or directory | |
==> Builds finished but no artifacts were created. |
This file contains 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
exec { "prepare AD for exchange": | |
command => template('msexchange/ad_prep.ps1.erb'), | |
provider => powershell, | |
#onlyif => '' -- determin if this has already run? What if an existing exch is in the domain? What if you run it twice? | |
} |
This file contains 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
describe 'when downloading a file using a proxy server we want to check that the erb gets evaluated correctly' do | |
let(:title) {'Download DotNet 4.0'} | |
let(:params) { { :url => 'http://myserver.com/test.exe', :destination => 'c:\temp', :proxyAddress => 'test-proxy-01:8888' } } | |
it { should contain_file('download-test.exe.ps1').with_content( | |
"$webclient = New-Object System.Net.WebClient | |
$proxyAddress = 'test-proxy-01:8888' | |
if ($proxyAddress -ne '') { | |
if (!$proxyAddress.StartsWith('http://')) { | |
$proxyAddress = 'http://' + $proxyAddress |