Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump roles jenkins, chrony #999

Merged
merged 5 commits into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions build.yml
Original file line number Diff line number Diff line change
@@ -10,8 +10,17 @@
pre_tasks:
- name: Install Dependencies
package:
name: ['policycoreutils-python']
enablerepo: crb
name: ["policycoreutils-python-utils", "python3-wheel-wheel"]
become: true
- name: permit traffic in default zone for http and https service
ansible.posix.firewalld:
service: "{{ item }}"
permanent: true
state: enabled
loop:
- http
- https
collections:
- devsec.hardening
roles:
@@ -21,7 +30,7 @@
- hxr.admin-tools
- influxdata.chrony
- hxr.monitor-email
- linuxhq.yum_cron
- usegalaxy-eu.autoupdates
- galaxyproject.nginx
- ssh-host-sign
# - hxr.autofs-format-n-mount
@@ -31,6 +40,6 @@
- usegalaxy-eu.jenkins-ssh-key
## END CUSTOM
- dj-wasabi.telegraf
# - os_hardening
- os_hardening
# - nginx_hardening
# - ssh_hardening
- ssh_hardening
31 changes: 29 additions & 2 deletions group_vars/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
---
# Admin Tools
admin_packages:
- nano
- vim
- htop
- strace
- jq
- iftop
- wget
- curl
- tmux
- git
- nmap
- tcpdump
- net-tools
- unzip
- tmpwatch
- rclone
- "{{ 'byobu' if ansible_distribution_major_version < '9' else omit }}"
# centos specific
- setools-console
- yum-utils
- bind-utils
- nfs-utils

# Jenkins
jenkins_home: /opt/jenkins/jenkins
jenkins_prefer_lts: true
@@ -8,7 +33,7 @@ jenkins_admin_token: "{{ jenkins_admin_token_secret }}"

# runSetupWizard=false is default
# Add the CSP so we can embed galaxy on WF testing pages / display HTML
jenkins_java_options: "--enable-future-java -Dhudson.model.ParametersAction.keepUndefinedParameters=true -Djenkins.install.runSetupWizard=false -Dhudson.model.DirectoryBrowserSupport.CSP=\\\"default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'unsafe-inline'; frame-src *;\\\""
jenkins_java_options: "-Dhudson.model.ParametersAction.keepUndefinedParameters=true -Djenkins.install.runSetupWizard=false -Dhudson.model.DirectoryBrowserSupport.CSP=\\\"default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'unsafe-inline'; frame-src *;\\\""

# Certbot
certbot_auth_method: --webroot
@@ -17,10 +42,12 @@ certbot_share_key_users:
- nginx

certbot_post_renewal: |
systemctl restart nginx || true
systemctl restart nginx || true

# NGINX
nginx_enable_default_server: false
nginx_servers:
- redirect-ssl
nginx_ssl_servers:
- build
nginx_conf_http:
4 changes: 2 additions & 2 deletions requirements.yaml
Original file line number Diff line number Diff line change
@@ -61,12 +61,12 @@ roles:
- name: geerlingguy.java
version: 2.3.2
- name: geerlingguy.jenkins
version: 4.3.0
version: 5.1.0
- name: geerlingguy.repo-epel
version: 3.1.0
- name: influxdata.chrony
src: https://github.com/usegalaxy-eu/ansible-chrony
version: 0.1.0
version: 0.1.1
- name: linuxhq.yum_cron
version: master
- name: galaxyproject.gxadmin