main #31
|
@ -0,0 +1,10 @@
|
||||||
|
[defaults]
|
||||||
|
roles_path = ./roles
|
||||||
|
inventory = ./hosts
|
||||||
|
gathering = explicit
|
||||||
|
interpreter_python = auto_silent
|
||||||
|
remote_user = root
|
||||||
|
host_key_checking = False
|
||||||
|
|
||||||
|
[privilege_escalation]
|
||||||
|
become = True
|
|
@ -0,0 +1,6 @@
|
||||||
|
resolv:
|
||||||
|
domain: verdnatura.es
|
||||||
|
search: verdnatura.es
|
||||||
|
resolvers:
|
||||||
|
- '10.0.0.4'
|
||||||
|
- '10.0.0.5'
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'cephtest01'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: cephtest01.lab.verdnatura.es cephtest01
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'cephtest02'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: cephtest02.lab.verdnatura.es cephtest02
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'cephtest03'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: cephtest03.lab.verdnatura.es cephtest03
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
|
@ -1,43 +0,0 @@
|
||||||
---
|
|
||||||
bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
# EXAMPLE
|
|
||||||
# bantime: "604800"
|
|
||||||
# maxretry: "4"
|
|
||||||
# findtime: "604800"
|
|
||||||
# jails:
|
|
||||||
#- name: NAME-FILTER(list -> /etc/fail2ban/filter.d/somefilenamefilter) - (first JAIL SSH)
|
|
||||||
# enabled: true
|
|
||||||
# filter: somefilenamefilter
|
|
||||||
# logpath: /var/log/logofserviceauths
|
|
||||||
# port: ['nameofservice', 'PORTNUMBEROFSERVICE']
|
|
||||||
# maxretry: 4 # max retry to auth
|
|
||||||
# bantime: 604800 # 1week bantime in seconds
|
|
||||||
# findtime: 604800 # 1week time finding source-host auth
|
|
||||||
# action: "%(action_mwl)s"
|
|
||||||
#- name: NAME-FILTER(list -> /etc/fail2ban/filter.d/somefilenamefilter) - (second JAIL otherService)
|
|
||||||
# enabled: true
|
|
||||||
# filter: somefilenamefilter
|
|
||||||
# logpath: /var/log/logofserviceauths
|
|
||||||
# port: ['nameofservice', 'PORTNUMBEROFSERVICE']
|
|
||||||
# maxretry: 4 # max retry to auth
|
|
||||||
# bantime: 604800 # 1week bantime in seconds
|
|
||||||
# findtime: 604800 # 1week time finding source-host auth
|
|
||||||
# banaction: NAME-ACTION(list -> /etc/fail2ban/action.d/somefilenameaction)
|
|
||||||
# action: "%(action_mwl)s"
|
|
||||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
# 31536000 ; year
|
|
||||||
# 18144000 ; 30days
|
|
||||||
# 604800 ; 1 week
|
|
||||||
# 86400 ; 1 day
|
|
||||||
# 3600 ; 1 hour
|
|
||||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'vn-debian-test'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: vn-debian-test.lab.verdnatura.es vn-debian-test
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'ejemplo'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
#autofs_homes_enabled: True
|
|
||||||
autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'freeradius-playbook'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: freeradius-playbook.lab.verdnatura.es freeradius-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'freeradiustotp'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: freeradiustotp.servers.dc.verdnatura.es freeradiustotp
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: verdnatura.es
|
|
||||||
search_name: verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
fail2ban_enabled: True
|
|
||||||
#fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
#autofs_homes_enabled: True
|
|
||||||
autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'iventoy-test'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: iventoy-test.lab.verdnatura.es iventoy-test
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'iventoy'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: iventoy.servers.dc.verdnatura.es iventoy
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: dc.verdnatura.es
|
|
||||||
search_name: dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
bantime: "10m"
|
|
||||||
maxretry: "10"
|
|
||||||
findtime: "10m"
|
|
||||||
jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
filter: sshd
|
|
||||||
logpath: /var/log/auth.log
|
|
||||||
port: ['ssh', '22']
|
|
||||||
maxretry: 10
|
|
||||||
bantime: 10m
|
|
||||||
findtime: 10m
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'kube-master1'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'kube-master2'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'kube-master3'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'kube-worker1'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'kube-worker2'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'kube-worker3'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'kube-worker4'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'kubelab-proxy1'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: kubelab-proxy1.lab.verdnatura.es kubelab-proxy1
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
fail2ban_times:
|
|
||||||
bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
|
@ -1,137 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'nagiosql-db'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: nagiosql-db.verdnatura.es nagiosql-db
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
# ES UN CT , NO ES NECESARIO
|
|
||||||
#secure-grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
# ES UN CT , NO ES NECESARIO
|
|
||||||
#hot-plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
fail2ban_enabled: True
|
|
||||||
#fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
# ES UN CT , NO ES NECESARIO
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
# NO ESTA TESTEADO
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'openvpn-freeradius'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: openvpn-freeradius.lab.verdnatura.es openvpn-freeradius
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'pbx'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: pbx pbx.verdnatura.es pbx.static.verdnatura.es pbx.servers.dc.verdnatura.es
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: verdnatura.es
|
|
||||||
search_name: verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root-user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'test-playbook'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay-host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized-auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure-grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim-options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot-plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo-vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios-nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server-type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
#autofs-homes_enabled: True
|
|
||||||
autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
zabbix_agent_enabled: True
|
|
||||||
#zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'time1'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 10.0.1.87
|
|
||||||
name: time1.verdnatura.es time1
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: verdnatura.es
|
|
||||||
search_name: verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
#root_user_enabled: True
|
|
||||||
root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
#hostname_enabled: True
|
|
||||||
hostname_enabled: False
|
|
||||||
hostname: 'time2'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
#hosts_enabled: True
|
|
||||||
hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
#resolv_enabled: True
|
|
||||||
resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
#update_enabled: True
|
|
||||||
update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
#packages_enabled: True
|
|
||||||
packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
#relay_host_enabled: True
|
|
||||||
relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
#centralized_auth_enabled: True
|
|
||||||
centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
#sudoers_enabled: True
|
|
||||||
sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
#vim_options_enabled: True
|
|
||||||
vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
#motd_enabled: True
|
|
||||||
motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
#hot_plug_enabled: True
|
|
||||||
hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
#locales_enabled: True
|
|
||||||
locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
#tzdata_enabled: True
|
|
||||||
tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
#repo_vn_enabled: True
|
|
||||||
repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
#server_type_enabled: True
|
|
||||||
server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
#ntp_enabled: True
|
|
||||||
ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'vm-debian12'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: vm-debian12.lab.verdnatura.es vm-debian12
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.verdnatura.es
|
|
||||||
search_name: lab.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
#fail2ban_enabled: True
|
|
||||||
fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
nagios_nrpe_enabled: True
|
|
||||||
#nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'zabbix-frontend-web'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: zabbix-frontend-web.lab.dc.verdnatura.es zabbix-frontend-web
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
fail2ban_enabled: True
|
|
||||||
#fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
|
@ -1,133 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
### ROOT-USER ###############################################################
|
|
||||||
root_user_enabled: True
|
|
||||||
#root_user_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTNAME ################################################################
|
|
||||||
hostname_enabled: True
|
|
||||||
#hostname_enabled: False
|
|
||||||
hostname: 'zabbix-server-db'
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOSTS ###################################################################
|
|
||||||
hosts_enabled: True
|
|
||||||
#hosts_enabled: False
|
|
||||||
hosts:
|
|
||||||
- ip: 127.0.0.1
|
|
||||||
name: localhost
|
|
||||||
- ip: 127.0.1.1
|
|
||||||
name: zabbix-server-db.lab.dc.verdnatura.es zabbix-server-db
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RESOLV ##################################################################
|
|
||||||
resolv_enabled: True
|
|
||||||
#resolv_enabled: False
|
|
||||||
domain_name: lab.dc.verdnatura.es
|
|
||||||
search_name: lab.dc.verdnatura.es
|
|
||||||
resolvs:
|
|
||||||
- ip: 10.0.0.4
|
|
||||||
- ip: 10.0.0.5
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### UPDATE ##################################################################
|
|
||||||
update_enabled: True
|
|
||||||
#update_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### INSTALL PACKAGES ########################################################
|
|
||||||
packages_enabled: True
|
|
||||||
#packages_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### RELAY HOST SMTP #########################################################
|
|
||||||
relay_host_enabled: True
|
|
||||||
#relay_host_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### CENTRALIZED AUTH ########################################################
|
|
||||||
centralized_auth_enabled: True
|
|
||||||
#centralized_auth_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SUDOERS #################################################################
|
|
||||||
sudoers_enabled: True
|
|
||||||
#sudoers_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SECURE GRUB #############################################################
|
|
||||||
#secure_grub_enabled: True
|
|
||||||
secure_grub_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### VIM OPTIONS #############################################################
|
|
||||||
vim_options_enabled: True
|
|
||||||
#vim_options_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### MOTD ####################################################################
|
|
||||||
motd_enabled: True
|
|
||||||
#motd_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### HOT PLUG ################################################################
|
|
||||||
hot_plug_enabled: True
|
|
||||||
#hot_plug_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### LOCALES #################################################################
|
|
||||||
locales_enabled: True
|
|
||||||
#locales_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### TZDATA ##################################################################
|
|
||||||
tzdata_enabled: True
|
|
||||||
#tzdata_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### REPO VN #################################################################
|
|
||||||
repo_vn_enabled: True
|
|
||||||
#repo_vn_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### FAIL2BAN ################################################################
|
|
||||||
fail2ban_enabled: True
|
|
||||||
#fail2ban_enabled: False
|
|
||||||
fail2ban_times:
|
|
||||||
- bantime: "604800"
|
|
||||||
maxretry: "4"
|
|
||||||
findtime: "604800"
|
|
||||||
fail2ban_jails:
|
|
||||||
- name: sshd
|
|
||||||
enabled: true
|
|
||||||
port: ['22']
|
|
||||||
filter: sshd
|
|
||||||
logpath: "%(sshd_log)s"
|
|
||||||
backend: "%(sshd_backend)s"
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NAGIOS NRPE #############################################################
|
|
||||||
#nagios_nrpe_enabled: True
|
|
||||||
nagios_nrpe_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### SERVER TYPE #############################################################
|
|
||||||
server_type_enabled: True
|
|
||||||
#server_type_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### NTP #####################################################################
|
|
||||||
ntp_enabled: True
|
|
||||||
#ntp_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### AUTOFS HOMES ############################################################
|
|
||||||
autofs_homes_enabled: True
|
|
||||||
#autofs_homes_enabled: False
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
### ZABBIX AGENT ############################################################
|
|
||||||
#zabbix_agent_enabled: True
|
|
||||||
zabbix_agent_enabled: False
|
|
||||||
#############################################################################
|
|
70
hosts
70
hosts
|
@ -1,3 +1,34 @@
|
||||||
|
[ceph]
|
||||||
|
|
||||||
|
ceph1 ansible_host=ceph1.core.dc.verdnatura.es
|
||||||
|
ceph2 ansible_host=ceph2.core.dc.verdnatura.es
|
||||||
|
ceph3 ansible_host=ceph3.core.dc.verdnatura.es
|
||||||
|
|
||||||
|
[cephGw]
|
||||||
|
|
||||||
|
ceph-gw1 ansible_host=ceph-gw1.core.dc.verdnatura.es
|
||||||
|
ceph-gw2 ansible_host=ceph-gw2.core.dc.verdnatura.es
|
||||||
|
|
||||||
|
[pve]
|
||||||
|
|
||||||
|
pve01 ansible_host=pve01.core.dc.verdnatura.es
|
||||||
|
pve02 ansible_host=pve02.core.dc.verdnatura.es
|
||||||
|
pve03 ansible_host=pve03.core.dc.verdnatura.es
|
||||||
|
pve04 ansible_host=pve04.core.dc.verdnatura.es
|
||||||
|
pve05 ansible_host=pve04.core.dc.verdnatura.es
|
||||||
|
|
||||||
|
[coreHelper]
|
||||||
|
|
||||||
|
core-agent ansible_host=core-agent.core.dc.verdnatura.es
|
||||||
|
core-proxy ansible_host=core-proxy.core.dc.verdnatura.es
|
||||||
|
|
||||||
|
[core:children]
|
||||||
|
|
||||||
|
ceph
|
||||||
|
cephGw
|
||||||
|
pve
|
||||||
|
coreHelper
|
||||||
|
|
||||||
[servers]
|
[servers]
|
||||||
|
|
||||||
dhcp1 ansible_host=dhcp1.servers.dc.verdnatura.es
|
dhcp1 ansible_host=dhcp1.servers.dc.verdnatura.es
|
||||||
|
@ -45,10 +76,6 @@ debian12-vm ansible_host=debian12-vm.servers.dc.verdnatura.es
|
||||||
freeradiustotp ansible_host=freeradiustotp.servers.dc.verdnatura.es
|
freeradiustotp ansible_host=freeradiustotp.servers.dc.verdnatura.es
|
||||||
iventoy ansible_host=iventoy.servers.dc.verdnatura.es
|
iventoy ansible_host=iventoy.servers.dc.verdnatura.es
|
||||||
|
|
||||||
[devices]
|
|
||||||
|
|
||||||
nas2 ansible_host=nas2.servers.dc.verdnatura.es
|
|
||||||
|
|
||||||
[windows]
|
[windows]
|
||||||
|
|
||||||
a3 ansible_host=a3.outsource.dc.verdnatura.es
|
a3 ansible_host=a3.outsource.dc.verdnatura.es
|
||||||
|
@ -67,35 +94,20 @@ docuware ansible_host=docuware.outsource.dc.verdnatura.es
|
||||||
[backup]
|
[backup]
|
||||||
|
|
||||||
vm-backup ansible_host=vm-backup.backup.dc.verdnatura.es
|
vm-backup ansible_host=vm-backup.backup.dc.verdnatura.es
|
||||||
kube-backup ansible_host=kube-backup.backup.dc.verdnatura.es
|
|
||||||
backup-nas ansible_host=backup-nas.backup.dc.verdnatura.es
|
backup-nas ansible_host=backup-nas.backup.dc.verdnatura.es
|
||||||
bacularis ansible_host=bacularis.backup.dc.verdnatura.es
|
bacularis ansible_host=bacularis.backup.dc.verdnatura.es
|
||||||
bacula-dir ansible_host=bacula-dir.backup.dc.verdnatura.es
|
bacula-dir ansible_host=bacula-dir.backup.dc.verdnatura.es
|
||||||
bacula-db ansible_host=bacula-db.backup.dc.verdnatura.es
|
bacula-db ansible_host=bacula-db.backup.dc.verdnatura.es
|
||||||
|
|
||||||
[pve]
|
[kubeMaster]
|
||||||
|
|
||||||
pve01 ansible_host=pve01.core.dc.verdnatura.es
|
|
||||||
pve02 ansible_host=pve02.core.dc.verdnatura.es
|
|
||||||
pve03 ansible_host=pve03.core.dc.verdnatura.es
|
|
||||||
pve04 ansible_host=pve04.core.dc.verdnatura.es
|
|
||||||
|
|
||||||
|
|
||||||
[pve-ilo]
|
|
||||||
|
|
||||||
pve01-ilo ansible_host=pve01-ilo.core.dc.verdnatura.es
|
|
||||||
pve02-ilo ansible_host=pve02-ilo.core.dc.verdnatura.es
|
|
||||||
pve03-ilo ansible_host=pve03-ilo.core.dc.verdnatura.es
|
|
||||||
pve04-ilo ansible_host=pve04-ilo.core.dc.verdnatura.es
|
|
||||||
pve05-ilo ansible_host=pve05-ilo.core.dc.verdnatura.es
|
|
||||||
|
|
||||||
[kube-master]
|
|
||||||
|
|
||||||
kube-master1 ansible_host=kube-master1.servers.dc.verdnatura.es
|
kube-master1 ansible_host=kube-master1.servers.dc.verdnatura.es
|
||||||
kube-master2 ansible_host=kube-master2.servers.dc.verdnatura.es
|
kube-master2 ansible_host=kube-master2.servers.dc.verdnatura.es
|
||||||
kube-master3 ansible_host=kube-master3.servers.dc.verdnatura.es
|
kube-master3 ansible_host=kube-master3.servers.dc.verdnatura.es
|
||||||
|
kube-master4 ansible_host=kube-master4.servers.dc.verdnatura.es
|
||||||
|
kube-master5 ansible_host=kube-master5.servers.dc.verdnatura.es
|
||||||
|
|
||||||
[kube-worker]
|
[kubeWorker]
|
||||||
|
|
||||||
kube-worker1 ansible_host=kube-worker1.servers.dc.verdnatura.es
|
kube-worker1 ansible_host=kube-worker1.servers.dc.verdnatura.es
|
||||||
kube-worker2 ansible_host=kube-worker2.servers.dc.verdnatura.es
|
kube-worker2 ansible_host=kube-worker2.servers.dc.verdnatura.es
|
||||||
|
@ -103,21 +115,21 @@ kube-worker3 ansible_host=kube-worker3.servers.dc.verdnatura.es
|
||||||
kube-worker4 ansible_host=kube-worker4.servers.dc.verdnatura.es
|
kube-worker4 ansible_host=kube-worker4.servers.dc.verdnatura.es
|
||||||
kube-worker5 ansible_host=kube-worker5.servers.dc.verdnatura.es
|
kube-worker5 ansible_host=kube-worker5.servers.dc.verdnatura.es
|
||||||
|
|
||||||
[kube-proxy]
|
[kubeProxy]
|
||||||
|
|
||||||
kube-proxy1 ansible_host=kube-proxy1.servers.dc.verdnatura.es
|
kube-proxy1 ansible_host=kube-proxy1.servers.dc.verdnatura.es
|
||||||
kube-proxy2 ansible_host=kube-proxy2.servers.dc.verdnatura.es
|
kube-proxy2 ansible_host=kube-proxy2.servers.dc.verdnatura.es
|
||||||
|
|
||||||
[kube-backup]
|
[kubeBackup]
|
||||||
|
|
||||||
kube-helm ansible_host=kube-helm.servers.dc.verdnatura.es
|
kube-helm ansible_host=kube-helm.servers.dc.verdnatura.es
|
||||||
|
|
||||||
[kube:children]
|
[kube:children]
|
||||||
|
|
||||||
kube-master
|
kubeMaster
|
||||||
kube-worker
|
kubeWorker
|
||||||
kube-proxy
|
kubeProxy
|
||||||
kube-backup
|
kubeBackup
|
||||||
|
|
||||||
[test]
|
[test]
|
||||||
|
|
||||||
|
|
71
hosts2
71
hosts2
|
@ -1,71 +0,0 @@
|
||||||
[pcscomerciales]
|
|
||||||
|
|
||||||
pc120 ansible_host=pc120.algemesi.verdnatura.es
|
|
||||||
pc213 ansible_host=pc213.algemesi.verdnatura.es
|
|
||||||
pc227 ansible_host=pc227.algemesi.verdnatura.es
|
|
||||||
pc235 ansible_host=pc235.algemesi.verdnatura.es
|
|
||||||
pc237 ansible_host=pc237.algemesi.verdnatura.es
|
|
||||||
pc243 ansible_host=pc243.algemesi.verdnatura.es
|
|
||||||
pc278 ansible_host=pc278.algemesi.verdnatura.es
|
|
||||||
pc279 ansible_host=pc279.algemesi.verdnatura.es
|
|
||||||
pc281 ansible_host=pc281.algemesi.verdnatura.es
|
|
||||||
pc289 ansible_host=pc289.algemesi.verdnatura.es
|
|
||||||
pc290 ansible_host=pc290.algemesi.verdnatura.es
|
|
||||||
pc291 ansible_host=pc291.algemesi.verdnatura.es
|
|
||||||
pc300 ansible_host=pc300.algemesi.verdnatura.es
|
|
||||||
pc301 ansible_host=pc301.algemesi.verdnatura.es
|
|
||||||
pc302 ansible_host=pc302.algemesi.verdnatura.es
|
|
||||||
pc304 ansible_host=pc304.algemesi.verdnatura.es
|
|
||||||
pc305 ansible_host=pc305.algemesi.verdnatura.es
|
|
||||||
pc308 ansible_host=pc308.algemesi.verdnatura.es
|
|
||||||
pc311 ansible_host=pc311.algemesi.verdnatura.es
|
|
||||||
pc312 ansible_host=pc312.algemesi.verdnatura.es
|
|
||||||
pc313 ansible_host=pc313.algemesi.verdnatura.es
|
|
||||||
pc318 ansible_host=pc318.algemesi.verdnatura.es
|
|
||||||
pc328 ansible_host=pc328.algemesi.verdnatura.es
|
|
||||||
pc342 ansible_host=pc342.algemesi.verdnatura.es
|
|
||||||
pc344 ansible_host=pc344.algemesi.verdnatura.es
|
|
||||||
pc350 ansible_host=pc350.algemesi.verdnatura.es
|
|
||||||
pc356 ansible_host=pc356.algemesi.verdnatura.es
|
|
||||||
pc358 ansible_host=pc358.algemesi.verdnatura.es
|
|
||||||
pc367 ansible_host=pc367.algemesi.verdnatura.es
|
|
||||||
pc371 ansible_host=pc371.algemesi.verdnatura.es
|
|
||||||
pc372 ansible_host=pc372.algemesi.verdnatura.es
|
|
||||||
pc373 ansible_host=pc373.algemesi.verdnatura.es
|
|
||||||
pc377 ansible_host=pc377.algemesi.verdnatura.es
|
|
||||||
pc378 ansible_host=pc378.algemesi.verdnatura.es
|
|
||||||
pc381 ansible_host=pc381.algemesi.verdnatura.es
|
|
||||||
pc382 ansible_host=pc382.algemesi.verdnatura.es
|
|
||||||
pc383 ansible_host=pc383.algemesi.verdnatura.es
|
|
||||||
pc385 ansible_host=pc385.algemesi.verdnatura.es
|
|
||||||
pc386 ansible_host=pc386.algemesi.verdnatura.es
|
|
||||||
pc387 ansible_host=pc387.algemesi.verdnatura.es
|
|
||||||
pc388 ansible_host=pc388.algemesi.verdnatura.es
|
|
||||||
pc389 ansible_host=pc389.algemesi.verdnatura.es
|
|
||||||
pc390 ansible_host=pc390.algemesi.verdnatura.es
|
|
||||||
pc391 ansible_host=pc391.algemesi.verdnatura.es
|
|
||||||
pc392 ansible_host=pc392.algemesi.verdnatura.es
|
|
||||||
pc393 ansible_host=pc393.algemesi.verdnatura.es
|
|
||||||
pc396 ansible_host=pc396.algemesi.verdnatura.es
|
|
||||||
pc397 ansible_host=pc397.algemesi.verdnatura.es
|
|
||||||
pc409 ansible_host=pc409.algemesi.verdnatura.es
|
|
||||||
pc413 ansible_host=pc413.algemesi.verdnatura.es
|
|
||||||
pc415 ansible_host=pc415.algemesi.verdnatura.es
|
|
||||||
pc417 ansible_host=pc417.algemesi.verdnatura.es
|
|
||||||
pc426 ansible_host=pc426.algemesi.verdnatura.es
|
|
||||||
pc429 ansible_host=pc429.algemesi.verdnatura.es
|
|
||||||
pc431 ansible_host=pc431.algemesi.verdnatura.es
|
|
||||||
pc432 ansible_host=pc432.algemesi.verdnatura.es
|
|
||||||
pc440 ansible_host=pc440.algemesi.verdnatura.es
|
|
||||||
pc456 ansible_host=pc456.algemesi.verdnatura.es
|
|
||||||
pc457 ansible_host=pc457.algemesi.verdnatura.es
|
|
||||||
pc458 ansible_host=pc458.algemesi.verdnatura.es
|
|
||||||
pc459 ansible_host=pc459.algemesi.verdnatura.es
|
|
||||||
pc461 ansible_host=pc461.algemesi.verdnatura.es
|
|
||||||
pc463 ansible_host=pc463.algemesi.verdnatura.es
|
|
||||||
pc465 ansible_host=pc465.algemesi.verdnatura.es
|
|
||||||
pc466 ansible_host=pc466.algemesi.verdnatura.es
|
|
||||||
pc467 ansible_host=pc467.algemesi.verdnatura.es
|
|
||||||
pc468 ansible_host=pc468.algemesi.verdnatura.es
|
|
||||||
pc473 ansible_host=pc473.algemesi.verdnatura.es
|
|
||||||
pc476 ansible_host=pc476.algemesi.verdnatura.es
|
|
|
@ -1,162 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
# - name: "[CONFIG AWX-USER] Create awx user and config ssh-key"
|
|
||||||
# import_role:
|
|
||||||
# name: config-awx-user
|
|
||||||
# tags: config-awx-user_config
|
|
||||||
|
|
||||||
- name: "[CONFIG ROOT USER] Configure SSH root user"
|
|
||||||
import_role:
|
|
||||||
name: config-root-user
|
|
||||||
when: root_user_enabled is defined and root_user_enabled
|
|
||||||
tags: config-root-user_config
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTNAME] Configure hostname"
|
|
||||||
import_role:
|
|
||||||
name: config-hostname
|
|
||||||
when: hostname_enabled is defined and hostname_enabled
|
|
||||||
tags: config-hostname_config
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTS FILE] Configure hosts file"
|
|
||||||
import_role:
|
|
||||||
name: config-hosts
|
|
||||||
when: hosts_enabled is defined and hosts_enabled
|
|
||||||
tags: config-hosts_config_config
|
|
||||||
|
|
||||||
- name: "[CONFIG RESOLV FILE] Configure resolv file"
|
|
||||||
import_role:
|
|
||||||
name: config-resolv
|
|
||||||
when: resolv_enabled is defined and resolv_enabled
|
|
||||||
tags: config-resolv_config
|
|
||||||
|
|
||||||
# - name: "[CONFIG BASE DEBIAN OS] Configure debian os"
|
|
||||||
# import_role:
|
|
||||||
# name: config-base-debian-os
|
|
||||||
# tags: config-base-debian-os_config
|
|
||||||
|
|
||||||
- name: "[CONFIG UPDATE] Config update"
|
|
||||||
import_role:
|
|
||||||
name: config-update-and-upgrade-packages
|
|
||||||
when: update_enabled is defined and update_enabled
|
|
||||||
tags: config-update-and-upgrade-packages_config
|
|
||||||
|
|
||||||
- name: "[CONFIG INSTALL PACKAGES] Install packages"
|
|
||||||
import_role:
|
|
||||||
name: config-install-packages
|
|
||||||
when: packages_enabled is defined and packages_enabled
|
|
||||||
tags: config-install-packages_config
|
|
||||||
|
|
||||||
- name: "[CONFIG RELAYHOST SMTP] Config relayhost smtp"
|
|
||||||
import_role:
|
|
||||||
name: config-relayhost-smtp
|
|
||||||
when: relay_host_enabled is defined and relay_host_enabled
|
|
||||||
tags: config-relayhost-smtp_config
|
|
||||||
|
|
||||||
- name: "[CONFIG CENTRALIZED AUTH] Config centralized auth"
|
|
||||||
import_role:
|
|
||||||
name: config-centralized-auth
|
|
||||||
when: centralized_auth_enabled is defined and centralized_auth_enabled
|
|
||||||
tags: config-centralized-auth_config
|
|
||||||
|
|
||||||
- name: "[CONFIG SUDOERS] Config sudoers"
|
|
||||||
import_role:
|
|
||||||
name: config-sudoers
|
|
||||||
when: sudoers_enabled is defined and sudoers_enabled
|
|
||||||
tags: config-sudoers_config
|
|
||||||
|
|
||||||
# - name: "[CONFIG SECURE GRUB] configure secure grub"
|
|
||||||
# import_role:
|
|
||||||
# name: config-secure-grub
|
|
||||||
# when: secure_grub_enabled is defined and secure_grub_enabled
|
|
||||||
# tags: config-secure-grub_config
|
|
||||||
|
|
||||||
- name: "[CONFIG VIM OPTIONS] Config vim options"
|
|
||||||
import_role:
|
|
||||||
name: config-vim-options
|
|
||||||
when: vim_options_enabled is defined and vim_options_enabled
|
|
||||||
tags: config-vim-options_config
|
|
||||||
|
|
||||||
- name: "[CONFIG MOTD] Config motd"
|
|
||||||
import_role:
|
|
||||||
name: config-motd
|
|
||||||
when: motd_enabled is defined and motd_enabled
|
|
||||||
tags: config-motd_config
|
|
||||||
|
|
||||||
# - name: "[CONFIG HOT PLUG] Install and configure hot plug"
|
|
||||||
# import_role:
|
|
||||||
# name: config-hot-plug
|
|
||||||
# when: hot_plug_enabled is defined and hot_plug_enabled
|
|
||||||
# tags: config-hot-plug_config
|
|
||||||
|
|
||||||
- name: "[CONFIG LOCALES] Set locales"
|
|
||||||
import_role:
|
|
||||||
name: config-locales
|
|
||||||
when: locales_enabled is defined and locales_enabled
|
|
||||||
tags: config-locales_config
|
|
||||||
|
|
||||||
- name: "[CONFIG TZDATA] Set timezone"
|
|
||||||
import_role:
|
|
||||||
name: config-tzdata
|
|
||||||
when: tzdata_enabled is defined and tzdata_enabled
|
|
||||||
tags: config-tzdata_config
|
|
||||||
|
|
||||||
- name: "[CONFIG REPO VN] Add-repos-vn"
|
|
||||||
import_role:
|
|
||||||
name: config-repo-vn
|
|
||||||
when: repo_vn_enabled is defined and repo_vn_enabled
|
|
||||||
tags: config-repo-vn_config
|
|
||||||
|
|
||||||
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
|
||||||
import_role:
|
|
||||||
name: config-fail2ban
|
|
||||||
when: fail2ban_enabled is defined and fail2ban_enabled
|
|
||||||
tags: config-fail2ban_config
|
|
||||||
|
|
||||||
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
|
||||||
import_role:
|
|
||||||
name: config-nagios-nrpe
|
|
||||||
when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled
|
|
||||||
tags: config-nagios-nrpe_config
|
|
||||||
|
|
||||||
# - name: "[CONFIG SERVER TYPE] Install guest side"
|
|
||||||
# import_role:
|
|
||||||
# name: config-server-type
|
|
||||||
# when: server_type_enabled is defined and server_type_enabled
|
|
||||||
# tags: config-server-type_config
|
|
||||||
|
|
||||||
# NO HACE FALTA , PROXMOX CT utiliza ntp client de proxmox
|
|
||||||
# - name: "[CONFIG NTP] Install and configure ntp"
|
|
||||||
# import_role:
|
|
||||||
# name: config-ntp
|
|
||||||
# when: ntp_enabled is defined and ntp_enabled
|
|
||||||
# tags: config-ntp_config
|
|
||||||
|
|
||||||
# - name: "[CONFIG AUTOFS HOMES] Install and configure AUTOFS HOMES"
|
|
||||||
# import_role:
|
|
||||||
# name: config-autofs-homes
|
|
||||||
# when: autofs_homes_enabled is defined and autofs_homes_enabled
|
|
||||||
# tags: config-autofs-homes_config
|
|
||||||
|
|
||||||
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
|
|
||||||
import_role:
|
|
||||||
name: config-zabbix-agent
|
|
||||||
when: zabbix_agent_enabled is defined and zabbix_agent_enabled
|
|
||||||
tags: config-zabbix-agent_config
|
|
||||||
|
|
||||||
#handlers:
|
|
||||||
# - include_tasks: roles/{{ item }}/handlers/main.yaml
|
|
||||||
# with_items:
|
|
||||||
# - config-awx-user
|
|
||||||
# - config-root-user
|
|
||||||
# - config-base-debian-os
|
|
||||||
# - config-repo-vn
|
|
||||||
# - config-fail2ban # or hacer
|
|
||||||
# - config-nagios-nrpe # or hacer
|
|
||||||
# - config-server-type
|
|
|
@ -1,76 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
# - name: "[CONFIG AWX-USER] Create awx user and config ssh-key"
|
|
||||||
# import_role:
|
|
||||||
# name: config-awx-user
|
|
||||||
# tags: config-awx-user_config
|
|
||||||
|
|
||||||
# - name: "[CONFIG ROOT USER] Configure SSH root user"
|
|
||||||
# import_role:
|
|
||||||
# name: config-root-user
|
|
||||||
# tags: config-root-user_config
|
|
||||||
|
|
||||||
- name: "[CONFIG BASE DEBIAN OS] Configure debian os"
|
|
||||||
import_role:
|
|
||||||
name: config-base-debian-os
|
|
||||||
# tags: config-base-debian-os_config
|
|
||||||
|
|
||||||
- name: "[CONFIG LOCALES] Set locales"
|
|
||||||
import_role:
|
|
||||||
name: config-locales
|
|
||||||
|
|
||||||
- name: "[CONFIG TZDATA] Set timezone"
|
|
||||||
import_role:
|
|
||||||
name: config-tzdata
|
|
||||||
|
|
||||||
- name: "[CONFIG REPO VN] Add-repos-vn"
|
|
||||||
import_role:
|
|
||||||
name: config-repo-vn
|
|
||||||
# tags: config-repo-vn_config
|
|
||||||
|
|
||||||
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
|
||||||
import_role:
|
|
||||||
name: config-fail2ban
|
|
||||||
# tags: config-fail2ban_config
|
|
||||||
|
|
||||||
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
|
||||||
import_role:
|
|
||||||
name: config-nagios-nrpe
|
|
||||||
# tags: config-nagios-nrpe_config
|
|
||||||
|
|
||||||
# - name: "[CONFIG SERVER TYPE] Install guest side"
|
|
||||||
# import_role:
|
|
||||||
# name: config-server-type
|
|
||||||
# tags: config-server-type_config
|
|
||||||
|
|
||||||
- name: "[CONFIG NTP] Install and configure ntp"
|
|
||||||
import_role:
|
|
||||||
name: config-ntp
|
|
||||||
# tags: config-ntp_config
|
|
||||||
|
|
||||||
- name: "[CONFIG AUTOFS HOMES] Install and configure AUTOFS HOMES"
|
|
||||||
import_role:
|
|
||||||
name: config-autofs-homes
|
|
||||||
|
|
||||||
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
|
|
||||||
import_role:
|
|
||||||
name: config-zabbix-agent
|
|
||||||
# tags: config-zabbix-agent_config
|
|
||||||
|
|
||||||
#handlers:
|
|
||||||
# - include_tasks: roles/{{ item }}/handlers/main.yaml
|
|
||||||
# with_items:
|
|
||||||
# - config-awx-user
|
|
||||||
# - config-root-user
|
|
||||||
# - config-base-debian-os
|
|
||||||
# - config-repo-vn
|
|
||||||
# - config-fail2ban # or hacer
|
|
||||||
# - config-nagios-nrpe # or hacer
|
|
||||||
# - config-server-type
|
|
|
@ -1,156 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
# - name: "[CONFIG AWX-USER] Create awx user and config ssh-key"
|
|
||||||
# import_role:
|
|
||||||
# name: config-awx-user
|
|
||||||
# tags: config-awx-user_config
|
|
||||||
|
|
||||||
- name: "[CONFIG ROOT USER] Configure SSH root user"
|
|
||||||
import_role:
|
|
||||||
name: config-root-user
|
|
||||||
when: root_user_enabled is defined and root_user_enabled
|
|
||||||
tags: config-root-user_config
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTNAME] Configure hostname"
|
|
||||||
import_role:
|
|
||||||
name: config-hostname
|
|
||||||
when: hostname_enabled is defined and hostname_enabled
|
|
||||||
tags: config-hostname_config
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTS FILE] Configure hosts file"
|
|
||||||
import_role:
|
|
||||||
name: config-hosts
|
|
||||||
when: hosts_enabled is defined and hosts_enabled
|
|
||||||
tags: config-hosts_config_config
|
|
||||||
|
|
||||||
- name: "[CONFIG RESOLV FILE] Configure resolv file"
|
|
||||||
import_role:
|
|
||||||
name: config-resolv
|
|
||||||
when: resolv_enabled is defined and resolv_enabled
|
|
||||||
tags: config-resolv_config
|
|
||||||
|
|
||||||
- name: "[CONFIG UPDATE] Config update"
|
|
||||||
import_role:
|
|
||||||
name: config-update-and-upgrade-packages
|
|
||||||
when: update_enabled is defined and update_enabled
|
|
||||||
tags: config-update-and-upgrade-packages_config
|
|
||||||
|
|
||||||
- name: "[CONFIG INSTALL PACKAGES] Install packages"
|
|
||||||
import_role:
|
|
||||||
name: config-install-packages
|
|
||||||
when: packages_enabled is defined and packages_enabled
|
|
||||||
tags: config-install-packages_config
|
|
||||||
|
|
||||||
- name: "[CONFIG RELAYHOST SMTP] Config relayhost smtp"
|
|
||||||
import_role:
|
|
||||||
name: config-relayhost-smtp
|
|
||||||
when: relay_host_enabled is defined and relay_host_enabled
|
|
||||||
tags: config-relayhost-smtp_config
|
|
||||||
|
|
||||||
- name: "[CONFIG CENTRALIZED AUTH] Config centralized auth"
|
|
||||||
import_role:
|
|
||||||
name: config-centralized-auth
|
|
||||||
when: centralized_auth_enabled is defined and centralized_auth_enabled
|
|
||||||
tags: config-centralized-auth_config
|
|
||||||
|
|
||||||
- name: "[CONFIG SUDOERS] Config sudoers"
|
|
||||||
import_role:
|
|
||||||
name: config-sudoers
|
|
||||||
when: sudoers_enabled is defined and sudoers_enabled
|
|
||||||
tags: config-sudoers_config
|
|
||||||
|
|
||||||
- name: "[CONFIG SECURE GRUB] configure secure grub"
|
|
||||||
import_role:
|
|
||||||
name: config-secure-grub
|
|
||||||
when: secure_grub_enabled is defined and secure_grub_enabled
|
|
||||||
tags: config-secure-grub_config
|
|
||||||
|
|
||||||
- name: "[CONFIG VIM OPTIONS] Config vim options"
|
|
||||||
import_role:
|
|
||||||
name: config-vim-options
|
|
||||||
when: vim_options_enabled is defined and vim_options_enabled
|
|
||||||
tags: config-vim-options_config
|
|
||||||
|
|
||||||
- name: "[CONFIG MOTD] Config motd"
|
|
||||||
import_role:
|
|
||||||
name: config-motd
|
|
||||||
when: motd_enabled is defined and motd_enabled
|
|
||||||
tags: config-motd_config
|
|
||||||
|
|
||||||
- name: "[CONFIG HOT PLUG] Install and configure hot plug"
|
|
||||||
import_role:
|
|
||||||
name: config-hot-plug
|
|
||||||
when: hot_plug_enabled is defined and hot_plug_enabled
|
|
||||||
tags: config-hot-plug_config
|
|
||||||
|
|
||||||
- name: "[CONFIG LOCALES] Set locales"
|
|
||||||
import_role:
|
|
||||||
name: config-locales
|
|
||||||
when: locales_enabled is defined and locales_enabled
|
|
||||||
tags: config-locales_config
|
|
||||||
|
|
||||||
- name: "[CONFIG TZDATA] Set timezone"
|
|
||||||
import_role:
|
|
||||||
name: config-tzdata
|
|
||||||
when: tzdata_enabled is defined and tzdata_enabled
|
|
||||||
tags: config-tzdata_config
|
|
||||||
|
|
||||||
- name: "[CONFIG REPO VN] Add-repos-vn"
|
|
||||||
import_role:
|
|
||||||
name: config-repo-vn
|
|
||||||
when: repo_vn_enabled is defined and repo_vn_enabled
|
|
||||||
tags: config-repo-vn_config
|
|
||||||
|
|
||||||
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
|
||||||
import_role:
|
|
||||||
name: config-fail2ban
|
|
||||||
when: fail2ban_enabled is defined and fail2ban_enabled
|
|
||||||
tags: config-fail2ban_config
|
|
||||||
|
|
||||||
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
|
||||||
import_role:
|
|
||||||
name: config-nagios-nrpe
|
|
||||||
when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled
|
|
||||||
tags: config-nagios-nrpe_config
|
|
||||||
|
|
||||||
- name: "[CONFIG SERVER TYPE] Install guest side"
|
|
||||||
import_role:
|
|
||||||
name: config-server-type
|
|
||||||
when: server_type_enabled is defined and server_type_enabled
|
|
||||||
tags: config-server-type_config
|
|
||||||
|
|
||||||
- name: "[CONFIG NTP] Install and configure ntp"
|
|
||||||
import_role:
|
|
||||||
name: config-ntp
|
|
||||||
when: ntp_enabled is defined and ntp_enabled
|
|
||||||
tags: config-ntp_config
|
|
||||||
|
|
||||||
- name: "[CONFIG AUTOFS HOMES] Install and configure AUTOFS HOMES"
|
|
||||||
import_role:
|
|
||||||
name: config-autofs-homes
|
|
||||||
when: autofs_homes_enabled is defined and autofs_homes_enabled
|
|
||||||
tags: config-autofs-homes_config
|
|
||||||
|
|
||||||
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
|
|
||||||
import_role:
|
|
||||||
name: config-zabbix-agent
|
|
||||||
when: zabbix_agent_enabled is defined and zabbix_agent_enabled
|
|
||||||
tags: config-zabbix-agent_config
|
|
||||||
|
|
||||||
#handlers:
|
|
||||||
# - include_tasks: roles/{{ item }}/handlers/main.yaml
|
|
||||||
# with_items:
|
|
||||||
# - config-awx-user
|
|
||||||
# - config-root-user
|
|
||||||
# - config-base-debian-os
|
|
||||||
# - config-repo-vn
|
|
||||||
# - config-fail2ban # or hacer
|
|
||||||
# - config-nagios-nrpe # or hacer
|
|
||||||
# - config-server-type
|
|
|
@ -1,72 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
# - name: "[CONFIG AWX-USER] Create awx user and config ssh-key"
|
|
||||||
# import_role:
|
|
||||||
# name: config-awx-user
|
|
||||||
# tags: config-awx-user_config
|
|
||||||
|
|
||||||
- name: "[CONFIG ROOT USER] Configure SSH root user"
|
|
||||||
import_role:
|
|
||||||
name: config-root-user
|
|
||||||
tags: config-root-user_config
|
|
||||||
|
|
||||||
- name: "[CONFIG BASE DEBIAN OS] Configure debian os"
|
|
||||||
import_role:
|
|
||||||
name: config-base-debian-os
|
|
||||||
tags: config-base-debian-os_config
|
|
||||||
|
|
||||||
- name: "[CONFIG LOCALES] Set locales"
|
|
||||||
import_role:
|
|
||||||
name: config-locales
|
|
||||||
|
|
||||||
- name: "[CONFIG TZDATA] Set timezone"
|
|
||||||
import_role:
|
|
||||||
name: config-tzdata
|
|
||||||
|
|
||||||
- name: "[CONFIG REPO VN] Add-repos-vn"
|
|
||||||
import_role:
|
|
||||||
name: config-repo-vn
|
|
||||||
tags: config-repo-vn_config
|
|
||||||
|
|
||||||
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
|
||||||
import_role:
|
|
||||||
name: config-fail2ban
|
|
||||||
tags: config-fail2ban_config
|
|
||||||
|
|
||||||
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
|
||||||
import_role:
|
|
||||||
name: config-nagios-nrpe
|
|
||||||
tags: config-nagios-nrpe_config
|
|
||||||
|
|
||||||
- name: "[CONFIG SERVER TYPE] Install guest side"
|
|
||||||
import_role:
|
|
||||||
name: config-server-type
|
|
||||||
tags: config-server-type_config
|
|
||||||
|
|
||||||
- name: "[CONFIG NTP] Install and configure ntp"
|
|
||||||
import_role:
|
|
||||||
name: config-ntp
|
|
||||||
tags: config-ntp_config
|
|
||||||
|
|
||||||
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
|
|
||||||
import_role:
|
|
||||||
name: config-zabbix-agent
|
|
||||||
tags: config-zabbix-agent_config
|
|
||||||
|
|
||||||
#handlers:
|
|
||||||
# - include_tasks: roles/{{ item }}/handlers/main.yaml
|
|
||||||
# with_items:
|
|
||||||
# - config-awx-user
|
|
||||||
# - config-root-user
|
|
||||||
# - config-base-debian-os
|
|
||||||
# - config-repo-vn
|
|
||||||
# - config-fail2ban # or hacer
|
|
||||||
# - config-nagios-nrpe # or hacer
|
|
||||||
# - config-server-type
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG AUTOFS HOMES] Comprobando si es necesario configurar AUTOFS HOMES"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar AUTOFS HOMES en la máquina"
|
|
||||||
when: autofs_homes_enabled is not defined or not autofs_homes_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG AUTOFS HOMES] Install and configure AUTOFS HOMES"
|
|
||||||
import_role:
|
|
||||||
name: config-autofs-homes
|
|
||||||
when: autofs_homes_enabled is defined and autofs_homes_enabled
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CREATE AWX-USER] Create awx user and config ssh-key"
|
|
||||||
import_role:
|
|
||||||
name: config-awx-user
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
#- hosts: '{{ ip_addr }}'
|
|
||||||
# become: yes
|
|
||||||
# become_method: sudo
|
|
||||||
# gather_facts: yes
|
|
||||||
|
|
||||||
# tasks:
|
|
||||||
|
|
||||||
# - name: "[CONFIG BASE DEBIAN OS] Configure debian os"
|
|
||||||
# import_role:
|
|
||||||
# name: config-base-debian-os
|
|
||||||
|
|
||||||
# - name: "[CONFIG LOCALES] Set locales"
|
|
||||||
# import_role:
|
|
||||||
# name: config-locales
|
|
||||||
|
|
||||||
# - name: "[CONFIG TZDATA] Set timezone"
|
|
||||||
# import_role:
|
|
||||||
# name: config-tzdata
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG CENTRALIZED AUTH] Comprobando si es necesario configurar centralized auth"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar centralized auth en la máquina"
|
|
||||||
when: centralized_auth_enabled is not defined or not centralized_auth_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG CENTRALIZED AUTH] Config centralized auth"
|
|
||||||
import_role:
|
|
||||||
name: config-centralized-auth
|
|
||||||
when: centralized_auth_enabled is defined and centralized_auth_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG FAIL2BAN] Comprobando si es necesario configurar fail2ban "
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar fail2ban en la máquina"
|
|
||||||
when: fail2ban_enabled is not defined or not fail2ban_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
|
||||||
import_role:
|
|
||||||
name: config-fail2ban
|
|
||||||
when: fail2ban_enabled is defined and fail2ban_enabled
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG FREERADIUS TOTOP] Install and configure FREERADIUS TOTOP"
|
|
||||||
import_role:
|
|
||||||
name: config-freeradius-totp
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTNAME] Comprobando si es necesario configurar hostname "
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar hostname en la máquina"
|
|
||||||
when: hostname_enabled is not defined or not hostname_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTNAME] Configure hostname"
|
|
||||||
import_role:
|
|
||||||
name: config-hostname
|
|
||||||
when: hostname_enabled is defined and hostname_enabled
|
|
|
@ -1,19 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTS FILE] Comprobando si es necesario configurar hosts file "
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar hosts file en la máquina"
|
|
||||||
when: hosts_enabled is not defined or not hosts_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG HOSTS FILE] Configure hosts file"
|
|
||||||
import_role:
|
|
||||||
name: config-hosts
|
|
||||||
when: hosts_enabled is defined and hosts_enabled
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG HOT PLUG] Comprobando si es necesario configurar hot plug"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar hot plug en la máquina"
|
|
||||||
when: hot_plug_enabled is not defined or not hot_plug_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG HOT PLUG] Install and configure hot plug"
|
|
||||||
import_role:
|
|
||||||
name: config-hot-plug
|
|
||||||
when: hot_plug_enabled is defined and hot_plug_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG INSTALL PACKAGES] Comprobando si es necesario instalar paqueteria"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario instalar paqueteria en la máquina"
|
|
||||||
when: packages_enabled is not defined or not packages_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG INSTALL PACKAGES] Install packages"
|
|
||||||
import_role:
|
|
||||||
name: config-install-packages
|
|
||||||
when: packages_enabled is defined and packages_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG LOCALES] Comprobando si es necesario configurar locales"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar locales en la máquina"
|
|
||||||
when: locales_enabled is not defined or not locales_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG LOCALES] Set locales"
|
|
||||||
import_role:
|
|
||||||
name: config-locales
|
|
||||||
when: locales_enabled is defined and locales_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG MOTD] Comprobando si es necesario configurar motd"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar motd en la máquina"
|
|
||||||
when: motd_enabled is not defined or not motd_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG MOTD] Config motd"
|
|
||||||
import_role:
|
|
||||||
name: config-motd
|
|
||||||
when: motd_enabled is defined and motd_enabled
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
|
||||||
import_role:
|
|
||||||
name: config-nagios-nrpe
|
|
||||||
when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: ns1
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG NSUPDATE] configure zone with NSUPDATE"
|
|
||||||
import_role:
|
|
||||||
name: config-nsupdate
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG NTP] Comprobando si es necesario configurar ntp"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar ntp en la máquina"
|
|
||||||
when: ntp_enabled is not defined or not ntp_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG NTP] Install and configure ntp"
|
|
||||||
import_role:
|
|
||||||
name: config-ntp
|
|
||||||
when: ntp_enabled is defined and ntp_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG RELAYHOST SMTP] Comprobando si es necesario configurar relayhost smtp"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar relayhost smtp en la máquina"
|
|
||||||
when: relay_host_enabled is not defined or not relay_host_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG RELAYHOST SMTP] Config relayhost smtp"
|
|
||||||
import_role:
|
|
||||||
name: config-relayhost-smtp
|
|
||||||
when: relay_host_enabled is defined and relay_host_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG REPO VN] Comprobando si es necesario configurar repositorios"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar repositorios en la máquina"
|
|
||||||
when: repo_vn_enabled is not defined or not repo_vn_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG REPO VN] Add-repos-vn"
|
|
||||||
import_role:
|
|
||||||
name: config-repo-vn
|
|
||||||
when: repo_vn_enabled is defined and repo_vn_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG RESOLV FILE] Comprobando si es necesario configurar resolv file "
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar resolv file en la máquina"
|
|
||||||
when: resolv_enabled is not defined or not resolv_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG RESOLV FILE] Configure resolv file"
|
|
||||||
import_role:
|
|
||||||
name: config-resolv
|
|
||||||
when: resolv_enabled is defined and resolv_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG ROOT USER] Comprobando si es necesario configurar SSH root user"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar SSH root user en la máquina"
|
|
||||||
when: root_user_enabled is not defined or not root_user_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG ROOT USER] Configure SSH root user"
|
|
||||||
import_role:
|
|
||||||
name: config-root-user
|
|
||||||
when: root_user_enabled is defined and root_user_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG SECURE GRUB] Comprobando si es necesario configurar secure grub"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar secure grub en la máquina"
|
|
||||||
when: secure_grub_enabled is not defined or not secure_grub_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG SECURE GRUB] configure secure grub"
|
|
||||||
import_role:
|
|
||||||
name: config-secure-grub
|
|
||||||
when: secure_grub_enabled is defined and secure_grub_enabled
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: localhost
|
|
||||||
become: no
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG SEND MAIL] Send Mail"
|
|
||||||
import_role:
|
|
||||||
name: config-send-mail
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG SERVER TYPE] Comprobando si es necesario instalar guest side"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario instalar guest side en la máquina"
|
|
||||||
when: server_type_enabled is not defined or not server_type_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG SERVER TYPE] Install guest side"
|
|
||||||
import_role:
|
|
||||||
name: config-server-type
|
|
||||||
when: server_type_enabled is defined and server_type_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG SUDOERS] Comprobando si es necesario configurar sudoers"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar sudoers en la máquina"
|
|
||||||
when: sudoers_enabled is not defined or not sudoers_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG SUDOERS] Config sudoers"
|
|
||||||
import_role:
|
|
||||||
name: config-sudoers
|
|
||||||
when: sudoers_enabled is defined and sudoers_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG TZDATA] Comprobando si es necesario configurar timezone"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar timezone en la máquina"
|
|
||||||
when: tzdata_enabled is not defined or not tzdata_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG TZDATA] Set timezone"
|
|
||||||
import_role:
|
|
||||||
name: config-tzdata
|
|
||||||
when: tzdata_enabled is defined and tzdata_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG UPDATE] Comprobando si es necesario realizar update "
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario realizar update en la máquina"
|
|
||||||
when: update_enabled is not defined or not update_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG UPDATE] Config update"
|
|
||||||
import_role:
|
|
||||||
name: config-update-and-upgrade-packages
|
|
||||||
when: update_enabled is defined and update_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG VIM OPTIONS] Comprobando si es necesario configurar vim options"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar vim options en la máquina"
|
|
||||||
when: vim_options_enabled is not defined or not vim_options_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG VIM OPTIONS] Config vim options"
|
|
||||||
import_role:
|
|
||||||
name: config-vim-options
|
|
||||||
when: vim_options_enabled is defined and vim_options_enabled
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: "[CONFIG ZABBIX AGENT] Comprobando si es necesario configurar ZABBIX AGENT"
|
|
||||||
debug:
|
|
||||||
msg: "No es necesario configurar ZABBIX AGENT en la máquina"
|
|
||||||
when: zabbix_agent_enabled is not defined or not zabbix_agent_enabled
|
|
||||||
|
|
||||||
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
|
|
||||||
import_role:
|
|
||||||
name: config-zabbix-agent
|
|
||||||
when: zabbix_agent_enabled is defined and zabbix_agent_enabled
|
|
|
@ -1,27 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ ip_addr }}'
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
# step1 - run apt-get update
|
|
||||||
- name: update index of all packages
|
|
||||||
ansible.builtin.apt:
|
|
||||||
update_cache: true
|
|
||||||
force_apt_get: true
|
|
||||||
|
|
||||||
# step2 - run apt-get update
|
|
||||||
- name: update all packages to their latest version
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: "exim4"
|
|
||||||
state: latest
|
|
||||||
force_apt_get: true
|
|
||||||
|
|
||||||
# step3 - run apt autoremove
|
|
||||||
- name: autoremove packages unused dependency packages
|
|
||||||
ansible.builtin.apt:
|
|
||||||
autoremove: true
|
|
||||||
force_apt_get: true
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- hosts: '{{ hosts_servers }}'
|
|
||||||
gather_facts: true
|
|
||||||
tasks:
|
|
||||||
- ping:
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Set locales
|
||||||
|
import_role:
|
||||||
|
name: config-locales
|
||||||
|
- name: Set timezone
|
||||||
|
import_role:
|
||||||
|
name: config-tzdata
|
||||||
|
- name: Install and configure fail2ban service
|
||||||
|
import_role:
|
||||||
|
name: config-fail2ban
|
||||||
|
tags: config-fail2ban_config
|
||||||
|
- name: Install guest side
|
||||||
|
import_role:
|
||||||
|
name: config-server-type
|
||||||
|
tags: config-server-type_config
|
||||||
|
- name: Install and configure ntp
|
||||||
|
import_role:
|
||||||
|
name: config-ntp
|
||||||
|
tags: config-ntp_config
|
|
@ -0,0 +1,27 @@
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
- name: Config relayhost smtp
|
||||||
|
import_role:
|
||||||
|
name: config-relayhost-smtp
|
||||||
|
when: relay_host_enabled is defined and relay_host_enabled
|
||||||
|
tags: config-relayhost-smtp_config
|
||||||
|
- name: Config centralized auth
|
||||||
|
import_role:
|
||||||
|
name: config-centralized-auth
|
||||||
|
when: centralized_auth_enabled is defined and centralized_auth_enabled
|
||||||
|
tags: config-centralized-auth_config
|
||||||
|
- name: Set locales
|
||||||
|
import_role:
|
||||||
|
name: config-locales
|
||||||
|
when: locales_enabled is defined and locales_enabled
|
||||||
|
tags: config-locales_config
|
||||||
|
- name: Set timezone
|
||||||
|
import_role:
|
||||||
|
name: config-tzdata
|
||||||
|
when: tzdata_enabled is defined and tzdata_enabled
|
||||||
|
tags: config-tzdata_config
|
||||||
|
- name: Install and configure fail2ban service
|
||||||
|
import_role:
|
||||||
|
name: config-fail2ban
|
||||||
|
when: fail2ban_enabled is defined and fail2ban_enabled
|
||||||
|
tags: config-fail2ban_config
|
|
@ -0,0 +1,23 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Configure debian os
|
||||||
|
import_role:
|
||||||
|
name: config-base-debian-os
|
||||||
|
- name: Set locales
|
||||||
|
import_role:
|
||||||
|
name: config-locales
|
||||||
|
- name: Set timezone
|
||||||
|
import_role:
|
||||||
|
name: config-tzdata
|
||||||
|
- name: Add-repos-vn
|
||||||
|
import_role:
|
||||||
|
name: config-repo-vn
|
||||||
|
- name: Install and configure fail2ban service
|
||||||
|
import_role:
|
||||||
|
name: config-fail2ban
|
||||||
|
- name: Install and configure nagios nrpe service
|
||||||
|
import_role:
|
||||||
|
name: config-nagios-nrpe
|
||||||
|
- name: Install and configure ntp
|
||||||
|
import_role:
|
||||||
|
name: config-ntp
|
|
@ -0,0 +1,5 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Upgrade system
|
||||||
|
import_role:
|
||||||
|
name: linux-upgrade
|
|
@ -0,0 +1,57 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Install packages
|
||||||
|
import_role:
|
||||||
|
name: config-install-packages
|
||||||
|
when: packages_enabled is defined and packages_enabled
|
||||||
|
tags: config-install-packages_config
|
||||||
|
- name: Config relayhost smtp
|
||||||
|
import_role:
|
||||||
|
name: config-relayhost-smtp
|
||||||
|
when: relay_host_enabled is defined and relay_host_enabled
|
||||||
|
tags: config-relayhost-smtp_config
|
||||||
|
- name: Config centralized auth
|
||||||
|
import_role:
|
||||||
|
name: config-centralized-auth
|
||||||
|
when: centralized_auth_enabled is defined and centralized_auth_enabled
|
||||||
|
tags: config-centralized-auth_config
|
||||||
|
- name: configure secure grub
|
||||||
|
import_role:
|
||||||
|
name: config-secure-grub
|
||||||
|
when: secure_grub_enabled is defined and secure_grub_enabled
|
||||||
|
tags: config-secure-grub_config
|
||||||
|
- name: Install and configure hot plug
|
||||||
|
import_role:
|
||||||
|
name: config-hot-plug
|
||||||
|
when: hot_plug_enabled is defined and hot_plug_enabled
|
||||||
|
tags: config-hot-plug_config
|
||||||
|
- name: Set locales
|
||||||
|
import_role:
|
||||||
|
name: config-locales
|
||||||
|
when: locales_enabled is defined and locales_enabled
|
||||||
|
tags: config-locales_config
|
||||||
|
- name: Set timezone
|
||||||
|
import_role:
|
||||||
|
name: config-tzdata
|
||||||
|
when: tzdata_enabled is defined and tzdata_enabled
|
||||||
|
tags: config-tzdata_config
|
||||||
|
- name: Install and configure fail2ban service
|
||||||
|
import_role:
|
||||||
|
name: config-fail2ban
|
||||||
|
when: fail2ban_enabled is defined and fail2ban_enabled
|
||||||
|
tags: config-fail2ban_config
|
||||||
|
- name: Install guest side
|
||||||
|
import_role:
|
||||||
|
name: config-server-type
|
||||||
|
when: server_type_enabled is defined and server_type_enabled
|
||||||
|
tags: config-server-type_config
|
||||||
|
- name: Install and configure ntp
|
||||||
|
import_role:
|
||||||
|
name: config-ntp
|
||||||
|
when: ntp_enabled is defined and ntp_enabled
|
||||||
|
tags: config-ntp_config
|
||||||
|
- name: Install and configure AUTOFS HOMES
|
||||||
|
import_role:
|
||||||
|
name: config-autofs-homes
|
||||||
|
when: autofs_homes_enabled is defined and autofs_homes_enabled
|
||||||
|
tags: config-autofs-homes_config
|
|
@ -0,0 +1,5 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Configure base system
|
||||||
|
import_role:
|
||||||
|
name: linux-base
|
|
@ -0,0 +1,5 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Install and configure Freeradius with TOTP
|
||||||
|
import_role:
|
||||||
|
name: freeradius
|
|
@ -0,0 +1,5 @@
|
||||||
|
- hosts: ns1
|
||||||
|
tasks:
|
||||||
|
- name: Configure zone with nsupdate
|
||||||
|
import_role:
|
||||||
|
name: nsupdate
|
|
@ -0,0 +1,3 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- ping:
|
|
@ -0,0 +1,7 @@
|
||||||
|
- hosts: localhost
|
||||||
|
become: no
|
||||||
|
become_method: sudo
|
||||||
|
tasks:
|
||||||
|
- name: Send mail
|
||||||
|
import_role:
|
||||||
|
name: config-send-mail
|
|
@ -0,0 +1,5 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Test role
|
||||||
|
import_role:
|
||||||
|
name: linux-fail2ban
|
|
@ -0,0 +1,5 @@
|
||||||
|
- name: Ping Windows hosts
|
||||||
|
hosts: windows
|
||||||
|
tasks:
|
||||||
|
- name: Ping Windows hosts
|
||||||
|
ansible.windows.win_ping:
|
|
@ -2,14 +2,12 @@
|
||||||
ignore_unreachable: yes
|
ignore_unreachable: yes
|
||||||
serial: 1
|
serial: 1
|
||||||
tasks:
|
tasks:
|
||||||
# Check if there are missing updates
|
|
||||||
- block:
|
- block:
|
||||||
- name: Check for missing updates.
|
- name: Check if there are missing updates
|
||||||
win_updates: state=searched
|
win_updates: state=searched
|
||||||
register: update_count
|
register: update_count
|
||||||
#Install missing updates only if at least one is missing
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install missing updates.
|
- name: Install missing updates only if at least one is missing
|
||||||
win_updates:
|
win_updates:
|
||||||
category_names: '*'
|
category_names: '*'
|
||||||
#- Application
|
#- Application
|
||||||
|
@ -23,8 +21,8 @@
|
||||||
#- UpdateRollups
|
#- UpdateRollups
|
||||||
#- CriticalUpdates
|
#- CriticalUpdates
|
||||||
#- SecurityUpdates
|
#- SecurityUpdates
|
||||||
log_path: C:\Win_Template_Patch.log
|
log_path: C:\Win_Template_Patch.log
|
||||||
register: update_result
|
register: update_result
|
||||||
- name: Reboot, if needed.
|
- name: Reboot, if needed.
|
||||||
win_reboot:
|
win_reboot:
|
||||||
when: update_result.reboot_required
|
when: update_result.reboot_required
|
|
@ -0,0 +1 @@
|
||||||
|
awx-user ALL=(ALL) NOPASSWD:ALL
|
|
@ -0,0 +1,23 @@
|
||||||
|
- name: Create AWX user
|
||||||
|
user:
|
||||||
|
name: awx-user
|
||||||
|
password: '*'
|
||||||
|
shell: /bin/bash
|
||||||
|
groups: sudo
|
||||||
|
state: present
|
||||||
|
comment: ssh user
|
||||||
|
- name: Adding SSH public key
|
||||||
|
authorized_key:
|
||||||
|
user: awx-user
|
||||||
|
key: "{{ awx_pub_key }}"
|
||||||
|
- name: Install sudo package
|
||||||
|
apt:
|
||||||
|
name: sudo
|
||||||
|
state: present
|
||||||
|
- name: Add user to sudoers
|
||||||
|
copy:
|
||||||
|
src: awx
|
||||||
|
dest: /etc/sudoers.d/
|
||||||
|
mode: u=rw,g=r
|
||||||
|
owner: root
|
||||||
|
group: root
|
|
@ -0,0 +1 @@
|
||||||
|
awx_pub_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDjeIZVyppFK/dqOUa1PxgSeRVWk7MFmANYvSs+VHHnD4/BE//K8AxlxnyLl4e6jAcBFoIu1JLxbRKdOhx+Zgkq5OmEzp/XKzfEvnEU5CP+W2+5MwfkUQ3TetJsOoHiP/qYWPqqqfDFqNM1xs9am5Frv9BVu5pFiSO9oS14xVAlUOwnONQnRtAbuBOmMldpzxmuFY+Rs3G2MmokcOYrs5Z3TdCOG9bDGg8erzWklLW+aRYdXqMEZpwIZPcOFy6JXEyZ/9IpCLBN58IMr0RypFbgWb2Vo05iTI5j99Pzn//FgAhe6BXRyHSGOJ29hmKugt9sIY1N/H6aYqtTVR5EEIngY1XHtFywU1+qtYHMs8PB9Hl87zUkla0+S5Zn8q92y7DQFsOZ9ND6syEzWhiCP1ic3Wo76TVbuNoTW/XvgZnemx1epuOqDj9S7iGTSHMvvSop8z5hU2EQiVkgRPl4cM2fi0vF513ivq5IbCgg2VfXUOLM5E5y0TI7lzBriTtCuIk= awx@awx.verdnatura.es
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
# restart nslcd service to apply changes
|
|
||||||
- name: restart nslcd
|
|
||||||
service:
|
|
||||||
name: "{{ nslcd_daemon }}"
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
# restart autofs service to apply changes
|
|
||||||
- name: restart autofs
|
|
||||||
service:
|
|
||||||
name: "{{ autofs_daemon }}"
|
|
||||||
state: restarted
|
|
|
@ -1,70 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: "[CONFIG AUTOFS HOMES] Comprobando si es necesario configurar AUTOFS HOMES"
|
|
||||||
meta: end_host
|
|
||||||
when: autofs_homes_enabled is not defined or not autofs_homes_enabled
|
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
# install packages nfs-common , autofs , libnfs-utils , autofs-ldap
|
|
||||||
- name: install packages for autofs
|
|
||||||
apt:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
with_items:
|
|
||||||
- nfs-common
|
|
||||||
- autofs
|
|
||||||
- libnfs-utils
|
|
||||||
- autofs-ldap
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
# create directory /mnt/homes for mount
|
|
||||||
- name: create directory /mnt/homes
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ path_mnt_homes }}"
|
|
||||||
state: directory
|
|
||||||
mode: '0755'
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
# add line to /etc/nsswitch.conf
|
|
||||||
- name: add line to file /etc/nsswitch.conf
|
|
||||||
lineinfile:
|
|
||||||
path: "{{ path_nsswitch }}"
|
|
||||||
line: "automount: files"
|
|
||||||
notify: restart nslcd
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
# add files configured to autofs
|
|
||||||
# paso 1
|
|
||||||
- name: add file homes.autofs configured to autofs
|
|
||||||
copy:
|
|
||||||
src: homes.autofs
|
|
||||||
dest: "{{ path_home_autofs }}"
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
# paso 2
|
|
||||||
- name: add file /etc/auto.homes configured to the systemd
|
|
||||||
copy:
|
|
||||||
src: auto.homes
|
|
||||||
dest: "{{ path_auto_homes }}"
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
notify: restart autofs
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
# enabled autofs
|
|
||||||
- name: service should start on boot
|
|
||||||
service:
|
|
||||||
name: "{{ autofs_daemon }}"
|
|
||||||
enabled: yes
|
|
||||||
# enabled nslcd
|
|
||||||
- name: service should start on boot
|
|
||||||
service:
|
|
||||||
name: "{{ nslcd_daemon }}"
|
|
||||||
enabled: yes
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
nslcd_daemon: nslcd
|
|
||||||
autofs_daemon: autofs
|
|
||||||
path_auto_homes: /etc/auto.homes
|
|
||||||
path_home_autofs: /etc/auto.master.d/homes.autofs
|
|
||||||
path_nsswitch: /etc/nsswitch.conf
|
|
||||||
path_mnt_homes: /mnt/homes
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue