
Instead of breaking up package installations and removals into separate tasks, this patch moves them all under one task that does two execution steps. In addition, the security_enable_chrony variable was added to control the installation and configuration of chrony. The tox tests for the role were configured to skip chrony in the gate using a skipped tag, but this caused the package install/removal task to get skipped. Docs/release notes are included for the chrony change. Change-Id: I1def033953b50be3911cd932fd17b10dd2c658b7
89 lines
2.3 KiB
YAML
89 lines
2.3 KiB
YAML
---
|
|
# Copyright 2016, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Maximum age of the apt cache before a refresh is required
|
|
cache_timeout: 600
|
|
|
|
# Configuration file paths
|
|
pam_auth_file: /etc/pam.d/common-auth
|
|
pam_password_file: /etc/pam.d/common-password
|
|
vsftpd_conf_file: /etc/vsftpd.conf
|
|
grub_conf_file: /boot/grub/grub.cfg
|
|
aide_cron_job_path: /etc/cron.daily/aide
|
|
aide_database_file: /var/lib/aide/aide.db
|
|
|
|
# Service name
|
|
cron_service: cron
|
|
ssh_service: ssh
|
|
chrony_service: chrony
|
|
|
|
# Commands
|
|
grub_update_cmd: "update-grub"
|
|
|
|
# Packages to add or remove
|
|
stig_packages:
|
|
- packages:
|
|
- auditd
|
|
- aide
|
|
- aide-common
|
|
- chrony
|
|
- debsums
|
|
- logrotate
|
|
- postfix
|
|
state: "{{ security_package_state }}"
|
|
enabled: True
|
|
- packages:
|
|
- apparmor
|
|
- apparmor-profiles
|
|
- apparmor-utils
|
|
state: "{{ security_package_state }}"
|
|
enabled: "{{ security_enable_linux_security_module }}"
|
|
- packages:
|
|
- fail2ban
|
|
state: "{{ security_package_state }}"
|
|
enabled: "{{ security_install_fail2ban }}"
|
|
- packages:
|
|
- xinetd
|
|
state: absent
|
|
enabled: "{{ security_remove_xinetd }}"
|
|
- packages:
|
|
- nis
|
|
state: absent
|
|
enabled: "{{ security_remove_ypserv }}"
|
|
- packages:
|
|
- tftpd
|
|
state: absent
|
|
enabled: "{{ security_remove_tftp_server }}"
|
|
- packages:
|
|
- slapd
|
|
state: absent
|
|
enabled: "{{ security_remove_ldap_server }}"
|
|
- packages:
|
|
- sendmail
|
|
state: absent
|
|
enabled: "{{ security_remove_sendmail }}"
|
|
- packages:
|
|
- xorg-xserver
|
|
state: absent
|
|
enabled: "{{ security_remove_xorg }}"
|
|
- packages:
|
|
- rsh-server
|
|
state: absent
|
|
enabled: "{{ security_remove_rsh_server }}"
|
|
- packages:
|
|
- telnetd
|
|
state: absent
|
|
enabled: "{{ security_remove_telnet_server }}"
|