-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from carlwilson/maint/rename-roles
MAINT: Remove DDHN remains
- Loading branch information
Showing
41 changed files
with
160 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,5 @@ | |
- hosts: all | ||
become: true | ||
roles: | ||
- { role: ddhn.setup } | ||
- { role: viper.setup } | ||
- { role: viper.tools } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
# viper.setup default values | ||
viper_env_apt_defaults: | ||
# Source control a | ||
- "git" | ||
# Debian Stretch lacks the ability to download apt over HTTPS | ||
- "apt-transport-https" | ||
# Install some helper network tools | ||
- "psmisc" | ||
- "net-tools" | ||
# Zip and unzip are always handy | ||
- zip | ||
- unzip | ||
# Tools for keyboard and console setup | ||
- keyboard-configuration | ||
- console-setup | ||
# Open JDK 11 for Java | ||
- openjdk-11-jre | ||
- openjdk-11-doc | ||
- openjdk-11-source | ||
# GNOME desktop and Nemo add on for icon display | ||
- task-gnome-desktop | ||
- nemo | ||
|
||
viper: | ||
setup: | ||
prereqs: | ||
apt: "{{ viper_env_prereqs_apt | default (viper_env_apt_defaults) }}" | ||
hostname: "{{ viper_env_hostname | default('localhost') }}" | ||
hostdomain: "{{ viper_env_hostdomain | default('localdomain') }}" | ||
fqdn: "{{ viper_env_fqdn | default('localhost.localdomain') }}" | ||
timezone: "{{ viper_env_timezone | default('Europe/London') }}" | ||
iptables: | ||
interfaces: "{{ viper_env_http_interfaces | default([]) }}" | ||
ip: | ||
v4: "{{ viper_env_ip | default('127.0.0.1') }}" | ||
v6: "{{ viper_env_ip_v6 | default('') }}" | ||
port: | ||
http: "{{ viper_env_port_http | default('') }}" | ||
https: "{{ viper_env_port_https | default('') }}" | ||
open_ports: "{{ viper_env_open_ports | default([]) }}" | ||
limited_account: | ||
name: "{{ viper_env_user_name | default('viper') }}" | ||
password: "" | ||
home: "{{ viper_env_user_home | default('/home/viper') }}" | ||
default_locale: en_GB.UTF-8 | ||
locales: | ||
- da_DK.UTF-8 | ||
- de_DE.UTF-8 | ||
- en_GB.UTF-8 | ||
- en_US.UTF-8 | ||
- fr_FR.UTF-8 | ||
- nl_NL.UTF-8 | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
ansible/roles/ddhn.setup/handlers/main.yml → ansible/roles/viper.setup/handlers/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
# ddhn.setup handlers | ||
# viper.setup handlers | ||
|
||
- name: restart ssh | ||
service: | ||
|
2 changes: 1 addition & 1 deletion
2
ansible/roles/ddhn.setup/meta/main.yml → ansible/roles/viper.setup/meta/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ddhn.setup metadata | ||
# viper.setup metadata | ||
--- | ||
galaxy_info: | ||
author: "Carl Wilson" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# desktop Environment setup for ViPER tools | ||
|
||
- name: "Desktop | Create Nemo config directory." | ||
file: | ||
path: "/home/{{ viper.setup.limited_account.name }}/.config/autostart" | ||
state: directory | ||
mode: '0755' | ||
owner: "{{ viper.setup.limited_account.name }}" | ||
group: "{{ viper.setup.limited_account.name }}" | ||
|
||
- name: "Desktop | Add hidden desktop file for Nemo and icons" | ||
copy: | ||
src: "files/home/.config/autostart/nemo-autostart-with-gnome.desktop" | ||
dest: "/home/{{ viper.setup.limited_account.name }}/.config/autostart/nemo-autostart-with-gnome.desktop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
# Main task entry point for ViPER.setup | ||
|
||
- name: "ViPER SETUP | Update host OS and setup server." | ||
import_tasks: server.yml | ||
|
||
- name: "ViPER SETUP | Install prerequisites." | ||
import_tasks: prerequisites.yml | ||
|
||
- name: "ViPER SETUP | Set up user account with SSH key." | ||
import_tasks: user.yml | ||
|
||
- name: "ViPER SETUP | Secure server." | ||
import_tasks: security/main.yml | ||
|
||
- name: "ViPER SETUP | Setup desktop environment." | ||
import_tasks: desktop.yml |
8 changes: 4 additions & 4 deletions
8
.../roles/ddhn.setup/tasks/prerequisites.yml → ...roles/viper.setup/tasks/prerequisites.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...security/iptables/iptables-persistent.yml → ...security/iptables/iptables-persistent.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...up/tasks/security/iptables/ipv6-rules.yml → ...up/tasks/security/iptables/ipv6-rules.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...hn.setup/tasks/security/iptables/main.yml → ...er.setup/tasks/security/iptables/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
# Main task entry point for ddhn.setup | ||
# Main task entry point for viper.setup | ||
|
||
- name: "IMPORT | IPTABLES rules for IPV4." | ||
import_tasks: ipv4-rules.yml | ||
when: ddhn.setup.ip.v4 is defined and ddhn.setup.ip.v4 != "" | ||
when: viper.setup.ip.v4 is defined and viper.setup.ip.v4 != "" | ||
|
||
- name: "IMPORT | IPTABLES rules for IPV6." | ||
import_tasks: ipv6-rules.yml | ||
when: ddhn.setup.ip.v6 is defined and ddhn.setup.ip.v6 != "" | ||
when: viper.setup.ip.v6 is defined and viper.setup.ip.v6 != "" | ||
|
||
- name: "IMPORT | Set up persistence for IPTABLES." | ||
import_tasks: iptables-persistent.yml |
2 changes: 1 addition & 1 deletion
2
.../roles/ddhn.setup/tasks/security/main.yml → ...roles/viper.setup/tasks/security/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/roles/ddhn.setup/tasks/security/ssh.yml → .../roles/viper.setup/tasks/security/ssh.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
ansible/roles/ddhn.setup/tasks/server.yml → ansible/roles/viper.setup/tasks/server.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
--- | ||
# Server tasks for ddhn.setup | ||
# Server tasks for viper.setup | ||
|
||
- name: "APT | Update apt repos and upgrade distro." | ||
apt: | ||
update_cache: "yes" | ||
upgrade: "dist" | ||
|
||
- name: "HOST | Set the hostname: {{ ddhn.setup.hostname }}." | ||
- name: "HOST | Set the hostname: {{ viper.setup.hostname }}." | ||
hostname: | ||
name: "{{ ddhn.setup.hostname }}" | ||
name: "{{ viper.setup.hostname }}" | ||
|
||
- name: "HOST | Set up /etc/hosts" | ||
template: | ||
src: "etc/hosts.j2" | ||
dest: "/etc/hosts" | ||
owner: "root" | ||
|
||
- name: "HOST | Set the timezone: {{ ddhn.setup.timezone }}." | ||
- name: "HOST | Set the timezone: {{ viper.setup.timezone }}." | ||
timezone: | ||
name: "{{ ddhn.setup.timezone }}" | ||
name: "{{ viper.setup.timezone }}" |
Oops, something went wrong.