From cb63e19996d9eb6a8ccfc14628d64bbe67a1b0a2 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Jan 25 2018 16:29:18 +0000 Subject: add cloud-init-add-centos-os.patch --- diff --git a/SOURCES/cloud-init-add-centos-os.patch b/SOURCES/cloud-init-add-centos-os.patch new file mode 100644 index 0000000..977c156 --- /dev/null +++ b/SOURCES/cloud-init-add-centos-os.patch @@ -0,0 +1,43 @@ +diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py +index f56c0cf..1fd48a7 100755 +--- a/cloudinit/distros/__init__.py ++++ b/cloudinit/distros/__init__.py +@@ -32,7 +32,7 @@ from cloudinit.distros.parsers import hosts + + OSFAMILIES = { + 'debian': ['debian', 'ubuntu'], +- 'redhat': ['fedora', 'rhel'], ++ 'redhat': ['centos', 'fedora', 'rhel'], + 'gentoo': ['gentoo'], + 'freebsd': ['freebsd'], + 'suse': ['sles'], +diff --git a/cloudinit/distros/centos.py b/cloudinit/distros/centos.py +new file mode 100644 +index 0000000..4b803d2 +--- /dev/null ++++ b/cloudinit/distros/centos.py +@@ -0,0 +1,12 @@ ++# This file is part of cloud-init. See LICENSE file for license information. ++ ++from cloudinit.distros import rhel ++from cloudinit import log as logging ++ ++LOG = logging.getLogger(__name__) ++ ++ ++class Distro(rhel.Distro): ++ pass ++ ++# vi: ts=4 expandtab +diff -uNr cloud-init-0.7.9__orig/rhel/cloud.cfg cloud-init-0.7.9/rhel/cloud.cfg +--- cloud-init-0.7.9__orig/rhel/cloud.cfg 2017-09-05 22:20:14.302075947 +0100 ++++ cloud-init-0.7.9/rhel/cloud.cfg 2017-09-05 22:20:37.912076373 +0100 +@@ -52,7 +52,7 @@ + + system_info: + default_user: +- name: cloud-user ++ name: centos + lock_passwd: true + gecos: Cloud User + groups: [wheel, adm, systemd-journal]