Changeset 14693 for main/waeup-ansible


Ignore:
Timestamp:
14 Jun 2017, 14:29:20 (8 years ago)
Author:
uli
Message:

In README, describe host setup after bootstrapping.

Give hints how we do host setup, the 2nd step in server lifecycle after bootstrapping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup-ansible/README.rst

    r14324 r14693  
    100100   to see, whether setup is fine (dry run) and::
    101101
    102      $ ansible-playbooj -i hosts bootstrap.yml
     102     $ ansible-playbook -i hosts bootstrap.yml
    103103
    104104   to actually perform the changes.
     105
     1066) In `hosts` move the host we handle from ``[yet-untouched]`` over to
     107   ``[bootstapped]``.
     108
     109
     110Setup
     111=====
     112
     113After bootstrapping, there should be a user account we can use.
     114
     1151) Create a local SSH key to connect to the new server and copy it over::
     116
     117     $ ssh-keygen -t ed25519 -C "uli@foo to myremote" -f ~/.ssh/id_myremote
     118
     119   Where ``myremote`` is normally one of h1, h2, ...., hN. Then::
     120
     121     $ ssh-copy-id -i ~/.ssh/id_myremote user@myremote.waeup.org
     122
     123   and eventually edit ``~/.ssh/config`` to register your new key.
     124   If you are out for adventure, do not create a new key but use the one you
     125   use on all other machines as well. This is, of course, not recommended.
     126
     1272) Update the entry of the handled host in the local `hosts` inventory:
     128   - Remove ``ansible_user=root``
     129   - Remove ``ansible_ssh_pass``.
     130   - Set ``ansible_sudo_pass`` to the password of the user you connect as.
     131
     1323) Update the server::
     133
     134     $ ansible -i hosts hmyremote.waeup.org -b -m apt -a "upgrade=safe update_cache=yes"
     135
     136   This way we can ensure that your SSH setup works correctly.
     137
     1384) Run setup.py::
     139
     140     $ ansible-playbook -i hosts -l hmyremote.waeup.org -C setup.yml
     141
     142   (for a dry run) and::
     143
     144     $ ansible-playbook -i hosts -l hmyremote.waeup.org setup.yml
     145
     146   for the real run.
    105147
    106148
Note: See TracChangeset for help on using the changeset viewer.