summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-04-22 16:00:36 +0530
committerKshithij Iyer <kiyer@redhat.com>2019-04-24 10:52:10 +0000
commitc8cd606e736546a60dd92a6271bb112d1453ce50 (patch)
tree57f5621d05d2b03ebe2bdc46c2a847719c4d1282
parent5f827f38ea259eb2760bc2570593d9df8dc29976 (diff)
Adding sample gdeploy config file in examples and editing Readme.md
It would be better if we provide a sample configuration file for gdeploy in glusto tests and also adding a few points in the Readme.md file on how to run gdeploy. Change-Id: I481a1c871aa8b2749d7118adcc0898af6ac2c197 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
-rw-r--r--README.md28
-rw-r--r--examples/gdeploy_sample_config.conf10
2 files changed, 36 insertions, 2 deletions
diff --git a/README.md b/README.md
index d9e4537..9c0b1df 100644
--- a/README.md
+++ b/README.md
@@ -72,8 +72,31 @@ Pre-requisites to run glusto-tests:
- Setup passwordless ssh from the glusto-tests management node to all.
- Install glusto-tests dependencies on servers and clients.
- Setup bricks on all servers:
- - To create bricks refer to [doc](https://gluster.readthedocs.io/en/latest/Administrator%20Guide/formatting-and-mounting-bricks/)
-
+ - To create bricks refer to [doc](https://gluster.readthedocs.io/en/latest/Administrator%20Guide/formatting-and-mounting-bricks/) **OR** Run gdeploy as shown below.
+ 1. Edit the `gdeploy_sample_config.conf` present in `examples` as shown below and also configure passwordless ssh to all servers:
+ ```
+ [hosts]
+ server-vm1
+ server-vm2
+ server-vm3
+ server-vm4
+ server-vm5
+ server-vm6
+
+ [backend-setup]
+ devices
+ vgs
+ pools
+ lvs
+ mountpoints
+ ```
+ **Note:**
+ For more details you can view a sample config file avaliable at ``/usr/share/doc/gdeploy/examples/gluster.conf.sample`` which will be installed with gdeploy.
+
+ 2. Run gdeploy using the below command:
+ ```
+ gdeploy -c gdeploy_sample_config.conf
+ ```
Note:
- To run cifs protocol:
@@ -180,3 +203,4 @@ Default log location is: `/tmp/glustomain.log`
Note: When using `glusto` via the Python Interactive Interpreter,
the default log location is `/tmp/glusto.log`.
+
diff --git a/examples/gdeploy_sample_config.conf b/examples/gdeploy_sample_config.conf
new file mode 100644
index 0000000..f771d5e
--- /dev/null
+++ b/examples/gdeploy_sample_config.conf
@@ -0,0 +1,10 @@
+#IP addresses.
+[hosts]
+
+#Creating and mounting bricks.
+[backend-setup]
+devices=/dev/vdb,/dev/vdc,/dev/vdd,/dev/vde
+vgs=vg1,vg2,vg3,vg4
+pools=pool1,pool2,pool3,pool4
+lvs=lv1,lv2,lv3,lv4
+mountpoints=/bricks/brick1,/bricks/brick2,/bricks/brick3,/bricks/brick4