|
Christian Boltz |
50b51c |
{% set osmajorrelease = salt['grains.get']('osmajorrelease')|int %}
|
|
Theo Chatzimichos |
5a866d |
{% set osrelease = salt['grains.get']('osrelease') %}
|
|
Theo Chatzimichos |
5a866d |
|
|
Theo Chatzimichos |
da9a25 |
chrony:
|
|
Theo Chatzimichos |
da9a25 |
driftfile: /var/lib/chrony/drift
|
|
Theo Chatzimichos |
da9a25 |
logdir: /var/log/chrony
|
|
Theo Chatzimichos |
da9a25 |
otherparams:
|
|
Theo Chatzimichos |
da9a25 |
{% if 'ntp' not in salt['grains.get']('roles', []) %}
|
|
Theo Chatzimichos |
da9a25 |
- logchange 0.5
|
|
Theo Chatzimichos |
da9a25 |
- log measurements statistics tracking rtc
|
|
Theo Chatzimichos |
da9a25 |
- makestep 1.0 3
|
|
Theo Chatzimichos |
da9a25 |
- noclientlog
|
|
Theo Chatzimichos |
da9a25 |
{% endif %}
|
|
Theo Chatzimichos |
da9a25 |
- rtcsync
|
|
Theo Chatzimichos |
8e55f3 |
locale:
|
|
Theo Chatzimichos |
8e55f3 |
present:
|
|
 |
218c26 |
- en_US.UTF-8 UTF-8
|
|
Theo Chatzimichos |
8e55f3 |
default:
|
|
 |
218c26 |
name: en_US.UTF-8
|
|
 |
