sailesh1993 / rpms / cloud-init

Forked from rpms/cloud-init 10 months ago
Clone
cb63e1
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
cb63e1
index f56c0cf..1fd48a7 100755
cb63e1
--- a/cloudinit/distros/__init__.py
cb63e1
+++ b/cloudinit/distros/__init__.py
cb63e1
@@ -32,7 +32,7 @@ from cloudinit.distros.parsers import hosts
cb63e1
 
cb63e1
 OSFAMILIES = {
cb63e1
     'debian': ['debian', 'ubuntu'],
cb63e1
-    'redhat': ['fedora', 'rhel'],
cb63e1
+    'redhat': ['centos', 'fedora', 'rhel'],
cb63e1
     'gentoo': ['gentoo'],
cb63e1
     'freebsd': ['freebsd'],
cb63e1
     'suse': ['sles'],
cb63e1
diff --git a/cloudinit/distros/centos.py b/cloudinit/distros/centos.py
cb63e1
new file mode 100644
cb63e1
index 0000000..4b803d2
cb63e1
--- /dev/null
cb63e1
+++ b/cloudinit/distros/centos.py
cb63e1
@@ -0,0 +1,12 @@
cb63e1
+# This file is part of cloud-init. See LICENSE file for license information.
cb63e1
+
cb63e1
+from cloudinit.distros import rhel
cb63e1
+from cloudinit import log as logging
cb63e1
+
cb63e1
+LOG = logging.getLogger(__name__)
cb63e1
+
cb63e1
+
cb63e1
+class Distro(rhel.Distro):
cb63e1
+    pass
cb63e1
+
cb63e1
+# vi: ts=4 expandtab
cb63e1
diff -uNr cloud-init-0.7.9__orig/rhel/cloud.cfg cloud-init-0.7.9/rhel/cloud.cfg
cb63e1
--- cloud-init-0.7.9__orig/rhel/cloud.cfg	2017-09-05 22:20:14.302075947 +0100
cb63e1
+++ cloud-init-0.7.9/rhel/cloud.cfg	2017-09-05 22:20:37.912076373 +0100
cb63e1
@@ -52,7 +52,7 @@
cb63e1
 
cb63e1
 system_info:
cb63e1
   default_user:
cb63e1
-    name: cloud-user
cb63e1
+    name: centos
cb63e1
     lock_passwd: true
cb63e1
     gecos: Cloud User
cb63e1
     groups: [wheel, adm, systemd-journal]