adduser NON-ROOT-USER -G wheel
passwd NON-ROOT-USER
# login as NON-ROOT-USER
ssh-keygen
export VIRTHOST=127.0.0.2
ssh-copy-id root@$VIRTHOST
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
[branch "master"] | |
[remote "upstream"] | |
url = https://github.com/savitojs/gencert.git | |
fetch = +refs/heads/*:refs/remotes/upstream/* | |
[remote "downstream"] |
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
--- requested.rb 2017-05-26 11:53:16.019079897 +0530 | |
+++ requested_mod.rb 2017-05-26 11:53:34.248931892 +0530 | |
@@ -5,6 +5,7 @@ | |
else | |
next if @service_template.prov_type.starts_with?("generic") | |
service_prov_option_value(prov_option, child_service_resource.resource, options_array) | |
+ $evm.log(:info, "CASE :number_of_vms #{child_service_resource.resource.get_option(:number_of_vms)}") | |
end | |
end | |
options_array |
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
[tower] | |
localhost ansible_connection=local | |
[database] | |
[all:vars] | |
admin_password='admin' | |
pg_host='' | |
pg_port='' |
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
--- | |
:custom_buttons_sets: | |
- name: Actions|Vm| | |
description: Actions | |
set_type: CustomButtonSet | |
read_only: | |
mode: | |
custom_buttons: | |
- description: Add Disk | |
applies_to_class: Vm |
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
--- | |
- description: Add disk | |
buttons: submit,cancel | |
label: Add disk | |
blueprint_id: | |
dialog_tabs: | |
- description: Information | |
display: edit | |
label: Info | |
display_method: |
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
From 16c36ce82259fdf82686492d3447dc84b2070ee7 Mon Sep 17 00:00:00 2001 | |
From: Sachin Patil <psachin@redhat.com> | |
Date: Wed, 28 Dec 2016 22:28:19 +0000 | |
Subject: [PATCH] Proxy server controller tests should be reorganized | |
Following tests were moved: | |
- @patch_policies within test_server.TestObjectController -> controllers/test_obj.py | |
- @patch_policies within test_server.TestContainerController -> controllers/test_container.py | |
- @patch_policies within test_server.TestAccountController -> controllers/test_account.py |
These are based on updated instructions for the Swift multi-node setup guide.
Steps to install on Ubuntu 14.04, assuming at least two machines:
- Copy the below 3 scripts to each of your VMs (make sure to chmod +x each of them as well).
- Run 01-install-proxy-node.sh only on your proxy.
- Run 02-install-storage-node.sh only on each of your storage nodes, prefixing the command with NODE=1, where 1 is the number for that storage node (must start at 1 and increment). For instance:
NODE=1 ./02-install-storage-node.sh
on your first storage node,NODE=2 ./02-install-storage-node.sh
on your second storage node, etc. - For each of the exports provided to you by the storage node install script (STORAGE_N_IP and STORAGE_N_DISKS), copy and paste them into your shell on the proxy. Then, running
set | grep -a '^STORAGE_'
from your proxy should show you all the storage nodes' exports. - On the proxy, run 03-build-rings.sh. It will show you all the nodes and disks it discovered from your environment, build the
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
diff --git a/Parsing JSON b/Parsing JSON | |
index dcccd0fa191d..26953954ec3d 100644 | |
--- a/Parsing JSON | |
+++ b/Parsing JSON | |
@@ -1,48 +1,53 @@ | |
from __future__ import print_function | |
+import argparse | |
import json | |
import sys | |
from prettytable import PrettyTable |
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
SRCNAME="python-swiftclient" | |
rpmlint ${SRCNAME}.spec | |
if [ "$?" -eq 0 ]; | |
then | |
echo "Removing installed packages.." | |
sudo dnf remove python2-swiftclient -y | |
sudo dnf remove python3-swiftclient -y |