Skip to content

Instantly share code, notes, and snippets.

@vallard
vallard / ucsexample.py
Created June 8, 2018 19:11
UCS SDK List Servers or Service Profiles example
from ucsmsdk.ucshandle import UcsHandle
from ucsmsdk.ucsexception import UcsException
from urllib2 import HTTPError
import argparse
import os, sys
def ucs_login(username, password, server):
handle = UcsHandle(server, username, password)
try:
handle.login()

UCS automatización pipeline con KUBAM y RHV 4.1

Ya Fijado

  • Ya existe una service profile template
  • KUBAM ya está instalado
  • supongamos que solo hay uno UCS para empezar
  • Los isos ya están mapeados
@vallard
vallard / ippool.yml
Last active February 21, 2018 19:35
UCS Ansible Modules Installation

1. Create CentOS VM server

  • 4GB of RAM
  • 8GB of Disk space

I did mine using VMM on an old RedHat server I had.

2. Install dependencies

SSH into machine (I used: root@192.168.2.225)

@vallard
vallard / POC.md
Created September 5, 2017 13:26
KUBAM POC

POC

Part 1: KUBAM boot server

Get docker image:

docker pull kubam/kubam
# create a git repo
```
git init mygit
cd mygit
echo "this is foo" > foo.txt
git status
git add .
git status
git commit -am "added foo"
echo "this is a change in foo" > foo.txt
---
- name: remove old consul
sudo: yes
yum:
name: "{{ item }}"
state: absent
with_items:
- consul-0.5.2-3.el7.centos.x86_64
- consul-ui-0.5.2-3.el7.centos.x86_64
brew install homebrew/versions
brew install homebrew/boneyard
brew unlink docker
brew install homebrew/versions/docker # get a list of docker versions
brew install homebrew/versions/docker171
@vallard
vallard / gist:9583d9e20a3a338dc139
Last active August 8, 2019 16:47
Kubernetes CoreOS OpenStack instructions

OpenStack

These instructions are for running on the command line. Most of this you can also do through the Horizon dashboard. These instructions were tested on the Ice House release on a Metacloud distribution of OpenStack but should be similar if not the same across other versions/distributions of OpenStack.

Make sure you can connect with OpenStack

Make sure the environment variables are set for OpenStack such as:

OS_TENANT_ID
OS_PASSWORD
@vallard
vallard / gist:5a7bcebb912e673ed60a
Last active June 11, 2020 17:42
Docker Webcast Notes

Docker Webcast notes for Jan 20th, 2015

Docker installation

Basic Ubuntu

sudo apt-get -y update
sudo apt-get -y install openssh-server
# add remote user
GRANT ALL privileges on *.* to 'tdiet'@'%' identified by 'PASSWORD' with grant option;
# verify privileges of remote user
mysql> SELECT * from information_schema.user_privileges where grantee like "'tdiet'%";