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 -xe | |
sudo yum upgrade -y | |
sudo yum install -y tmux vim wget | |
sudo useradd stack | |
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack | |
sudo chmod 0440 /etc/sudoers.d/stack | |
su - stack |
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
pages: | |
- Home: index.md | |
- User Guide: | |
- Writing your docs: index.md | |
- About: | |
- License: index.md | |
- Release Notes: | |
- Version 1: index.md | |
- Version 2: index.md | |
- Version 3: index.md |
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
import os | |
from heatclient.v1.client import Client as heat_client | |
from keystoneclient.v2_0 import client as ksclient | |
def keystoneclient(): | |
return ksclient.Client( | |
username=os.environ.get('OS_USERNAME'), | |
tenant_name=os.environ.get('OS_TENANT_NAME'), |
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
This assumes you already have the API running on the undercloud. Run the | |
following commands on the undercloud. | |
$ git clone https://github.com/openstack/tripleo-heat-templates.git | |
$ python mkplan.py tripleo-heat-templates > plan.json | |
NOTE: You will need httpie installed for the following commands, otherwise you | |
can figure out curl ;). It can be installed with: | |
sudo yum install -y python-pip | |
sudo pip install httpie |
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
# Call with: python mkplan.py tripleo-heat-templates > plan.json | |
import sys | |
import yaml | |
template_path = sys.argv[1] | |
import os | |
templates_dict = {} |
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
# Save this file somewhere and modify parameters as needed. The NeutronControlPlaneID | |
# must be edited, but the others are optional. | |
# | |
# Generate the Keystone certs to a new environment file. | |
# | |
# generate-keystone-pki --heatenv keystone-env.json | |
# | |
# Now you are ready to deploy. | |
# | |
# heat stack-create -t 420 \ |
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
""" | |
This expects you to be in an environment with MkDocs 0.13 or greater installed. | |
Save the file, run it by passing in a mkdocs.yml and it will print out the | |
converted version. Copy this into the config, tweak test and you are done! | |
""" | |
import click | |
import yaml | |
from mkdocs import legacy |
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
[tox] | |
envlist = py26,py27,py33,py34 | |
skipsdist = true | |
[testenv] | |
commands= | |
python -c "import codecs, locale; l = codecs.lookup(locale.getpreferredencoding()).name; assert l == 'utf-8', l" |
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
DEFAULTS = { | |
'title': None, | |
'output': 'build', | |
'strict': False, | |
} | |
VALIDATORS = { | |
'title': must_be(str, required=True), | |
'output': path_validator(exists=True, directory=True, file=False) | |
'title': must_be(bool, required=True), |