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/python | |
| # Author: David McCue | |
| import keystoneclient.v2_0.client as ksclient | |
| import glanceclient.v1.client as glclient | |
| import os, sys | |
| def get_keystone_creds(): | |
| d = {} | |
| d['username'] = os.environ['OS_USERNAME'] |
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 python | |
| """ | |
| Cobbler external inventory script | |
| ================================= | |
| Ansible has a feature where instead of reading from /etc/ansible/hosts | |
| as a text file, it can query external programs to obtain the list | |
| of hosts, groups the hosts are in, and even variables to assign to each host. |
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 python | |
| """ | |
| Cobbler external inventory script | |
| ================================= | |
| Ansible has a feature where instead of reading from /etc/ansible/hosts | |
| as a text file, it can query external programs to obtain the list | |
| of hosts, groups the hosts are in, and even variables to assign to each host. |
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 python | |
| """ | |
| Cobbler external inventory script | |
| ================================= | |
| Ansible has a feature where instead of reading from /etc/ansible/hosts | |
| as a text file, it can query external programs to obtain the list | |
| of hosts, groups the hosts are in, and even variables to assign to each host. |
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
| [cobbler] | |
| host = http://cobbler-0.eucalyptus-systems.com/cobbler_api | |
| cache_path = /tmp | |
| cache_max_age = 900 |
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/python | |
| import xmlrpclib, sys | |
| username = '' | |
| if sys.argv[1:]: | |
| username = sys.argv[1] | |
| password = '' | |
| if sys.argv[2:]: | |
| password = sys.argv[2] | |
| systemname = '' |
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
| #!/bin/bash | |
| read -p "Please type password: " PASSWORD | |
| rm -rf *.log | |
| mkdir -p logs | |
| [ -n "${1}" ] && ssh-copy-id root@${1} | |
| read -p "Run reset? (y/N) " RESET | |
| [ "${RESET}" == "y" ] && cd ../euca-cobbler && ./ansible.sh reset && cd - |
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
| #!/bin/bash | |
| read -p "Please type password: " PASSWORD | |
| ENV_FILE="environment-dixonspoc.yml" | |
| CALYPTOS_SUFFIX="-e ${ENV_FILE} -p ${PASSWORD}" | |
| read -p "Run cobbler reset? (y/N) " RESET | |
| [ "${RESET}" == "y" ] && cd ../euca-cobbler && ./ansible.sh reset && cd - | |
| mkdir -p logs; rm -rf *.log |
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
| #!/bin/bash | |
| read -s -p "Please type password: " PASSWORD | |
| echo | |
| ENV_FILE="environment-dixonspoc.yml" | |
| CALYPTOS_SUFFIX="-e ${ENV_FILE} -p ${PASSWORD}" | |
| read -p "Run cobbler reset? (y/N) " RESET | |
| [ "${RESET}" == "y" ] && cd ../euca-cobbler && ./ansible.sh reset && cd - |
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/python | |
| import xml.etree.ElementTree as ET | |
| import requests | |
| import pygmaps, sys | |
| import webbrowser | |
| mymap = pygmaps.maps(54.5825668303, -5.93652799127, 14) | |
| mymap.setgrids(54.59, 54.58, 0.001, -5.94, -5.93, 0.001) | |
| #mymap.addpoint(37.427, -122.145, "#0000FF") |
OlderNewer