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
#!/usr/bin/env python | |
from github import Github | |
import os | |
TOKEN = os.environ.get("GITHUB_TOKEN") | |
USERS = ("openstack", "stackforge", "openstack-dev", "openstack-infra", "openstack-attic", "stackforge-attic", "hackebrot") | |
g = Github(TOKEN) | |
me = g.get_user() |
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
2013-12-10 13:17:11 + echo_summary 'Configuring and starting Horizon' | |
2013-12-10 13:17:11 + [[ -t 3 ]] | |
2013-12-10 13:17:11 + [[ True != \T\r\u\e ]] | |
2013-12-10 13:17:11 + echo -e Configuring and starting Horizon | |
2013-12-10 13:17:11 Configuring and starting Horizon | |
2013-12-10 13:17:11 + init_horizon | |
2013-12-10 13:17:11 + rm -f /vagrant/openstack/horizon/openstack_dashboard/local/dashboard_openstack.sqlite3 | |
2013-12-10 13:17:11 + local_settings=/vagrant/openstack/horizon/openstack_dashboard/local/local_settings.py | |
2013-12-10 13:17:11 + cp /vagrant/openstack/horizon/openstack_dashboard/local/local_settings.py.example /vagrant/openstack/horizon/openstack_dashboard/local/local_settings.py | |
2013-12-10 13:17:11 + is_service_enabled neutron |
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = 'http://files.vagrantup.com/precise64.box' | |
config.vm.provision "shell", path: "provision.sh" |
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
1. cp -r old_repo new_repo | |
2. cd new_repo | |
3. For all branches you want to preserve, ensure you have local tracking branches setup: 'git checkout branch1' | |
4. git filter-branch --subdirectory-filter directory/to/split master branch1 ... (for preserving master and branch1) | |
5. Unless there are any tags you want to preserve, just remove all tags: | |
6. git tag -l | xargs git tag -d | |
7. git remote rm origin | |
8. git remote add origin git@new.remote.git | |
9. git gc | |
10. git config --add remote.origin.push '+refs/heads/*:refs/heads/*' |
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
echo "Acquire::http::Proxy \"http://rpiapt:3142\";" > /etc/apt/apt.conf.d/01proxy; |
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 = {} |