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
describe 'my_rancher::default' do | |
context 'When all attributes are default, on an unspecified platform' do | |
let(:chef_run) do | |
runner = ChefSpec::ServerRunner.new | |
runner.converge(described_recipe) | |
end | |
# it 'converges successfully' do | |
# expect(chef_run).to_not raise_error | |
# 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
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/wiu-base/recipes/default.rb | |
================================================================================ | |
RuntimeError | |
------------ | |
Unknown package type encountered for install: | |
Cookbook Trace: | |
--------------- |
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
--- | |
description: Limited RUN access to Web Services Group | |
context: | |
project: 'Support' | |
for: | |
event: | |
- equals: | |
group: 'Web Services' | |
name: 'Restart OCE' |
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
#!/usr/bin/env ruby | |
# PREREQ: YOU MUST HAVE A TEMPLATE ALREADY BUILT. IF USING UBUNTU, | |
# MAKE SURE THE LAST STEP BEFORE YOU CREATE THE TEMPLATE IS THIS OR THE NETWORKING STEPS WON'T WORK. | |
# http://chris.dziemborowicz.com/blog/2010/07/25/fix-missing-eth0-when-cloning-ubuntu-vmware-virtual-machines/ | |
require 'rubygems' | |
require 'awesome_print' | |
require 'net/ping' | |
require 'rbvmomi' |
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
require 'rubygmes' | |
require 'rbvmomi' | |
vim = RbVmomi::VIM.connect host: vcenter_host_name, user: vcenter_user, password: vcenter_password, :insecure => true | |
dc = vim.serviceInstance.find_datacenter(my_datacenter) or fail "datacenter not found" | |
vm = dc.find_vm("folder_path_to_vm) or fail "VM not found" | |
dnic = vm.config.hardware.device.grep(RbVmomi::VIM::VirtualEthernetCard).find{|nic| nic.props} | |
port = dnic[:backing][:port] |
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
REST URL for requesting content: | |
http://server/service/home/[˜][{username}]/[{folder}]?[{query-params}] | |
fmt={ics, csv, etc} | |
id={item-id} | |
imap_id={item-imap-id} | |
part={mime-part} | |
query={search-query} | |
types={types} // when searching | |
auth={auth-types} |
NewerOlder