Commit 9b8baae1 authored by julian.gethmann's avatar julian.gethmann

Move old network to new VLAN

* Move all hosts
* Change hostnames
* Change IPs in configurations
* Improve IPA setup
* Update roles:
  * opera
  * lasarchiv
  * common/printer
  * ipa_hosts
parent 5003a4a1
......@@ -2,7 +2,7 @@
- hosts: all
remote_user: root
vars:
ipa_host: "las{{ ip_suffix }}.las.kit.edu"
ipa_host: "{{ computer_name }}.las.kit.edu"
ipa_host_ip: "129.13.108.{{ ip_suffix }}"
ipa_domain: las.kit.edu
vars_prompt:
......
This diff is collapsed.
---
nfs_server: 129.13.108.126
nfs_server: 129.13.238.126
......@@ -2,5 +2,5 @@ ansible_user: root
user_account: richter
ip_suffix: 118
loc: 620
os: Fedora 28
computer_name: Amnesix
os: Fedora 29
computer_name: amnesix
ansible_user: root
user_account: gethmann
ip_suffix: 113
ip_suffix: 73
loc: 618
os: Fedora 29
computer_name: Asterix
computer_name: asterix
extra_software:
- subversion # for ANKA software
......
ansible_user: root
user_account: widmann
ip_suffix: 112
loc: 618
os: Fedora 28
computer_name: Gutemine
computer_name: gutemine
extra_software:
- subversion # ANKA software
......
......@@ -3,4 +3,4 @@ user_account: damminsek
ip_suffix: 117
loc: 620
os: Fedora 27
computer_name: Idefix
computer_name: idefix
ansible_user: root
ansible_ssh_user: root
ansible_remote_user: gethmann
remote_user: gethmann
ip_suffix: 100
loc: 612
os: CentOS 7.4
computer_name: kantine
......@@ -3,4 +3,4 @@ user_account: bernhard
ip_suffix: 127
loc: 622
os: Fedora 27
computer_name: Majestix
computer_name: majestix
......@@ -2,8 +2,8 @@ ansible_user: root
user_account: gethmann
ip_suffix: 126
loc: 618
os: Fedora 27
computer_name: Obelix
os: Fedora 29
computer_name: obelix
extra_software:
- borgbackup
......@@ -3,7 +3,7 @@ user_account: ning
ip_suffix: 115
loc: 619
os: Fedora 29
computer_name: Costa Y Bravo
computer_name: pepe
extra_software:
- python-qt5
......
......@@ -3,5 +3,5 @@ ansible_user: root
user_account: rossmanith
ip_suffix: 116
loc: 619
os: Fedora 27
computer_name: Spürnix
os: Fedora 29
computer_name: spuernix
......@@ -3,4 +3,4 @@ user_account: tong
ip_suffix: 120
loc: 621
os: Fedora 28
computer_name: Teefax
computer_name: teefax
# stable
[clients]
las112.las.kit.edu
las113.las.kit.edu
las115.las.kit.edu
las116.las.kit.edu
las117.las.kit.edu
las118.las.kit.edu
las120.las.kit.edu
# las122.las.kit.edu
las126.las.kit.edu
las-gethmann.las.kit.edu
gutemine.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
spuernix.las.kit.edu
idefix.las.kit.edu
amnesix.las.kit.edu
teefax.las.kit.edu
obelix.las.kit.edu
lysander.las.kit.edu
[desktop]
las112.las.kit.edu
las113.las.kit.edu
las115.las.kit.edu
las116.las.kit.edu
las117.las.kit.edu
las118.las.kit.edu
las120.las.kit.edu
# las122.las.kit.edu
las-gethmann.las.kit.edu
gutemine.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
spuernix.las.kit.edu
idefix.las.kit.edu
amnesix.las.kit.edu
teefax.las.kit.edu
lysander.las.kit.edu
[graphics]
las113.las.kit.edu
las-gethmann.las.kit.edu
las118.las.kit.edu
asterix.las.kit.edu
lysander.las.kit.edu
amnesix.las.kit.edu
[lasarchiv]
las113.las.kit.edu
las115.las.kit.edu
las117.las.kit.edu
las118.las.kit.edu
las120.las.kit.edu
las122.las.kit.edu
las126.las.kit.edu
las127.las.kit.edu
las-gethmann.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
idefix.las.kit.edu
amnesix.las.kit.edu
teefax.las.kit.edu
obelix.las.kit.edu
majestix.las.kit.edu
lysander.las.kit.edu
[python]
las112.las.kit.edu
las113.las.kit.edu
las115.las.kit.edu
las117.las.kit.edu
las118.las.kit.edu
las120.las.kit.edu
las122.las.kit.edu
las-gethmann.las.kit.edu
gutemine.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
idefix.las.kit.edu
amnesix.las.kit.edu
teefax.las.kit.edu
lysander.las.kit.edu
[kdev] # KDevelope
[jabref]
[zotero]
las113.las.kit.edu
las117.las.kit.edu
las-gethmann.las.kit.edu
asterix.las.kit.edu
idefix.las.kit.edu
lysander.las.kit.edu
[pynaff]
las-gethmann.las.kit.edu
las113.las.kit.edu
las126.las.kit.edu
lysander.las.kit.edu
asterix.las.kit.edu
obelix.las.kit.edu
[pycharm]
las-gethmann.las.kit.edu
las113.las.kit.edu
las115.las.kit.edu
las117.las.kit.edu
lysander.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
idefix.las.kit.edu
[chrome]
las-gethmann.las.kit.edu
lysander.las.kit.edu
[latex]
las112.las.kit.edu
las-gethmann.las.kit.edu
las113.las.kit.edu
las115.las.kit.edu
las117.las.kit.edu
las118.las.kit.edu
las120.las.kit.edu
gutemine.las.kit.edu
lysander.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
idefix.las.kit.edu
amnesix.las.kit.edu
teefax.las.kit.edu
[opera]
las113.las.kit.edu
las115.las.kit.edu
las117.las.kit.edu
las126.las.kit.edu
las127.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
idefix.las.kit.edu
obelix.las.kit.edu
majestix.las.kit.edu
[mad8]
# depercated for Fedora >=26
[nfs-server]
las126.las.kit.edu
obelix.las.kit.edu
# developement
[dhcpd]
las101.las.kit.edu
las126.las.kit.edu
[lab]
# las93.las.kit.edu
[rpmbuild]
las113.las.kit.edu
las-gethmann.las.kit.edu
asterix.las.kit.edu
lysander.las.kit.edu
[elegant]
las113.las.kit.edu
las117.las.kit.edu
las126.las.kit.edu
las-gethmann.las.kit.edu
asterix.las.kit.edu
idefix.las.kit.edu
obelix.las.kit.edu
lysander.las.kit.edu
[epics]
las112.las.kit.edu
las113.las.kit.edu
las115.las.kit.edu
las117.las.kit.edu
las-gethmann.las.kit.edu
gutemine.las.kit.edu
asterix.las.kit.edu
pepe.las.kit.edu
idefix.las.kit.edu
lysander.las.kit.edu
[ripgrep]
las101.las.kit.edu
las113.las.kit.edu
las-gethmann.las.kit.edu
asterix.las.kit.edu
lysander.las.kit.edu
[inovesa]
las113.las.kit.edu
asterix.las.kit.edu
[ipynb] # Jupyter notebook
las117.las.kit.edu
las120.las.kit.edu
las122.las.kit.edu
las-gethmann.las.kit.edu
idefix.las.kit.edu
teefax.las.kit.edu
lysander.las.kit.edu
# semi stable
[tgu]
las115.las.kit.edu
pepe.las.kit.edu
[local]
127.0.0.1 ansible_connection=local
[admin_pcs]
las101.las.kit.edu
las113.las.kit.edu
las-gethmann.las.kit.edu
asterix.las.kit.edu
lysander.las.kit.edu
[server]
las101.las.kit.edu
......@@ -41,7 +41,7 @@ ErrorPolicy stop-printer
UUID urn:uuid:c20b481d-848e-30e6-5eab-8ba9fb397809
Info Oki MC851(PS)
Location Library
DeviceURI socket://129.13.108.106/
DeviceURI socket://oki.las.kit.edu/
State Idle
StateTime 1414591314
Type 8433756
......
......@@ -23,8 +23,15 @@
# state: present
# type: ethernet
- name: set hostname
become: yes
hostname:
name: "{{ computer_name }}.las.kit.edu"
when: "{{ ansible_facts.ansible_default_ipv4.network }} is '129.13.238.64'"
- name: set hostname
become: yes
hostname:
name: "las{{ ip_suffix }}.las.kit.edu"
when: "{{ ansible_facts.ansible_default_ipv4.network }} is '129.13.108.64'"
......@@ -2,21 +2,18 @@
# THIS ROLE IS NOT IDEMPOTENT, but just for installation!
- name: install host
become: yes
dnf:
name: "{{ item }}"
package:
name: ["freeipa-client", "sssd"]
state: installed
with_items:
- "freeipa-client"
- "sssd"
- name: add ipa hosts to etc
become: yes
lineinfile:
line: "{{ ipa_host_ip }} {{ ipa_host }}"
path: /etc/hosts
state: present
backup: yes
insertbefore: BOF
# - name: add ipa hosts to etc
# become: yes
# lineinfile:
# line: "{{ ipa_host_ip }} {{ ipa_host }}"
# path: /etc/hosts
# state: present
# backup: yes
# insertbefore: BOF
# TODO
# - name: copy server cert
......@@ -28,7 +25,7 @@
- name: set hostname
become: yes
hostname:
name: "las{{ ip_suffix }}.las.kit.edu"
name: "{{ computer_name }}.las.kit.edu"
# This is not idempotent!
- name: add host
......@@ -58,5 +55,5 @@
- name: activate host
become: yes
command: "ipa-client-install --hostname={{ ansible_fqdn }} --domain={{ ipa_domain }} --server={{ ipaserver1 }} --server={{ ipaserver2 }} --server={{ ipaserver3 }} --fixed-primary --mkhomedir -N --no-sshd --no-ssh -U --password={{ random_pass.stdout }}"
command: "ipa-client-install --hostname={{ ansible_fqdn }} --mkhomedir -N -U --password={{ random_pass.stdout }}"
when: random_pass.changed
......@@ -28,7 +28,7 @@
opts: "soft,timeo=14,intr,nosuid"
state: "{{ item }}"
become: yes
when: ansible_default_ipv4.address | ipaddr('129.13.108.64/26')
when: (ansible_default_ipv4.address | ipaddr('129.13.108.64/26')) or (ansible_default_ipv4.address | ipaddr('129.13.238.64/26'))
with_items:
- mounted
- present
export LMX_LICENSE_PATH=@129.13.108.100
export VECTORFIELD_LICENSE_PATH=@129.13.108.100
export LMX_LICENSE_PATH=@opera.las.kit.edu
export VECTORFIELD_LICENSE_PATH=@opera.las.kit.edu
export VFDIR=/usr/local/share/Opera_18R2/code/
# This causes git to not work properly anymore (e.g. git pull --rebase)
# export PATH=/usr/local/share/Opera_17R1/bin:"${PATH}"
......
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