diff options
author | Joshua Powers <josh.powers@canonical.com> | 2019-12-11 12:16:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 12:16:44 -0800 |
commit | f8ab7debb60200b0f79bf2de74676801e8de2e46 (patch) | |
tree | 2422557504f71cdb112c555367c3df6230f959fa | |
parent | 143e13bc1311357995c6ba2ee76032c433fbd65b (diff) | |
parent | 8620351be7cc8bcfee858be8190c37956a3f1c56 (diff) | |
download | vyos-cloud-init-f8ab7debb60200b0f79bf2de74676801e8de2e46.tar.gz vyos-cloud-init-f8ab7debb60200b0f79bf2de74676801e8de2e46.zip |
Merge pull request #96 from fred-lefebvre/master
Add an Amazon distro in the redhat OS family
-rwxr-xr-x[-rw-r--r--] | cloudinit/distros/__init__.py | 2 | ||||
-rw-r--r-- | cloudinit/distros/amazon.py | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index 2ec79577..2b559fe6 100644..100755 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -36,7 +36,7 @@ ALL_DISTROS = 'all' OSFAMILIES = { 'debian': ['debian', 'ubuntu'], - 'redhat': ['centos', 'fedora', 'rhel'], + 'redhat': ['amazon', 'centos', 'fedora', 'rhel'], 'gentoo': ['gentoo'], 'freebsd': ['freebsd'], 'suse': ['opensuse', 'sles'], diff --git a/cloudinit/distros/amazon.py b/cloudinit/distros/amazon.py new file mode 100644 index 00000000..ff9a549f --- /dev/null +++ b/cloudinit/distros/amazon.py @@ -0,0 +1,26 @@ +# Copyright (C) 2012 Canonical Ltd. +# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. +# Copyright (C) 2012 Yahoo! Inc. +# Copyright (C) 2014 Amazon.com, Inc. or its affiliates. +# +# Author: Scott Moser <scott.moser@canonical.com> +# Author: Juerg Haefliger <juerg.haefliger@hp.com> +# Author: Joshua Harlow <harlowja@yahoo-inc.com> +# Author: Andrew Jorgensen <ajorgens@amazon.com> +# +# 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): + + def update_package_sources(self): + return None + + +# vi: ts=4 expandtab |