From 6f6dccac6847a6634c5392885238edf9c94c19e7 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 20 Apr 2015 15:57:56 -0600 Subject: [PATCH] doc: add steps for making a host "ansible managed" Not all hosts have the "cm" user present; this commit adds a bit of text to README to indicate how to bootstrap that. Signed-off-by: Ken Dreyer --- README.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.rst b/README.rst index 9639217..07e1641 100644 --- a/README.rst +++ b/README.rst @@ -63,6 +63,21 @@ You can now run ``ansible-playbook``:: This will print a lot of debugging output to your console. +Adding a new host to ansible +============================ + +Ansible runs using the "cm" shell account. + +Let's say you've created a new VM host using downburst. At this point you +should have a new VM with the "ubuntu" UID present. The problem is that Ansible +uses the "cm" user. In order to get that UID set up: + +1. Add your host to the inventory. Look in your lab's ``secrets`` repository, + in the ``ansible/inventory/`` directory, and add your new node. + +2. Run the ``cephlab.yml`` playbook, limited to your new host "mynewhost":: + + ansible-playbook -vv --limit mynewhost cephlab.yml TODO ==== -- 2.39.5