Skip to content

Instantly share code, notes, and snippets.

View ram-devsecops's full-sized avatar

Ram Reddy ram-devsecops

  • EITS
  • United States
View GitHub Profile
Write-Host "About to download http://nuget.xxxx.org/puppet/SQLServer2014SP1-FullSlipstream-x64-ENU.iso into ${env:temp}\sqlserver2014.iso "
Get-ChocolateyWebFile 'sqlserverstandard' "C:\Windows\Temp\sqlserver2014.iso" 'http://nuget.xxxx.org/puppet/SQLServer2014SP1-FullSlipstream-x64-ENU.iso'
Write-Host "downloaded, now mounting..."
function Test-Windows8orGreater
{
$osVersion = [Environment]::OSVersion.Version
return $osVersion -ge (new-object 'Version' 6,2)
}
2016-01-22 12:45:10,858 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-01-22 12:45:10,858 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-01-22 12:45:10,909 [DEBUG] - XmlConfiguration is now operational
2016-01-22 12:45:11,330 [INFO ] - 0.9.9.8
2016-01-22 12:45:26,942 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-01-22 12:45:26,942 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-01-22 12:45:26,973 [DEBUG] - XmlConfiguration is now operational
2016-01-22 12:45:27,276 [INFO ] - 0.9.9.8
2016-01-22 12:45:27,826 [DEBUG] - Configured chocolatey.infr
2016-02-05 13:04:33,676 [DEBUG] - Exiting with 0
2016-02-05 13:05:54,769 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-02-05 13:05:54,769 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-02-05 13:05:54,816 [DEBUG] - XmlConfiguration is now operational
2016-02-05 13:05:55,066 [INFO ] - 0.9.9.8
2016-02-05 13:06:16,316 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-02-05 13:06:16,316 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-02-05 13:06:16,348 [DEBUG] - XmlConfiguration is now operational
2016-02-05 13:06:16,598 [INFO ] - 0.9.9.8
try {
Get-ChocolateyWebFile 'sqlserverstandard' "$env:temp\sqlserver2012.iso" 'http://nuget.xxxx.org/puppet/en_sql_server_2012_standard_edition_with_service_pack_2_x64_dvd_4692562.iso'
imdisk -a -f "$env:temp\sqlserver2012.iso" -m "w:"
Install-ChocolateyInstallPackage 'sqlserverstandard' 'exe' '' 'w:\Setup.exe'
imdisk -d -m w:
Write-ChocolateySuccess 'sqlserverstandard'
}
catch {
Write-ChocolateyFailure 'sqlserverstandard'
}
;SQL Server 2012 Configuration File
[OPTIONS]
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter.
ACTION="Install"
; Detailed help for command line argument ENU has not been defined yet.
ENU="True"
``` WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
WARNING: The names of some imported commands from the module 'chocolateysetup'
include unapproved verbs that might make them less discoverable. To find the
commands with unapproved verbs, run the Import-Module command again with the
Verbose parameter. For a list of approved verbs, type Get-Verb.
# =====================================================================
# Copyright 2011 - Present RealDimensions Software, LLC, and the
# original authors/contributors from ChocolateyGallery
# at https://github.com/chocolatey/chocolatey.org
#
# 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
ar 13 12:06:51 harbor-registry docker-current/registry[7716]: time="2017-03-13T16:06:51.213370169Z" level=debug msg="authorizing request" go.version=go1.7.4 http.request.host=10.0.10.18 http.request.id=b1a7141e-73f5-4a98-856f-3a638139380d http.request.method=HEAD http.request.remoteaddr=10.0.10.18 http.request.uri="/v2/library/dotnet/blobs/sha256:c59037c90022d2c3da59c76901bc23e65f3d0ade09bbc122b7df926032b76a9a" http.request.useragent="docker/1.10.3 go/go1.6.2 git-commit/429be27-unsupported kernel/3.10.0-327.el7.x86_64 os/linux arch/amd64" instance.id=11fe999c-574f-4a33-91d3-b6d9f3eab267 service=registry vars.digest="sha256:c59037c90022d2c3da59c76901bc23e65f3d0ade09bbc122b7df926032b76a9a" vars.name="library/dotnet" version="v2.6.0+unknown"
Mar 13 12:06:51 harbor-registry docker-current/registry[7716]: time="2017-03-13T16:06:51.213720637Z" level=debug msg=GetBlob auth.user.name=admin go.version=go1.7.4 http.request.host=10.0.10.18 http.request.id=b1a7141e-73f5-4a98-856f-3a638139380d http.request.method=HEAD ht
@ram-devsecops
ram-devsecops / README.md
Created April 1, 2017 18:34 — forked from lusis/README.md
terraform template to generate serverspec properties

This uses terraform's template_file resource to generate a yaml properties file for serverspec to use.

  • create the Rakefile in your terraform project root
  • create a spec directory and put spec_helper.rb in it
  • create the templates/properties.tmpl.yml file
  • create the serverspec.tf
  • terraform apply

tests

Tests will be matched based on roles defined for a given node.

@ram-devsecops
ram-devsecops / gist:ca6bee3e2cadb1518ef9e0d908833fc4
Created April 4, 2017 21:29 — forked from stevenkuhn/gist:5062660
This PowerShell script generates release notes for Octopus Deploy that contain the GitHub commits and JIRA issues from the current build to the latest production release. It will also create the Octopus release based on the TeamCity build number.
#
# Assumptions
#
# 1. If you have a Octopus release deployed, say 1.0.0.73, there is a git
# tag set for that commit in GitHub that is "v1.0.0.73".
#
# 2. You have TeamCity label each successful build in GitHub with the format
# "v{build number}. Sidenote: it appears that TeamCity only labels the
# default branch, but not feature branches.
#