Skip to content

Instantly share code, notes, and snippets.

View michaelrice's full-sized avatar

Michael Rice michaelrice

View GitHub Profile
@michaelrice
michaelrice / mos-websso.rst
Created September 6, 2017 05:51 — forked from bretonium/mos-websso.rst
How to configure Mirantis OpenStack for WebSSO via Okta
  • To use openstack cli you need to switch it to using v3 API. Do this:
    1. cp openrc openrc.v3
    2. edit openrc.v3 and
      • add there this line: export OS_IDENTITY_API_VERSION=3
      • change OS_AUTH_URL to point to v3.
  • Create an identity provider

    openstack identity provider create idp_1 # idp_1 is an id. Use any you like. I like idp_1

sale_items = data.xpath('//div[@class="more weekly-ad-title"]/text()')
sale_prices = data.xpath('//div[@class="weeklyad-item-price"]/span/text()')
root@mike-flask-temp:/usr/local/src/cobbler# cobbler check
httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cobbler/cli.py", line 252, in check_setup
s.ping()
File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
# grep -v '^#' /etc/cobbler/settings
---
allow_duplicate_hostnames: 0
allow_duplicate_ips: 0
allow_duplicate_macs: 0
allow_dynamic_settings: 0
root@mike-server1-temp:/usr/local/share/cobbler/web# service cobblerd start
Starting cobbler daemon: Traceback (most recent call last):
File "/usr/local/bin/cobblerd", line 77, in main
api = cobbler_api.BootAPI(is_cobblerd=True)
File "/usr/local/lib/python2.7/dist-packages/cobbler/api.py", line 135, in __init__
self.deserialize()
File "/usr/local/lib/python2.7/dist-packages/cobbler/api.py", line 969, in deserialize
return self._config.deserialize()
File "/usr/local/lib/python2.7/dist-packages/cobbler/config.py", line 266, in deserialize
raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type())
@michaelrice
michaelrice / cobbler_install-ubuntu_14.04.sh
Created April 11, 2016 18:15 — forked from luisbolson/cobbler_install-ubuntu_14.04.sh
Shell Script to install Cobbler 2.6 on Ubuntu Server 14.04
#!/bin/bash
#
# Script to deploy a wrking cobbler installation in Ubuntu Server 14.10
# Author: Luis Henrique Bolson <luis@luisb.net>
#
# Based on http://springerpe.github.io/tech/2014/09/09/Installing-Cobbler-2.6.5-on-Ubuntu-14.04-LTS.html
#
# Please run as root (don't use sudo <script>)
#
# curl -s https://raw.githubusercontent.com/luisbolson/cobbler/master/cobbler_install-ubuntu_14.04.sh | bash -s 192.168.56.101
---
- hosts: osad_pigs
vars:
apt_mirror_base_path: "/var/www/html/ubuntu"
apt_mirror_repo:
- "deb http://mirror.rackspace.com/ubuntu trusty main restricted universe multiverse"
- "deb http://mirror.rackspace.com/ubuntu trusty-security main restricted universe multiverse"
- "deb http://mirror.rackspace.com/ubuntu trusty-updates main restricted universe multiverse"
roles:
class ServerDataModel(Base):
__tablename__ = 'ServerData'
id = Column(Integer, primary_key=True)
server_number = Column(Integer, unique=True, nullable=False)
primary_ip = Column(String(15), nullable=False)
primary_gw = Column(String(15), nullable=False)
primary_nm = Column(String(15), nullable=False)
primary_mac = Column(String(20), nullable=False)
drac_ip = Column(String(15), nullable=True)
drac_gw = Column(String(15), nullable=True)
pigs_configs_provider_plugin:
- Opt1:
- name: "namespace"
- value: "steel_pigs.plugins.providers.sql"
- Opt2:
- name: "class"
- value: "SQL"
- Opt3:
- name: "engine"
- value: "sqlite:///:memory:"
pigs_configs_provider_plugin:
- Opt1:
- name: "namespace"
- value: "steel_pigs.plugins.providers.sql"
- Opt2:
- name: "class"
- value: "SQL"
- Opt3:
- name: "engine"
- value: "sqlite:///:memory:"