From a78ede399740a4871f6646a2de4dba1d9775fff0 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 22 May 2019 17:15:59 -0700 Subject: [PATCH] tests: Update custom-base with customizations (cherry picked from commit 9724731b8de914defe8bf3cb9cdf96a45c94aa80) Related: rhbz#1709595 --- tests/pylorax/results/custom-base.dict | 2 +- tests/pylorax/results/custom-base.toml | 37 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/tests/pylorax/results/custom-base.dict b/tests/pylorax/results/custom-base.dict index 2604cf34..fb955a0e 100644 --- a/tests/pylorax/results/custom-base.dict +++ b/tests/pylorax/results/custom-base.dict @@ -1 +1 @@ -{'name': 'custom-base', 'description': 'A base system with customizations', 'version': '0.0.1', 'groups': [], 'modules': [], 'packages': [{'name': 'bash', 'version': '4.4.*'}], 'customizations': {'hostname': 'custombase', 'sshkey': [{'user': 'root', 'key': 'A SSH KEY FOR ROOT'}]}} +{'name': 'custom-base', 'description': 'A base system with customizations', 'version': '0.0.1', 'modules': [], 'packages': [{'name': 'bash', 'version': '5.0.*'}], 'groups': [], 'customizations': {'hostname': 'custombase', 'sshkey': [{'user': 'root', 'key': 'A SSH KEY FOR ROOT'}], 'kernel': {'append': 'nosmt=force'}, 'user': [{'name': 'admin', 'description': 'Administrator account', 'password': '$6$CHO2$3rN8eviE2t50lmVyBYihTgVRHcaecmeCk31L...', 'key': 'PUBLIC SSH KEY', 'home': '/srv/widget/', 'shell': '/usr/bin/bash', 'groups': ['widget', 'users', 'wheel'], 'uid': 1200, 'gid': 1200}], 'group': [{'name': 'widget', 'gid': 1130}], 'timezone': {'timezone': 'US/Eastern', 'ntpservers': ['0.north-america.pool.ntp.org', '1.north-america.pool.ntp.org']}, 'locale': {'languages': ['en_US.UTF-8'], 'keyboard': 'us'}, 'firewall': {'ports': ['22:tcp', '80:tcp', 'imap:tcp', '53:tcp', '53:udp'], 'services': {'enabled': ['ftp', 'ntp', 'dhcp'], 'disabled': ['telnet']}}, 'services': {'enabled': ['sshd', 'cockpit.socket', 'httpd'], 'disabled': ['postfix', 'telnetd']}}} diff --git a/tests/pylorax/results/custom-base.toml b/tests/pylorax/results/custom-base.toml index 7528b6b2..e21161b5 100644 --- a/tests/pylorax/results/custom-base.toml +++ b/tests/pylorax/results/custom-base.toml @@ -12,3 +12,40 @@ hostname = "custombase" [[customizations.sshkey]] user = "root" key = "A SSH KEY FOR ROOT" + +[customizations.kernel] +append = "nosmt=force" + +[[customizations.user]] +name = "admin" +description = "Administrator account" +password = "$6$CHO2$3rN8eviE2t50lmVyBYihTgVRHcaecmeCk31L..." +key = "PUBLIC SSH KEY" +home = "/srv/widget/" +shell = "/usr/bin/bash" +groups = ["widget", "users", "wheel"] +uid = 1200 +gid = 1200 + +[[customizations.group]] +name = "widget" +gid = 1130 + +[customizations.timezone] +timezone = "US/Eastern" +ntpservers = ["0.north-america.pool.ntp.org", "1.north-america.pool.ntp.org"] + +[customizations.locale] +languages = ["en_US.UTF-8"] +keyboard = "us" + +[customizations.firewall] +ports = ["22:tcp", "80:tcp", "imap:tcp", "53:tcp", "53:udp"] + +[customizations.firewall.services] +enabled = ["ftp", "ntp", "dhcp"] +disabled = ["telnet"] + +[customizations.services] +enabled = ["sshd", "cockpit.socket", "httpd"] +disabled = ["postfix", "telnetd"]