From bdd1f47d5262e0edbef6be1745c956b98cdbbe3b Mon Sep 17 00:00:00 2001
From: Patrick Uiterwijk <patrick@puiterwijk.org>
Date: Oct 27 2017 13:52:19 +0000
Subject: Base for f27


Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>

---

diff --git a/fedora-atomic-host-base.json b/fedora-atomic-host-base.json
new file mode 100644
index 0000000..3cb7373
--- /dev/null
+++ b/fedora-atomic-host-base.json
@@ -0,0 +1,143 @@
+{
+    "ref": "fedora/27/${basearch}/atomic-host",
+
+    "repos": [],
+
+    "selinux": true,
+
+    "documentation": false,
+
+    "automatic_version_prefix": "27",
+    "mutate-os-release": "27",
+
+    "initramfs-args": ["--no-hostonly", "--add", "iscsi"],
+
+    "install-langs-comment": "Keep this in sync with treecompose-post.sh",
+    "install-langs": [
+      "pt_BR",
+      "fr",
+      "fr_FR",
+      "de",
+      "de_DE",
+      "it",
+      "it_IT",
+      "ru",
+      "ru_RU",
+      "es",
+      "es_ES",
+      "en_US",
+      "zh_CN",
+      "ja",
+      "ja_JP",
+      "ko",
+      "ko_KR",
+      "zh_TW",
+      "as",
+      "as_IN",
+      "bn",
+      "bn_IN",
+      "gu",
+      "gu_IN",
+      "hi",
+      "hi_IN",
+      "kn",
+      "kn_IN",
+      "ml",
+      "ml_IN",
+      "mr",
+      "mr_IN",
+      "or",
+      "or_IN",
+      "pa",
+      "pa_IN",
+      "ta",
+      "ta_IN",
+      "te",
+      "te_IN"
+    ],
+
+    "postprocess-script": "treecompose-post.sh",
+
+    "etc-group-members": ["wheel", "docker"],
+
+    "ignore-removed-users": ["root"],
+    "ignore-removed-groups": ["root"],
+    "check-passwd": { "type": "file", "filename": "passwd" },
+    "check-groups": { "type": "file", "filename": "group" },
+
+    "packages": ["atomic",
+         "glibc", "nss-altfiles", "shadow-utils",
+         "sssd-client", "libsss_sudo",
+         "fedora-release-atomichost",
+         "dracut-config-generic", "kernel",
+         "dracut-network",
+         "rpm-ostree", "lvm2",
+         "chrony",
+         "cryptsetup",
+         "authconfig",
+         "btrfs-progs", "e2fsprogs", "xfsprogs",
+         "gnupg2",
+         "basesystem",
+         "python",
+         "bash",
+         "xz", "gzip", "bzip2",
+         "coreutils",
+         "bridge-utils",
+         "which",
+         "nfs-utils",
+         "curl",
+         "iptables-services", "iptables",
+         "NetworkManager",
+         "dnsmasq",
+         "hostname", "initscripts", "iproute", "iputils", "less",
+         "sos",
+         "openssh-clients", "openssh-server", "passwd",
+         "policycoreutils", "procps-ng", "rootfiles", "rpm",
+         "selinux-policy-targeted", "setup", "shadow-utils",
+         "sudo", "systemd", "util-linux", "vim-minimal",
+         "less",
+         "tar",
+         "cloud-init",
+         "cloud-utils-growpart",
+         "rsync",
+         "bash-completion",
+         "tmux", "screen",
+         "strace", "lsof", "tcpdump", "nmap-ncat",
+         "policycoreutils-python",
+         "policycoreutils-python-utils",
+         "setools-console",
+         "audit",
+         "cockpit-bridge",
+         "cockpit-system",
+         "cockpit-docker",
+         "cockpit-networkmanager",
+         "cockpit-ostree",
+         "docker",
+         "python-docker-py",
+         "iscsi-initiator-utils",
+         "glusterfs", "glusterfs-fuse",
+         "ceph-common",
+         "oddjob-mkhomedir",
+         "oci-register-machine",
+         "oci-systemd-hook",
+         "mdadm",
+         "runc",
+         "attr"],
+
+    "packages-aarch64": ["grub2-efi", "ostree-grub2",
+                         "efibootmgr", "shim", "atomic-devmode"],
+
+    "packages-armhfp": ["extlinux-bootloader"],
+
+    "packages-ppc64": ["grub2", "ostree-grub2", "atomic-devmode"],
+
+    "packages-ppc64le": ["grub2", "ostree-grub2", "atomic-devmode"],
+
+    "packages-x86_64": ["grub2", "grub2-efi-x64", "ostree-grub2",
+                         "efibootmgr", "shim", "atomic-devmode",
+                         "microcode_ctl"],
+
+    "default_target": "multi-user.target",
+
+    "units": ["docker.service", "cockpit.socket", "docker-storage-setup.service"]
+}
diff --git a/fedora-atomic-host-updates-stable.json b/fedora-atomic-host-updates-stable.json
index 1ce1878..0e3d421 100644
--- a/fedora-atomic-host-updates-stable.json
+++ b/fedora-atomic-host-updates-stable.json
@@ -1,4 +1,4 @@
 {
     "ref": "fedora/27/${basearch}/updates/atomic-host",
-    "include": "fedora-atomic-host.json"
+    "include": "fedora-atomic-host-base.json"
 }
