Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
e27443a9
Commit
e27443a9
authored
May 23, 2018
by
julian.gethmann
Browse files
Add example hostnames to REDAME
* Extend the IPA bootstrappnig text a bit and use hostnames for the example.
parent
9bba0e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e27443a9
...
...
@@ -82,7 +82,7 @@ Be aware that the development branches here are not save and the owner might for
# Run as admin
## Bootstraping
*
Add your SSH-key to the host
`ssh-copy-id lasXXX.las.kit.edu`
*
Do the steps described for the self-setup
*
Install ansible dependencies:
`dnf install python2-dnf libselinux-python`
*
Run
`ansible-playbook -K --vault-id @prompt sites.yml`
probably with the option
`-l lasXXX.las.kit.edu`
## Edit encrypted files
...
...
@@ -92,12 +92,15 @@ Be aware that the development branches here are not save and the owner might for
The first one is of cause the preferred one, because there is no rist to add a unencrypted file to the repo.
## Bootstrap IPA hosts
*
Get a Kerberos ticket (
``kinit admin@LAS.KIT.EDU``
)
In this example the client to bootstrap may be
`las112`
and the installation takes place from the server
`las126`
.
The prompts
`#`
show that you are working at root.
*
Add your (root's) SSH-key to the host
`las126# ssh-copy-id lasXXX.las.kit.edu`
*
Install ansible dependencies on the client:
`las112# dnf install python2-dnf libselinux-python`
*
Get a Kerberos ticket (
``las126# kinit -f admin@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 --vault-id @prompt
las126#
ansible -l lasXXX.las.kit.edu add_ipa_host.yml -k --vault-id @prompt
```
and provide the root password for the new host.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment