sailesh1993 / rpms / cloud-init

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