218c26 |
requires: en_US.UTF-8 UTF-8
|
|
Theo Chatzimichos |
0a7491 |
ntp:
|
|
Theo Chatzimichos |
0a7491 |
ng:
|
|
Theo Chatzimichos |
0a7491 |
settings:
|
|
Theo Chatzimichos |
0a7491 |
ntpd: true
|
|
Theo Chatzimichos |
0a7491 |
ntp_conf:
|
|
Theo Chatzimichos |
0a7491 |
controlkey:
|
|
Theo Chatzimichos |
0a7491 |
- 1
|
|
Theo Chatzimichos |
0a7491 |
disable:
|
|
Theo Chatzimichos |
0a7491 |
- monitor
|
|
Theo Chatzimichos |
0a7491 |
driftfile:
|
|
Theo Chatzimichos |
0a7491 |
- /var/lib/ntp/drift/ntp.drift
|
|
Theo Chatzimichos |
0a7491 |
logfile:
|
|
Theo Chatzimichos |
0a7491 |
- /var/log/ntp
|
|
Theo Chatzimichos |
0a7491 |
keys:
|
|
Theo Chatzimichos |
0a7491 |
- /etc/ntp.keys
|
|
Theo Chatzimichos |
0a7491 |
requestkey:
|
|
Theo Chatzimichos |
0a7491 |
- 1
|
|
Theo Chatzimichos |
0a7491 |
restrict:
|
|
Theo Chatzimichos |
ca1db3 |
- default ignore
|
|
Theo Chatzimichos |
0a7491 |
- -4 default kod notrap nomodify nopeer
|
|
Theo Chatzimichos |
0a7491 |
- -6 default kod notrap nomodify nopeer
|
|
Theo Chatzimichos |
0a7491 |
- 127.0.0.1
|
|
Theo Chatzimichos |
0a7491 |
- ::1
|
|
Theo Chatzimichos |
c35d26 |
- ntp1.infra.opensuse.org
|
|
Theo Chatzimichos |
c35d26 |
- ntp2.infra.opensuse.org
|
|
Theo Chatzimichos |
c35d26 |
- ntp3.infra.opensuse.org
|
|
Theo Chatzimichos |
0a7491 |
trustedkey:
|
|
Theo Chatzimichos |
0a7491 |
- 1
|
|
Theo Chatzimichos |
033812 |
openldap:
|
|
Theo Chatzimichos |
033812 |
base: dc=infra,dc=opensuse,dc=org
|
|
Theo Chatzimichos |
033812 |
tls_cacertdir: /etc/ssl/certs/
|
|
Theo Chatzimichos |
033812 |
tls_reqcert: demand
|
|
Theo Chatzimichos |
033812 |
uri: ldaps://freeipa.infra.opensuse.org
|
|
Theo Chatzimichos |
03850b |
openssh:
|
|
Theo Chatzimichos |
03850b |
banner_src: salt://profile/accounts/files/ssh_banner
|
|
Theo Chatzimichos |
03850b |
sshd_config_mode: 0640
|
|
Theo Chatzimichos |
8f9d8f |
profile:
|
|
Christian Boltz |
ed723b |
postfix:
|
|
Christian Boltz |
ed723b |
aliases:
|
|
Christian Boltz |
ed723b |
root: admin-auto@opensuse.org
|
|
Christian Boltz |
ed723b |
maincf:
|
|
Christian Boltz |
ed723b |
relayhost: '[relay.infra.opensuse.org]'
|
|
Theo Chatzimichos |
f46ac3 |
rsyslog:
|
|
Theo Chatzimichos |
f46ac3 |
custom:
|
|
Theo Chatzimichos |
f46ac3 |
- salt://profile/log/files/etc/rsyslog.d/remote.conf.jinja
|
|
Theo Chatzimichos |
f46ac3 |
custom_config_template: salt://profile/log/files/etc/rsyslog.conf
|
|
Theo Chatzimichos |
2589ff |
imjournal: true
|
|
Theo Chatzimichos |
2589ff |
protocol: tcp
|
|
Theo Chatzimichos |
2589ff |
target: syslog.infra.opensuse.org
|
|
Theo Chatzimichos |
350015 |
salt:
|
|
Theo Chatzimichos |
350015 |
minion:
|
|
Theo Chatzimichos |
350015 |
backup_mode: minion
|
|
Theo Chatzimichos |
350015 |
environment: production
|
|
Theo Chatzimichos |
0b4ba2 |
hash_type: sha512
|
|
Theo Chatzimichos |
878b19 |
ipv6: false
|
|
Theo Chatzimichos |
5a866d |
sshd_config:
|
|
Theo Chatzimichos |
027ca4 |
AuthorizedKeysFile: .ssh/authorized_keys
|
|
Theo Chatzimichos |
382ef3 |
AuthorizedKeysCommand: /usr/local/bin/fetch_freeipa_ldap_sshpubkey.sh
|
|
Theo Chatzimichos |
382ef3 |
AuthorizedKeysCommandUser: nobody
|
|
Theo Chatzimichos |
5a866d |
HostKey:
|
|
Theo Chatzimichos |
5a866d |
- /etc/ssh/ssh_host_rsa_key
|
|
Theo Chatzimichos |
5a866d |
- /etc/ssh/ssh_host_dsa_key
|
|
Theo Chatzimichos |
5a866d |
- /etc/ssh/ssh_host_ecdsa_key
|
|
 |
218c26 |
{% if osrelease != '11.3' %}
|
|
Theo Chatzimichos |
5a866d |
- /etc/ssh/ssh_host_ed25519_key
|
|
 |
218c26 |
{% endif %}
|
|
Theo Chatzimichos |
027ca4 |
PasswordAuthentication: no
|
|
Theo Chatzimichos |
5a866d |
PermitRootLogin: without-password
|
|
Theo Chatzimichos |
5a866d |
PrintMotd: yes
|
|
 |
218c26 |
{% if osrelease.startswith('11') and (salt['grains.get']('cpuarch') == 'x86_64') %}
|
|
Theo Chatzimichos |
5a866d |
# TODO: support more 64bit archs https://progress.opensuse.org/issues/15794
|
|
Theo Chatzimichos |
5a866d |
Subsystem: sftp /usr/lib64/ssh/sftp-server
|
|
 |
