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
>>> listFacades() | |
['aws', 'ciscoucs', 'device', 'diagram', 'mibs', 'netapp', 'network', 'network6', 'nexus', 'process', 'reports', 'search', 'service', 'storage', 'template', 'triggers', 'vcloud', 'vmware', 'zenpack', 'zep'] | |
>>> getFacade('zep') | |
<Products.Zuul.facades.zepfacade.ZepFacade object at 0x1f85b610> | |
>>> zep=_ | |
>>> dir(zep) | |
['AND', 'COUNT_REGEX', 'DEFAULT_SORT_MAP', 'OR', 'SORT_DIRECTIONAL_MAP', 'ZENOSS_DETAIL_NEW_TO_OLD_MAPPING', 'ZENOSS_DETAIL_OLD_TO_NEW_MAPPING', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__implemented__', '__init__', '__module__', '__new__', '__providedBy__', '__provides__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_createEventDetailFilter', '_createSeveritiesDict', '_create_identifier_filter', '_dmd', '_findUserInfo', '_getEventSort', '_getEventSummaries', '_getEventTagSeverities', '_getObject', '_getTopLevelOrganizerUuids', '_getUserUuid', '_guidMa |
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
diff --git a/ZenPacks/zenoss/oVirt/poll_ovirt.py b/ZenPacks/zenoss/oVirt/poll_ovirt.py | |
index a7b1084..5641000 100755 | |
--- a/ZenPacks/zenoss/oVirt/poll_ovirt.py | |
+++ b/ZenPacks/zenoss/oVirt/poll_ovirt.py | |
@@ -735,7 +735,11 @@ class oVirtPoller(object): | |
os._exit(1) | |
# Nic statistics to be processed later. | |
- deferred_statistics.append(self.client.request(elementtree_to_dict(nic.getchildren()[0])['link']['href'].split('/api/')[1])) | |
+ try: |
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
#Knife invocations supply FQDN as the node name at creation time and this becomes hostname( option -N) | |
#Ensure the hostname of the system is set to knife provided node name | |
file "/etc/hostname" do | |
content node.name | |
notifies :run, resources(:execute => "Configure Hostname"), :immediately | |
end | |
#This sets up script which will run whenever eth0 comes up(after reboot) to update /etc/hosts | |
cookbook_file "/etc/network/if-up.d/update_hosts" do |
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
{ | |
"deviceClasses": [ { | |
"componentTypes": [ | |
{ "name": "Enclosure", | |
"properties": [ | |
{ "name": "enclosure_status" }, | |
{ "name": "error_status" }, | |
{ "name": "parent_id" }, | |
{ "name": "docked_id" } ] }, | |
{ "name": "TemperatureSensor", |
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
ZP_NAME="ZenPacks.zenoss.NetAppMonitor" | |
SVN_REPO="svn+ssh://eedgar@i7/home/eedgar/svn_git_tests/dummysvnrepo" | |
SVN_BRANCH="branches/zenoss-4.x/zenpacks/$ZP_NAME" | |
GIT_REPO="/home/eedgar/svn_git_tests/git_master/$ZP_NAME" | |
LAST_SVN_COMMIT=$(svn info $SVN_REPO/$SVN_BRANCH|grep "Last Changed Rev:"|awk -F ': ' '{print $2}') | |
rm -rf $ZP_NAME | |
mkdir $ZP_NAME | |
cd $ZP_NAME | |
git init |
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
013/07/23 10:45:48 56 bytes written for 'uploadReader' | |
2013/07/23 10:45:48 56 bytes written for 'uploadReader' | |
2013/07/23 10:45:48 /home/eedgar/go/src/github.com/mitchellh/packer/bin//packer-builder-virtualbox: 2013/07/23 10:45:48 opening new ssh session | |
2013/07/23 10:45:48 /home/eedgar/go/src/github.com/mitchellh/packer/bin//packer-provisioner-shell: 2013/07/23 10:45:48 shell provisioner exited with status 0 | |
2013/07/23 10:45:48 /home/eedgar/go/src/github.com/mitchellh/packer/bin//packer-provisioner-shell: 2013/07/23 10:45:48 Opening scripts/ruby.sh for reading | |
2013/07/23 10:45:48 /home/eedgar/go/src/github.com/mitchellh/packer/bin//packer-provisioner-shell: 2013/07/23 10:45:48 Uploading scripts/ruby.sh => /tmp/script.sh | |
2013/07/23 10:45:48 /home/eedgar/go/src/github.com/mitchellh/packer/bin//packer-provisioner-shell: 2013/07/23 10:45:48 56 bytes written for 'uploadReader' | |
2013/07/23 10:45:48 /home/eedgar/go/src/github.com/mitchellh/packer/bin//packer-command-build: 2013/07/23 10:45:48 56 bytes written for 'u |
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
if [ -f /home/vagrant/linux.iso ] | |
then | |
pushd /tmp | |
mkdir -p /mnt/cdrom | |
yum -y install gcc | |
yum -y install patch | |
yum -y install kernel-devel kernel-headers | |
# Required for shared folders | |
yum -y install fuse |
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
FROM stackbrew/ubuntu:saucy | |
RUN apt-get update | |
RUN apt-get install -y --force-yes \ | |
software-properties-common \ | |
pciutils \ | |
debconf-utils | |
RUN add-apt-repository -y ppa:saltstack/salt | |
RUN apt-get update |
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
IFS=$'\n' | |
RUNNING_VMS=`/Applications/VMware\ Fusion.app/Contents/Library/vmrun list|sed '1d'` | |
for vm in $RUNNING_VMS | |
do | |
echo $vm | |
echo suspending $vm | |
`/Applications/VMware\ Fusion.app/Contents/Library/vmrun suspend "$vm"` | |
done | |
rsync -Cavz --stats --progress "/Users/eedgar/Documents/Virtual Machines.localized" /Volumes/Data\:Backups/ |
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
#!/bin/bash | |
############################################################################## | |
# | |
# Copyright (C) Zenoss, Inc. 2007, all rights reserved. | |
# | |
# This content is made available according to terms specified in | |
# License.zenoss under the directory where your Zenoss product is installed. | |
# | |
############################################################################## |
OlderNewer