FIX Ceph user error 47/26847/2
authorliyuenan <liyuenan@huawei.com>
Wed, 11 Jan 2017 06:26:41 +0000 (14:26 +0800)
committerYuenan Li <liyuenan@huawei.com>
Thu, 12 Jan 2017 02:11:12 +0000 (02:11 +0000)
The command of create ceph user for openstack is destroied in Yamllint patch.
There is a error in the roles/ceph-openstack/tasks/ceph-openstack-pre.yml.
It should not change a line between the quotations.

JIRA: -

Change-Id: I5347e8bfde129855c28cb5313b8367f4edb065ca
Signed-off-by: liyuenan <liyuenan@huawei.com>
.yamllint
deploy/adapters/ansible/roles/ceph-openstack/tasks/ceph_openstack_pre.yml

index bcdaf33..66a91f9 100644 (file)
--- a/.yamllint
+++ b/.yamllint
@@ -3,15 +3,7 @@
 extends: default
 
 rules:
-  # 80 chars should be enough, but don't fail if a line is longer
+  # 100 chars should be enough
   line-length:
     max: 100
     level: error
-
-  # accept both     key:
-  #                   - item
-  #
-  # and             key:
-  #                 - item
-  indentation:
-    indent-sequences: whatever
index 3ff9df4..a9eb81a 100755 (executable)
     - vms
   when: inventory_hostname in groups['ceph_adm']
 
+# yamllint disable rule:line-length
 - name: create ceph users for openstack
   shell: |
     ceph auth get-or-create client.cinder mon 'allow r' osd \
-        'allow class-read object_prefix rbd_children, allow rwx pool=volumes, \
-        allow rwx pool=vms, allow rx pool=images';
+        'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rwx pool=vms, allow rx pool=images';
     ceph auth get-or-create client.glance mon 'allow r' osd \
         'allow class-read object_prefix rbd_children, allow rwx pool=images';
   when: inventory_hostname in groups['ceph_adm']
+# yamllint enable rule:line-length
 
 - name: send glance key to controller nodes
   shell: |