218c26 |
{% else %}
|
|
Theo Chatzimichos |
5a866d |
# TODO: upstream fix is not sufficient https://github.com/saltstack-formulas/openssh-formula/pull/57
|
|
Theo Chatzimichos |
5a866d |
Subsystem: sftp /usr/lib/ssh/sftp-server
|
|
 |
218c26 |
{% endif %}
|
|
Theo Chatzimichos |
5a866d |
UseDNS: yes
|
|
Theo Chatzimichos |
027ca4 |
UsePAM: yes
|
|
Theo Chatzimichos |
5a866d |
matches:
|
|
Theo Chatzimichos |
5a866d |
root:
|
|
Theo Chatzimichos |
5a866d |
type:
|
|
Theo Chatzimichos |
5a866d |
User: root
|
|
Theo Chatzimichos |
5a866d |
options:
|
|
Theo Chatzimichos |
5a866d |
Banner: /etc/ssh/banner
|
|
Theo Chatzimichos |
382ef3 |
sssd:
|
|
Theo Chatzimichos |
382ef3 |
settings:
|
|
Theo Chatzimichos |
382ef3 |
sssd: True
|
|
Theo Chatzimichos |
382ef3 |
sssd_conf:
|
|
Theo Chatzimichos |
382ef3 |
domains:
|
|
Theo Chatzimichos |
382ef3 |
infra.opensuse.org:
|
|
Theo Chatzimichos |
382ef3 |
auth_provider: ldap
|
|
Theo Chatzimichos |
382ef3 |
id_provider: ldap
|
|
Theo Chatzimichos |
8246c9 |
ldap_group_search_base: cn=groups,cn=compat,dc=infra,dc=opensuse,dc=org
|
|
Theo Chatzimichos |
382ef3 |
ldap_search_base: dc=infra,dc=opensuse,dc=org
|
|
Theo Chatzimichos |
382ef3 |
ldap_tls_reqcert: demand
|
|
Theo Chatzimichos |
382ef3 |
ldap_uri: ldaps://freeipa.infra.opensuse.org
|
|
Theo Chatzimichos |
8246c9 |
ldap_user_search_base: cn=users,cn=accounts,dc=infra,dc=opensuse,dc=org
|
|
Theo Chatzimichos |
382ef3 |
general_settings:
|
|
Theo Chatzimichos |
382ef3 |
config_file_version: 2
|
|
Theo Chatzimichos |
382ef3 |
domains: infra.opensuse.org
|
|
Theo Chatzimichos |
382ef3 |
services: nss, pam, ssh
|
|
Theo Chatzimichos |
382ef3 |
services:
|
|
Theo Chatzimichos |
382ef3 |
nss:
|
|
Theo Chatzimichos |
382ef3 |
filter_group: root
|
|
Theo Chatzimichos |
382ef3 |
filter_users: root
|
|
Theo Chatzimichos |
382ef3 |
pam: {}
|
|
Theo Chatzimichos |
382ef3 |
ssh: {}
|
|
Theo Chatzimichos |
15223c |
sudoers:
|
|
Theo Chatzimichos |
15223c |
defaults:
|
|
Theo Chatzimichos |
15223c |
generic:
|
|
Theo Chatzimichos |
15223c |
- always_set_home
|
|
Theo Chatzimichos |
15223c |
- secure_path="/usr/sbin:/usr/bin:/sbin:/bin"
|
|
Theo Chatzimichos |
15223c |
- env_reset
|
|
Theo Chatzimichos |
15223c |
- env_keep="LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"
|
|
Theo Chatzimichos |
15223c |
- '!insults'
|
|
Theo Chatzimichos |
15223c |
users:
|
|
Theo Chatzimichos |
15223c |
root:
|
|
Theo Chatzimichos |
15223c |
- 'ALL=(ALL) ALL'
|
|
Theo Chatzimichos |
15223c |
includedir: /etc/sudoers.d
|
|
Theo Chatzimichos |
15223c |
included_files:
|
|
Theo Chatzimichos |
15223c |
/etc/sudoers.d/nagios_nopasswd_zypper:
|
|
Theo Chatzimichos |
15223c |
users:
|
|
Theo Chatzimichos |
15223c |
nagios:
|
|
Theo Chatzimichos |
15223c |
- 'ALL=(ALL) NOPASSWD: /usr/sbin/zypp-refresh,/usr/bin/zypper ref,/usr/bin/zypper sl,/usr/bin/zypper --xmlout --non-interactive list-updates -t package -t patch'
|
|
 |
