ceph / ceph-ansible

Ansible playbooks to deploy Ceph, the distributed filesystem.
Apache License 2.0
1.68k stars 1.01k forks source link

Style change question #355

Closed msambol closed 8 years ago

msambol commented 9 years ago

If I changed the style to

apt_key: data="{{ lookup('file', '../../files/cephstable.asc') }}"
         state=present

instead of

apt_key: >
         data="{{ lookup('file', '../../files/cephstable.asc') }}"
         state=present

would you allow it?

leseb commented 9 years ago

Why would you want to do this? :) It depends, it you do this for the entire repo or not :) The more I look at ansbile repos the I see this kind of yaml syntax.

However I was more thinking at something like:

apt_key:
  data:"{{ lookup('file', '../../files/cephstable.asc') }}"
  state:present
msambol commented 9 years ago

I think that's a good compromise. :+1: I'll submit a PR later today..

leseb commented 9 years ago

This is a huge refactor so thanks in advance. Have a look at this repo: https://github.com/SamYaple/yaodu/tree/master/ansible/roles The syntax is a good example to follow.

leseb commented 9 years ago

@msambol Any update on this?

msambol commented 9 years ago

Got a little distracted with work stuff, I'll submit a PR asap.

leseb commented 9 years ago

No worries it's not urgent, I was just checking in while looking at the opened issues :)

msambol commented 9 years ago

I'm refactoring the monitor role, and it's getting stuck in start_monitor.yml at collect admin and bootstrap keys. When I run ceph-create-keys --id <hostname> manually on the node, I get the following error:

INFO:ceph-create-keys:ceph-mon admin socket not ready yet.
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory

Have you seen this?

leseb commented 9 years ago

Looks like the monitor is not started thus there is not socket that can be called. Check that the monitor successfully started.

leseb commented 9 years ago

@msambol are you planning on working on the other roles as well? Thanks!

msambol commented 9 years ago

Yes! It's done for monitor... I'll submit soon.

leseb commented 9 years ago

@msambol awesome, looking forward to seeing your PR.

leseb commented 8 years ago

@msambol thanks a lot!