diff --git a/fedora-atomic-host-updates-testing.json b/fedora-atomic-host-updates-testing.json
index 8a57858..8040a2e 100644
--- a/fedora-atomic-host-updates-testing.json
+++ b/fedora-atomic-host-updates-testing.json
@@ -1,4 +1,4 @@
 {
     "ref": "fedora/27/${basearch}/testing/atomic-host",
-    "include": "fedora-atomic-host.json"
+    "include": "fedora-atomic-host-base.json"
 }
diff --git a/fedora-atomic-host.json b/fedora-atomic-host.json
index 4f75ba3..7f9f216 100644
--- a/fedora-atomic-host.json
+++ b/fedora-atomic-host.json
@@ -1,143 +1,5 @@
 {
     "ref": "fedora/27/${basearch}/atomic-host",
-
     "repos": ["fedora-27", "fedora-27-updates"],
-
-    "selinux": true,
-
-    "documentation": false,
-
-    "automatic_version_prefix": "27",
-    "mutate-os-release": "27",
-
-    "initramfs-args": ["--no-hostonly", "--add", "iscsi"],
-
-    "install-langs-comment": "Keep this in sync with treecompose-post.sh",
-    "install-langs": [
-      "pt_BR",
-      "fr",
-      "fr_FR",
-      "de",
-      "de_DE",
-      "it",
-      "it_IT",
-      "ru",
-      "ru_RU",
-      "es",
-      "es_ES",
-      "en_US",
-      "zh_CN",
-      "ja",
-      "ja_JP",
-      "ko",
-      "ko_KR",
-      "zh_TW",
-      "as",
-      "as_IN",
-      "bn",
-      "bn_IN",
-      "gu",
-      "gu_IN",
-      "hi",
-      "hi_IN",
-      "kn",
-      "kn_IN",
-      "ml",
-      "ml_IN",
-      "mr",
-      "mr_IN",
-      "or",
-      "or_IN",
-      "pa",
-      "pa_IN",
-      "ta",
-      "ta_IN",
-      "te",
-      "te_IN"
-    ],
-
-    "postprocess-script": "treecompose-post.sh",
-
-    "etc-group-members": ["wheel", "docker"],
-
-    "ignore-removed-users": ["root"],
-    "ignore-removed-groups": ["root"],
-    "check-passwd": { "type": "file", "filename": "passwd" },
-    "check-groups": { "type": "file", "filename": "group" },
-
-    "packages": ["atomic",
-         "glibc", "nss-altfiles", "shadow-utils",
-         "sssd-client", "libsss_sudo",
-         "fedora-release-atomichost",
-         "dracut-config-generic", "kernel",
-         "dracut-network",
-         "rpm-ostree", "lvm2",
-         "chrony",
-         "cryptsetup",
-         "authconfig",
-         "btrfs-progs", "e2fsprogs", "xfsprogs",
-         "gnupg2",
-         "basesystem",
-         "python",
-         "bash",
-         "xz", "gzip", "bzip2",
-         "coreutils",
-         "bridge-utils",
-         "which",
-         "nfs-utils",
-         "curl",
-         "iptables-services", "iptables",
-         "NetworkManager",
-         "dnsmasq",
-         "hostname", "initscripts", "iproute", "iputils", "less",
-         "sos",
-         "openssh-clients", "openssh-server", "passwd",
-         "policycoreutils", "procps-ng", "rootfiles", "rpm",
-         "selinux-policy-targeted", "setup", "shadow-utils",
-         "sudo", "systemd", "util-linux", "vim-minimal",
-         "less",
-         "tar",
-         "cloud-init",
-         "cloud-utils-growpart",
-         "rsync",
-         "bash-completion",
-         "tmux", "screen",
-         "strace", "lsof", "tcpdump", "nmap-ncat",
-         "policycoreutils-python",
-         "policycoreutils-python-utils",
-         "setools-console",
-         "audit",
-         "cockpit-bridge",
-         "cockpit-system",
-         "cockpit-docker",
-         "cockpit-networkmanager",
-         "cockpit-ostree",
-         "docker",
-         "python-docker-py",
-         "iscsi-initiator-utils",
-         "glusterfs", "glusterfs-fuse",
-         "ceph-common",
-         "oddjob-mkhomedir",
-         "oci-register-machine",
-         "oci-systemd-hook",
-         "mdadm",
-         "runc",
-         "attr"],
-
-    "packages-aarch64": ["grub2-efi", "ostree-grub2",
-                         "efibootmgr", "shim", "atomic-devmode"],
-
-    "packages-armhfp": ["extlinux-bootloader"],
-
-    "packages-ppc64": ["grub2", "ostree-grub2", "atomic-devmode"],
-
-    "packages-ppc64le": ["grub2", "ostree-grub2", "atomic-devmode"],
-
-    "packages-x86_64": ["grub2", "grub2-efi-x64", "ostree-grub2",
-                         "efibootmgr", "shim", "atomic-devmode",
-                         "microcode_ctl"],
-
-    "default_target": "multi-user.target",
-
-    "units": ["docker.service", "cockpit.socket", "docker-storage-setup.service"]
+    "include": "fedora-atomic-host-base.json"
 }