563ae8 |
/etc/sudoers.d/wheel:
|
|
 |
563ae8 |
groups:
|
|
 |
563ae8 |
wheel:
|
|
 |
563ae8 |
- 'ALL=(ALL) ALL'
|
|
Theo Chatzimichos |
8f9d8f |
timezone:
|
|
Theo Chatzimichos |
8f9d8f |
name: UTC
|
|
Theo Chatzimichos |
8f9d8f |
utc: True
|
|
 |
1dadda |
zypper:
|
|
 |
d51c23 |
config:
|
|
 |
d51c23 |
zypp_conf:
|
|
 |
d51c23 |
main:
|
|
 |
58b71b |
download.use_deltarpm: 'false'
|
|
 |
fe7864 |
solver.onlyRequires: 'true'
|
|
 |
f9f292 |
packages:
|
|
Theo Chatzimichos |
2e1ed1 |
ca-certificates-freeipa-opensuse: {}
|
|
Theo Chatzimichos |
0e7368 |
command-not-found: {}
|
|
Theo Chatzimichos |
cc2908 |
curl: {}
|
|
Theo Chatzimichos |
1e4a44 |
dhcp-client: {}
|
|
Theo Chatzimichos |
1e4a44 |
less: {}
|
|
Christian Boltz |
4e5e25 |
lsof: {}
|
|
Theo Chatzimichos |
7695d8 |
man: {}
|
|
Theo Chatzimichos |
382ef3 |
openssh-helpers: {}
|
|
Theo Chatzimichos |
1e4a44 |
screen: {}
|
|
Theo Chatzimichos |
382ef3 |
sssd-ldap: {}
|
|
Christian Boltz |
2c7999 |
suse-online-update: {}
|
|
Theo Chatzimichos |
cc2908 |
susepaste: {}
|
|
Theo Chatzimichos |
6f2410 |
tcpdump: {}
|
|
Theo Chatzimichos |
1e4a44 |
vim: {}
|
|
Theo Chatzimichos |
1e4a44 |
vim-data: {}
|
|
Theo Chatzimichos |
5e16c1 |
withlock: {}
|
|
Theo Chatzimichos |
cc2908 |
wget: {}
|
|
Theo Chatzimichos |
cc2908 |
wgetpaste: {}
|
|
Christian Boltz |
50b51c |
{% if osmajorrelease > 11 %}
|
|
Christian Boltz |
50b51c |
aaa_base-extras: {}
|
|
Christian Boltz |
50b51c |
ca-certificates-mozilla: {}
|
|
Christian Boltz |
50b51c |
htop: {}
|
|
Christian Boltz |
50b51c |
mtr: {}
|
|
Christian Boltz |
50b51c |
tmux: {}
|
|
Christian Boltz |
50b51c |
traceroute: {}
|
|
Christian Boltz |
50b51c |
{% endif %}
|
|
Christian Boltz |
34843b |
{% if osmajorrelease == 15 %}
|
|
Christian Boltz |
34843b |
# workaround for https://progress.opensuse.org/issues/62204 / https://bugzilla.opensuse.org/show_bug.cgi?id=1161850
|
|
Christian Boltz |
34843b |
which: {}
|
|
Christian Boltz |
34843b |
{% endif %}
|