This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
services:ceph-cm-ansible [2016/06/29 20:49] dgalloway created |
services:ceph-cm-ansible [2016/07/13 23:03] dgalloway [Setting up a brand new infra host] |
||
---|---|---|---|
Line 6: | Line 6: | ||
Most information one would need is in the READMEs of [[https://github.com/ceph/ceph-cm-ansible/blob/master/README.rst|ceph-cm-ansible]] and [[https://github.com/ceph/ceph-sepia-secrets/blob/master/README.rst|ceph-sepia-secrets]]. Go there for more details. | Most information one would need is in the READMEs of [[https://github.com/ceph/ceph-cm-ansible/blob/master/README.rst|ceph-cm-ansible]] and [[https://github.com/ceph/ceph-sepia-secrets/blob/master/README.rst|ceph-sepia-secrets]]. Go there for more details. | ||
+ | |||
+ | ===== Common tasks ===== | ||
+ | ==== Setting up a brand new infra host ==== | ||
+ | To configure sudoers and users on a new infra host installation, set a password for the root or ubuntu user during install. Then... | ||
+ | |||
+ | <code> | ||
+ | ansible-playbook -k -K --extra-vars '{ansible_ssh_user: root|ubuntu}' --ssh-extra-args="-o PubkeyAuthentication=no -o PasswordAuthentication=yes" ansible_managed.yml --limit="$NEWHOST.front.sepia.ceph.com" | ||
+ | |||
+ | #Enter password when prompted | ||
+ | |||
+ | ansible-playbook -b users.yml --limit="$NEWHOST.front.sepia.ceph.com" | ||
+ | </code> |