Commit Graph

31 Commits (dev)

Author SHA1 Message Date
Jérémy Dubois dfaaa8e0da base : update header of profile file 4 months ago
Jérémy Dubois d10b2c42b3 base: use a template for ntp configuration to ease the management of the different cases 5 months ago
Jérémy Dubois 5da921572e base: export evomaintenance and evobackup tasks into their own roles, resolves #35 7 months ago
Jérémy Dubois 9a4a906b23 base: do not erase custom configuration of servers in doas.conf 7 months ago
Jérémy Dubois 891513d633 base: add entry in doas.conf for sd0 in case we have a hard raid 8 months ago
Jérémy Dubois 48f25bbe7c base: session timeout is configurable 8 months ago
Jérémy Dubois 93f21a947c base: fix shell configuration, increase $HISTSIZE, and change history alias so it displays full history
"set -A" options are for ksh only
1 year ago
Jérémy Dubois 798a87b0ff Configure locale to en_US.UTF-8, use vim as default git edit, and bump EvoBSD version
Configure locale to en_US.UTF-8 in .profile file so that "git log" displays the accents correctly
Use vim as default git editor for the same reason, and because its better than vi
Bump EvoBSD version : OpenBSD 7.0 is out
1 year ago
Jérémy Dubois c5f478c584 Update NRPE and doas configuration for checks mailq and openvpn_certificates
- Fix check_mailq : the check from monitoring-plugins current version is not
  compatible with opensmtpd. I picked the last version from the GIT repository,
  and adjusted nrpe and doas configuration
- Add doas configuration for check_openvpn_certificates.sh : some servers need
  doas, others don't. Better to set it everywhere.
2 years ago
Jérémy Dubois 1abf0f636c Fix check_dhcpd
/usr/local/libexec/nagios/check_dhcp does not work on server itself
Using back /usr/local/libexec/nagios/check_procs -c1: -C dhcpd
And removing doas configuration
2 years ago
Jérémy Dubois 5ef4a403d2 We should be able to execute evomaintence.sh as soon as we can SSH to the server 2 years ago
Jérémy Dubois 9eeba0c0ab Add a doas authorization for NRPE 2 years ago
Jérémy Dubois 78686b8730 Stricter ssh and doas access - two separate groups actually needed
Fix #34 again

After some discussions, with actually need two separates groups :
- One group for ssh access (evobsd_ssh_group)
- One group for sudo/doas access (evobsd_sudo_group)

We won't need any client group. A client user will be added to the ssh group,
so that we won't have to think about what specific group a user need to be
added in.
2 years ago
Jérémy Dubois ff1f728102 Doas authorization for collectd
We put the doas authorization for collectd in the global file and we let it if
collectd is not there, because otherwise the authorization would be removed if
the base role was run without the collectd role, even if collectd was still
running. Collectd would have been broken.
2 years ago
Jérémy Dubois 2bf8a7e872 Stricter ssh and doas access - better version
continuous-integration/drone/push Build is failing Details
Fix #34

We now use a unique evobsd_group (evolix by default).
Each user has 2 groups : evobsd_group and user.name.
Only evobsd_group can ssh to server and use doas.

I also added a password restrictions block for IPs/group.
And we make sure the home folder is only readable by owner.
2 years ago
Jérémy Dubois 57acbd6091 Add jinja2 variable for PATH variable environment 2 years ago
Jérémy Dubois 3a6cd20ab3 Configure the check_packetfilter in NRPE with doas
continuous-integration/drone/push Build is failing Details
3 years ago
Jérémy Dubois 27006f8db7 Doas permissions rearrangement 3 years ago
Jérémy Dubois 05d2b707e1 Add OpenBGPD nrpe check with doas configuration 3 years ago
Jérémy Dubois 29afa42c3d Deletion of mailevomaintenance.sh
We now use the git status cron for uncommited changes
3 years ago
Patrick Marchand 8b1ce861e3 Add stricter ssh and doas access 4 years ago
Tristan Pilat 6b309ee32c Merge branch 'evomaintenance_22_08_19' of evolix/EvoBSD into dev
Cool
4 years ago
Patrick Marchand 3e3eb695b4 Merge branch 'replace_sudo_with_doas' into dev
Any new checks should use doas as well.
4 years ago
Patrick Marchand 18ac01cbb3 Apply latest dev branch to check_dhcpd branch 4 years ago
Patrick Marchand a994225c27 Merge check_connections_state into dev 4 years ago
Tristan PILAT 70e49781d9 Import evomaintenance after last overhaul 4 years ago
Jérémy Dubois f305b3420b Replace all sudo occurences with doas 4 years ago
Jérémy Dubois a23a6efca8 Replace sudo with doas 4 years ago
Jérémy Dubois 1b5196d6a4 Replace sudo with doas 4 years ago
Tristan PILAT 798a482787 Load root's environment when using doas 4 years ago
Tristan PILAT b555fb1222 Add initial project 4 years ago