]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
powerdns: Update README with better markdown
authorWido den Hollander <wido@42on.com>
Wed, 6 Aug 2014 15:14:04 +0000 (17:14 +0200)
committerWido den Hollander <wido@42on.com>
Thu, 7 Aug 2014 13:12:19 +0000 (15:12 +0200)
src/powerdns/README.md

index cdae57e45ab0c1cdac6b54dff314c26facced88f..0b34ede9528305e25eda1cdaa4ecb5c95f07fc04 100644 (file)
@@ -4,15 +4,15 @@ A backend for PowerDNS to direct RADOS Gateway bucket traffic to the correct reg
 
 For example, two regions exist, US and EU.
 
-EU: o.myobjects.eu
-US: o.myobjects.us
+    EU: o.myobjects.eu
+    US: o.myobjects.us
 
 A global domain o.myobjects.com exists.
 
 Bucket 'foo' exists in the region EU and 'bar' in US.
 
-foo.o.myobjects.com will return a CNAME to foo.o.myobjects.eu
-bar.o.myobjects.com will return a CNAME to foo.o.myobjects.us
+    foo.o.myobjects.com will return a CNAME to foo.o.myobjects.eu
+    bar.o.myobjects.com will return a CNAME to foo.o.myobjects.us
 
 The HTTP Remote Backend from PowerDNS is used in this case: http://doc.powerdns.com/html/remotebackend.html
 
@@ -23,8 +23,8 @@ For more information visit the [Blueprint](http://wiki.ceph.com/Planning/Bluepri
 # Configuration
 
 ## PowerDNS
-launch=remote
-remote-connection-string=http:url=http://localhost:6780/dns
+    launch=remote
+    remote-connection-string=http:url=http://localhost:6780/dns
 
 ## PowerDNS backend
 Usage for this backend is showed by invoking with --help. See rgw-pdns.conf.in for a configuration example
@@ -37,16 +37,16 @@ $ curl -X GET http://localhost:6780/dns/lookup/foo.o.myobjects.com/ANY
 
 Should return something like:
 
-{
- "result": [
-  {
-   "content": "foo.o.myobjects.eu",
-   "qtype": "CNAME",
-   "qname": "foo.o.myobjects.com",
-   "ttl": 60
-  }
- ]
-}
+    {
    "result": [
+      {
+       "content": "foo.o.myobjects.eu",
+       "qtype": "CNAME",
+       "qname": "foo.o.myobjects.com",
+       "ttl": 60
+      }
    ]
+    }
 
 ## WSGI
 You can run this backend directly behind an Apache server with mod_wsgi
@@ -57,5 +57,5 @@ Placing that in your virtualhost should be sufficient.
 
 Afterwards point PowerDNS to localhost on port 80:
 
-launch=remote
-remote-connection-string=http:url=http://localhost/dns
\ No newline at end of file
+    launch=remote
+    remote-connection-string=http:url=http://localhost/dns