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 | |
import logging | |
import socket | |
import sys | |
import threading | |
import paramiko | |
logging.basicConfig() | |
logger = logging.getLogger() |
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 swift.common.utils import audit_location_generator | |
from swift.container.backend import ContainerBroker | |
if __name__ == '__main__': | |
locations = audit_location_generator('/srv/node', 'containers', '.db') | |
for path, _, _ in locations: |
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 | |
import sys | |
from swift.common.ring import Ring | |
from swift.common.utils import hash_path | |
from swift.obj.diskfile import read_metadata | |
datafile = sys.argv[1] | |
with open(datafile, 'rb') as fp: |
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
# oc apply -f operatorsource.yaml | |
apiVersion: operators.coreos.com/v1 | |
kind: OperatorSource | |
metadata: | |
name: external-operators | |
namespace: openshift-marketplace | |
spec: | |
type: appregistry | |
endpoint: https://quay.io/cnr | |
registryNamespace: embercsi |
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
resource_registry: | |
OS::TripleO::Services::CustomService: custom_service.yaml |
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
<!-- How to use this: | |
curl -O https://code.angularjs.org/1.6.7/angular.min.js | |
swift post -r ".r:*,.rlistings" containername | |
swift upload containername index.html | |
swift upload containername angular.min.js | |
# Upload a few images with the prefix "img" and optionally a custom metadata header, for example: | |
swift upload containername -H "X-Object-Meta-Caption: something" -H "X-Object-Meta-Title: title" img_123.jpg | |
# Now open the index file in your browser: http://<swift proxy IP:port>/v1/AUTH_test/containername/index.html | |
--> | |
<html ng-app="gallery"> |
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
parameter_defaults: | |
ExternalPublicUrl: 'http://overcloud-externalswift-0:8080/v1/AUTH_%(tenant_id)s' | |
ExternalInternalUrl: 'http://overcloud-externalswift-0:8080/v1/AUTH_%(tenant_id)s' | |
ExternalAdminUrl: 'http://overcloud-externalswift-0:8080' | |
ExternalSwiftUserTenant: 'service' | |
SwiftPassword: secret |
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
source stackrc | |
export CURRENT_VERSION=newton | |
export NEW_VERSION=ocata | |
mkdir /home/stack/REPOBACKUP | |
sudo mv /etc/yum.repos.d/delorean* /home/stack/REPOBACKUP/ | |
sudo curl -L -o /etc/yum.repos.d/delorean-ocata.repo https://trunk.rdoproject.org/centos7-ocata/current/delorean.repo | |
sudo curl -L -o /etc/yum.repos.d/delorean-deps-ocata.repo http://trunk.rdoproject.org/centos7-ocata/delorean-deps.repo | |
sudo curl -L -o /etc/yum.repos.d/delorean.repo http://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-master-tripleo/delorean.repo | |
sudo curl -L -o /etc/yum.repos.d/delorean-current.repo http://trunk.rdoproject.org/centos7/current/delorean.repo |
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 | |
set -xu | |
source stackrc | |
git config --global --add gitreview.username "cschwede" | |
git clone ssh://cschwede@review.openstack.org:29418/openstack/tripleo-common | |
git clone ssh://cschwede@review.openstack.org:29418/openstack/tripleo-heat-templates | |
cd tripleo-common/ | |
sudo yum install -y python-pip | |
sudo pip install git-review | |
git review -d 413229 |
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
- name: Controller | |
CountDefault: 1 | |
ServicesDefault: | |
- OS::TripleO::Services::CACerts | |
- OS::TripleO::Services::Kernel | |
- OS::TripleO::Services::Keystone | |
- OS::TripleO::Services::MySQL | |
- OS::TripleO::Services::RabbitMQ | |
- OS::TripleO::Services::HAproxy | |
- OS::TripleO::Services::Keepalived |
NewerOlder