Commit 3ff8b534 authored by julian.gethmann's avatar julian.gethmann

Add comments about uninstalling FreeIPA to readme

parent effc1232
......@@ -3,12 +3,12 @@ You need to have access to this repository (you need to add your public ssh-key
Then you can clone the git repository to work on in locally.
`git clone git@git.scc.kit.edu:las/ansible.git`
Add your computer to the hosts file or if you are just testing add it to the local file.
Add your hostname under each role name (the name in the square brackets) you want to be run on your computer.
Add your computer to the `hosts` file or if you are just testing add it to the local file.
Add your ``hostname`` under each role name (the name in the square brackets) you want to be run on your computer.
Also create a new file which is named
after your [fully-qualified-domain-name](https://de.wikipedia.org/wiki/Domain_(Internet)#Fully_Qualified_Domain_Name_.28FQDN.29}) (FQDN) in the `host_vars` directory including a [yaml](https://docs.ansible.com/ansible/YAMLSyntax.html) list with some host specific configuration variables, e. g. copy another similar host and adjust it.
These files do not have the `.yml` extension and do not start with `---`
Then create a file named after your FQDN with the extension ``.yml`` in the main directory of ansible which contains includes all the roles one want to run. This step needs root priviledges and therefore makes only sense for the first installation of a computer.
These files do not have the `.yml` extension and do not start with `---` as most of the other yaml files do.
Then create a file named after your FQDN with the extension ``.yml`` in the main directory of ansible which includes all the roles one want to run. This step needs root privileges and therefore makes only sense for the first installation of a computer.
Install ansible and some dependencies:
......@@ -80,7 +80,7 @@ If you just want to install one or many packages you can use `jabref.yml` as a b
Be aware that the development branches here are not save and the owner might force push to them!
# Run as admin
## Bootstrap
## Bootstraping
* Add your SSH-key to the host `ssh-copy-id lasXXX.las.kit.edu`
* Do the steps described for the self-setup
* Run `ansible-playbook -K --vault-id @prompt sites.yml` probably with the option `-l lasXXX.las.kit.edu`
......@@ -93,9 +93,13 @@ The first one is of cause the preferred one, because there is no rist to add a u
## Bootstrap IPA hosts
* Get a Kerberos ticket (``kinit admin@LAS.KIT.EDU``)
* For the host with the hostname `lasXXX.las.kit.edu` run the following command
* Edit a file ``host_vars/lasXXX.las.kit.edu``
* For the host with the hostname `lasXXX.las.kit.edu` do the following
* edit a file ``host_vars/lasXXX.las.kit.edu``
* run the command:
```
ansible -l lasXXX.las.kit.edu add_ipa_host.yml -k
ansible -l lasXXX.las.kit.edu add_ipa_host.yml -k --vault-id @prompt
```
and provide the root password for the new host.
## Decommission/Uninstall a host
* edit the ``add_ipa_host.yml`` and uncomment the uninstall step in it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment