Skip to content
Snippets Groups Projects
Commit 12f5700e authored by Lars Beckers's avatar Lars Beckers
Browse files

branding: make role configurable, add support for apt repo and tls ca

parent 5a824a6b
No related branches found
No related tags found
No related merge requests found
---
branding_motd: motd.j2
branding_issuenet: issue.net.j2
---
- name: update apt cache
apt: update_cache=yes
---
# file: roles/common/tasks/shell.yml
# file: supplemental/branding/tasks/main.yml
- name: ensure deployment of greeter
copy: src=fsmpi/motd dest=/etc/motd owner=root group=root mode=0644
- name: ensure deployment of motd
template:
src: "{{ branding_motd }}"
dest: /etc/motd
owner: root
group: root
mode: 0644
when: branding_motd
tags:
- config
- branding
- shell
- fsmpi
- name: ensure deployment of issue.net
copy: src=fsmpi/issue.net dest=/etc/issue.net owner=root group=root mode=0644
template:
src: "{{ branding_issuenet }}"
dest: /etc/issue.net
owner: root
group: root
mode: 0644
when: branding_issuenet
tags:
- config
- branding
- shell
- fsmpi
- name: ensure deployment of a fancy gitconfig for root
copy: src=fsmpi/gitconfig dest=/root/.gitconfig owner=root group=root mode=0640
- name: ensure deployment of gitconfig for root
template:
src: gitconfig.j2
dest: /root/.gitconfig
owner: root
group: root
mode: 0640
tags:
- config
- branding
- shell
- root
- fsmpi
- name: ensure deployment of CA certificates
copy:
src: "{{ item }}"
dest: "/etc/ssl/certs/{{ item }}"
owner: root
group: root
mode: 0644
with_items: "{{ branding_cacerts }}"
when: branding_cacerts is defined
tags:
- branding
- tls
- name: ensure deployment of apt repository keys
apt_key:
data: "{{ lookup('file', item) }}"
state: present
with_items: "{{ branding_apt_keys }}"
when: branding_apt_keys is defined
notify:
- update apt cache
tags:
- branding
- repos
- name: ensure configuration of apt repositories
apt_repository:
repo: 'deb [arch=amd64] {{ item }}'
state: present
with_items: "{{ branding_apt_repos }}"
when: branding_apt_repos is defined
notify:
- update apt cache
tags:
- branding
- repos
[user]
name = FSMPI Admin-Team
email = admin@fsmpi.rwth-aachen.de
name = {{ branding_root_name }}
email = {{ branding_root_mail }}
[push]
default = simple
[alias]
......
Fachschaft Mathematik/Physik/Informatik, RWTH Aachen
{{ branding_organization }}
Access to this machine is for authorized personnel only.
#########################################################################
# RWTH Aachen University -- Fachschaft Mathematik/Physik/Informatik #
#{{ ' '*((71-branding_organization|length)/2)|round(0, 'floor')|int }}{{ branding_organization }}{{ ' '*((71-branding_organization|length)/2)|round(0, 'ceil')|int }}#
#########################################################################
# #
# If you have any problems send an eMail to #
# #
# admin@fsmpi.rwth-aachen.de #
#{{ ' '*((71-branding_root_mail|length)/2)|round(0, 'floor')|int }}{{ branding_root_mail }}{{ ' '*((71-branding_root_mail|length)/2)|round(0, 'ceil')|int }}#
# #
#########################################################################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment