mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 04:28:40 +03:00
nixos/tests/mariadb-galera-mariabackup: fix nogroup
This fixes the evaluation after for #133166.
This commit is contained in:
parent
20ad669618
commit
113cc7b136
@ -4,6 +4,16 @@ let
|
|||||||
mysqlenv-common = pkgs.buildEnv { name = "mysql-path-env-common"; pathsToLink = [ "/bin" ]; paths = with pkgs; [ bash gawk gnutar inetutils which ]; };
|
mysqlenv-common = pkgs.buildEnv { name = "mysql-path-env-common"; pathsToLink = [ "/bin" ]; paths = with pkgs; [ bash gawk gnutar inetutils which ]; };
|
||||||
mysqlenv-mariabackup = pkgs.buildEnv { name = "mysql-path-env-mariabackup"; pathsToLink = [ "/bin" ]; paths = with pkgs; [ gzip iproute2 netcat procps pv socat ]; };
|
mysqlenv-mariabackup = pkgs.buildEnv { name = "mysql-path-env-mariabackup"; pathsToLink = [ "/bin" ]; paths = with pkgs; [ gzip iproute2 netcat procps pv socat ]; };
|
||||||
|
|
||||||
|
# Common user configuration
|
||||||
|
users = { ... }:
|
||||||
|
{
|
||||||
|
users.users.testuser = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "testusers";
|
||||||
|
};
|
||||||
|
users.groups.testusers = { };
|
||||||
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
name = "mariadb-galera-mariabackup";
|
name = "mariadb-galera-mariabackup";
|
||||||
meta = with pkgs.lib.maintainers; {
|
meta = with pkgs.lib.maintainers; {
|
||||||
@ -17,6 +27,7 @@ in {
|
|||||||
galera_01 =
|
galera_01 =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ users ];
|
||||||
networking = {
|
networking = {
|
||||||
interfaces.eth1 = {
|
interfaces.eth1 = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
@ -31,7 +42,6 @@ in {
|
|||||||
firewall.allowedTCPPorts = [ 3306 4444 4567 4568 ];
|
firewall.allowedTCPPorts = [ 3306 4444 4567 4568 ];
|
||||||
firewall.allowedUDPPorts = [ 4567 ];
|
firewall.allowedUDPPorts = [ 4567 ];
|
||||||
};
|
};
|
||||||
users.users.testuser = { isSystemUser = true; };
|
|
||||||
systemd.services.mysql = with pkgs; {
|
systemd.services.mysql = with pkgs; {
|
||||||
path = [ mysqlenv-common mysqlenv-mariabackup ];
|
path = [ mysqlenv-common mysqlenv-mariabackup ];
|
||||||
};
|
};
|
||||||
@ -75,6 +85,7 @@ in {
|
|||||||
galera_02 =
|
galera_02 =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ users ];
|
||||||
networking = {
|
networking = {
|
||||||
interfaces.eth1 = {
|
interfaces.eth1 = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
@ -89,7 +100,6 @@ in {
|
|||||||
firewall.allowedTCPPorts = [ 3306 4444 4567 4568 ];
|
firewall.allowedTCPPorts = [ 3306 4444 4567 4568 ];
|
||||||
firewall.allowedUDPPorts = [ 4567 ];
|
firewall.allowedUDPPorts = [ 4567 ];
|
||||||
};
|
};
|
||||||
users.users.testuser = { isSystemUser = true; };
|
|
||||||
systemd.services.mysql = with pkgs; {
|
systemd.services.mysql = with pkgs; {
|
||||||
path = [ mysqlenv-common mysqlenv-mariabackup ];
|
path = [ mysqlenv-common mysqlenv-mariabackup ];
|
||||||
};
|
};
|
||||||
@ -122,6 +132,7 @@ in {
|
|||||||
galera_03 =
|
galera_03 =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ users ];
|
||||||
networking = {
|
networking = {
|
||||||
interfaces.eth1 = {
|
interfaces.eth1 = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
@ -136,7 +147,6 @@ in {
|
|||||||
firewall.allowedTCPPorts = [ 3306 4444 4567 4568 ];
|
firewall.allowedTCPPorts = [ 3306 4444 4567 4568 ];
|
||||||
firewall.allowedUDPPorts = [ 4567 ];
|
firewall.allowedUDPPorts = [ 4567 ];
|
||||||
};
|
};
|
||||||
users.users.testuser = { isSystemUser = true; };
|
|
||||||
systemd.services.mysql = with pkgs; {
|
systemd.services.mysql = with pkgs; {
|
||||||
path = [ mysqlenv-common mysqlenv-mariabackup ];
|
path = [ mysqlenv-common mysqlenv-mariabackup ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user