- To use
openstack
cli you need to switch it to using v3 API. Do this: - cp openrc openrc.v3
- edit openrc.v3 and
- add there this line: export OS_IDENTITY_API_VERSION=3
- change OS_AUTH_URL to point to v3.
- To use
Create an identity provider
openstack identity provider create idp_1 # idp_1 is an id. Use any you like. I like idp_1
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
sale_items = data.xpath('//div[@class="more weekly-ad-title"]/text()') | |
sale_prices = data.xpath('//div[@class="weeklyad-item-price"]/span/text()') |
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
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 |
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
# grep -v '^#' /etc/cobbler/settings | |
--- | |
allow_duplicate_hostnames: 0 | |
allow_duplicate_ips: 0 | |
allow_duplicate_macs: 0 | |
allow_dynamic_settings: 0 |
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
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()) |
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 | |
# | |
# Script to deploy a wrking cobbler installation in Ubuntu Server 14.10 | |
# Author: Luis Henrique Bolson <[email protected]> | |
# | |
# 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 |
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
--- | |
- 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: |
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
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) |
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
pigs_configs_provider_plugin: | |
- Opt1: | |
- name: "namespace" | |
- value: "steel_pigs.plugins.providers.sql" | |
- Opt2: | |
- name: "class" | |
- value: "SQL" | |
- Opt3: | |
- name: "engine" | |
- value: "sqlite:///:memory:" |
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
pigs_configs_provider_plugin: | |
- Opt1: | |
- name: "namespace" | |
- value: "steel_pigs.plugins.providers.sql" | |
- Opt2: | |
- name: "class" | |
- value: "SQL" | |
- Opt3: | |
- name: "engine" | |
- value: "sqlite:///:memory:" |