Command line tool, that provides basic vCO package import and export operations. As source or target it can have either .package file, or directory.
java <java-parameters> -jar PackageToolCli.jar <command> <command-parameters>
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
$Record = Get-DnsServerResourceRecord -ZoneName mydomain.local -Name mail -RRType CName | |
$NewRecord = $Record.Clone() | |
$NewRecord.RecordData.HostNameAlias = 'smtp.mydomain.com' | |
Set-DnsServerResourceRecord -ZoneName mydomain.local -OldInputObject $Record -NewInputObject $NewRecord |
continue | |
dir=/var/www/downloads | |
file-allocation=falloc | |
max-connection-per-server=4 | |
max-concurrent-downloads=2 | |
max-overall-download-limit=0 | |
min-split-size=25M | |
rpc-allow-origin-all=true | |
rpc-secret=YouShouldChangeThis | |
input-file=/var/tmp/aria2c.session |
SHELL := /bin/bash | |
REV := $(shell git rev-parse HEAD) | |
CHANGES := $(shell test -n "$$(git status --porcelain)" && echo '+CHANGES' || true) | |
TARGET := packer-provisioner-itamae-local | |
VERSION := $(shell cat VERSION) | |
OS := darwin freebsd linux openbsd | |
ARCH := 386 amd64 |
#!/usr/bin/env python | |
""" | |
Read VM Attributes from OVF file. | |
Helps to quickly recreate VM in another Virtualization Platform. | |
Usage : python ovfreader.py <path-to-ovf-file> or | |
python ovfreader.py (Will read first ovf file in current dir) | |
""" | |
__author__ = "Rajiv Vishwa" |
# AWS Version 4 signing example | |
# | |
# Example: | |
# Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/iam/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924a6f2b5d7 | |
# Formulae: | |
# CanonicalRequest = | |
# HTTPRequestMethod + '\n' + | |
# CanonicalURI + '\n' + | |
# CanonicalQueryString + '\n' + |
// VMware vRealize Orchestrator action sample | |
// | |
// Executes a transient RESTOperation for a transient RESTHost. | |
// Performs the operation without having the operation nor the host persist in the RESTHost Inventory. | |
// Returns the response string and status code as named key-value pairs "responseString" and "statusCode", respectively. | |
// | |
// For vRO 7.0+ | |
// | |
// Action Inputs: | |
// baseUrl - string - Base URL for connecting to the RESTful application |
// VMware vRealize Orchestrator action sample | |
// | |
// This sample assigns a vCenter Tag to a VM | |
// | |
// For vRO/VAPI 7.0+ | |
// | |
// Action Inputs: | |
// endpoint - VAPIEndpoint - VAPI Endpoint | |
// tagId - string - ID of the vCenter Tag | |
// vm - VC:VirtualMachine - VM to which tag will be assigned |
// VMware vRealize Orchestrator action sample | |
// | |
// Find all VMs with a specific property value in vRA | |
// | |
// For vRO/VRA 7.0+ | |
// | |
// Action Inputs: | |
// vcacHost - vCAC:VCACHost - vRA IaaS Host | |
// propertyName - string - the custom property name to find | |
// propertyValue - Any - the custom property value to find |