Skip to content

Instantly share code, notes, and snippets.

View westsouthnight's full-sized avatar
🎯
AWS DevOps Technical Architect

Rostislav Grigoryev westsouthnight

🎯
AWS DevOps Technical Architect
View GitHub Profile
git clone -b vmw-3.5 https://github.com/openshift/openshift-ansible-contrib
cd openshift-ansible-contrib/reference-architecture/vmware-ansible/
cp -f ~/07-26/ocp-on-vmware.ini .
cp -f ~/07-26/vmware_inventory.ini inventory/vsphere/vms/vmware_inventory.ini
./ocp-on-vmware.py --clean
./ocp-on-vmware.py --create_inventory
./ocp-on-vmware.py --create_ocp_vars
./ocp-on-vmware.py
@westsouthnight
westsouthnight / ansible-vmware-module-vcd-vapp-vm-nic.log
Last active July 26, 2020 19:54
vcd vm vcloud director pyvcloud api primary_index first nic
"module_stderr": "Traceback (most recent call last):
File \"/var/folders/1r/mmlrhl4j7xz4zzly987_8yq00000gp/T/ansible_vcd_vapp_vm_nic_validate_payload_mkmk53qf/ansible_vcd_vapp_vm_nic_validate_payload.zip/ansible/modules/vcd_vapp_vm_nic_validate.py\", line 390, in read_nics
File \"/usr/local/lib/python3.8/site-packages/pyvcloud/vcd/vm.py\", line 535, in list_nics
for nc in self.resource.NetworkConnectionSection.NetworkConnection:
File \"src/lxml/objectify.pyx\", line 231, in lxml.objectify.ObjectifiedElement.__getattr__
File \"src/lxml/objectify.pyx\", line 450, in lxml.objectify._lookupChildOrRaise
AttributeError: no such child: {http://www.vmware.com/vcloud/v1.5}NetworkConnection
During handling of the above exception, another exception occurred:
@westsouthnight
westsouthnight / random_mac.py
Created June 19, 2018 17:33
Ansible Lookup plugin, for generating the random mac_address on fly.
from __future__ import (absolute_import, division, print_function)
from ansible.plugins.lookup import LookupBase
from ansible.errors import AnsibleLookupError
from subprocess import Popen, PIPE
import json
import errno
import random
__metaclass__ = type
@westsouthnight
westsouthnight / kibana.png
Last active May 26, 2017 11:22
Kibana info
Kibana info
/Library/LaunchDaemons/org.virtualbox.vboxwebsrv.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>KeepAlive</key>
<false/>