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
{
"containerDefinitions": [
{
"essential": true,
"image": "vmware/harbor-adminserver:v1.2.0-rc1",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "adminserver"
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"administratorLogin": {
"type": "string"
},
"administratorLoginPassword": {
"type": "securestring"
},
[root@0a39fecac62c packer-templates]# PACKER_LOG=1 packer build --only=vmware-iso rhel73.json
2017/04/27 18:36:33 [INFO] Packer version: 1.0.0
2017/04/27 18:36:33 Packer Target OS/Arch: linux amd64
2017/04/27 18:36:33 Built with Go Version: go1.8
2017/04/27 18:36:33 Detected home directory from env var: /root
2017/04/27 18:36:33 Using internal plugin for triton
2017/04/27 18:36:33 Using internal plugin for virtualbox-ovf
2017/04/27 18:36:33 Using internal plugin for cloudstack
2017/04/27 18:36:33 Using internal plugin for docker
2017/04/27 18:36:33 Using internal plugin for null
[root@docker-tc packer-templates]# PACKER_LOG=1 packer build --only=vmware-iso rhel73.json
2017/04/26 22:01:50 [INFO] Packer version: 1.0.0
2017/04/26 22:01:50 Packer Target OS/Arch: linux amd64
2017/04/26 22:01:50 Built with Go Version: go1.8
2017/04/26 22:01:50 Detected home directory from env var: /root
2017/04/26 22:01:50 Using internal plugin for amazon-ebssurrogate
2017/04/26 22:01:50 Using internal plugin for cloudstack
2017/04/26 22:01:50 Using internal plugin for profitbricks
2017/04/26 22:01:50 Using internal plugin for amazon-instance
2017/04/26 22:01:50 Using internal plugin for null
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzI
w+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoP
kcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2
hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NO
Td0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcW
yLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQIBIwKCAQEA4iqWPJXtzZA68mKd
ELs4jJsdyky+ewdZeNds5tjcnHU5zUYE25K+ffJED9qUWICcLZDc81TGWjHyAqD1
Bw7XpgUwFgeUJwUlzQurAv+/ySnxiwuaGJfhFM1CaQHzfXphgVml+fZUvnJUTvzf
TK2Lg6EdbUE9TarUlBf/xPfuEhMSlIE5keb/Zz3/LUlRg8yDqz5w+QWVJ4utnKnK
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
#Turn Hyper-V off
bcdedit /set hypervisorlaunchtype off
# Turn Hyper-V on
bcdedit /set hypervisorlaunchtype auto
@ram-devsecops
ram-devsecops / Dockerfile
Last active April 5, 2017 20:32
Dockerfile for rancher
FROM registry.access.redhat.com/rhel
RUN rpm --import http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems
RUN curl -o /etc/yum.repos.d/zulu.repo http://repos.azulsystems.com/rhel/zulu.repo
RUN yum -q -y update
RUN yum -q -y install zulu-8-8.13.0.5-1
RUN rpm --import http://wiki.psychotic.ninja/RPM-GPG-KEY-psychotic && \
rpm -ivh http://packages.psychotic.ninja/5/base/i386/RPMS/psychotic-release-1.0.0-1.el5.psychotic.noarch.rpm
RUN yum --enablerepo=psychotic install keychain -y
@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.
#
@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.