summaryrefslogtreecommitdiff
path: root/setup.py
AgeCommit message (Collapse)Author
2017-02-03Add tools/ds-identify to identify datasources available.Scott Moser
ds-identify is run here from the generator. If ds-identify does not see any datasources, it can completely disable cloud-init. The big value in this is that if there is no datasource, no python will ever be loaded, and cloud-init will be disabled.o The default policy being added here is: search,found=all,maybe=all,notfound=disabled That means: - enable (in 'datasource_list') all sources that are found. - if none are found, enable all 'maybe'. - if no maybe are found, then disable cloud-init. On platforms without DMI (everything except for aarch64 and x86), the default 'notfound' setting is 'enabled'. This is because many of the detection mechanisms rely on dmi data, which is present only on x86 and aarch64.
2016-12-22LICENSE: Allow dual licensing GPL-3 or Apache 2.0Jon Grimm
This has been a recurring ask and we had initially just made the change to the cloud-init 2.0 codebase. As the current thinking is we'll just continue to enhance the current codebase, its desirable to relicense to match what we'd intended as part of the 2.0 plan here. - put a brief description of license in LICENSE file - put full license versions in LICENSE-GPLv3 and LICENSE-Apache2.0 - simplify the per-file header to reference LICENSE - tox: ignore H102 (Apache License Header check) Add license header to files that ship. Reformat headers, make sure everything has vi: at end of file. Non-shipping files do not need the copyright header, but at the moment tests/ have it.
2016-08-23add install option for openrcMatthew Thode
Adds an install option for for OpenRC init scripts. I've also restricted installing tests more correctly. Also, don't hardcode the path to ip (/bin/ip on gentoo).
2016-08-15Get Azure endpoint server from DHCP clientBrent Baude
It is more efficient and cross-distribution safe to use the hooks function from dhclient to obtain the Azure endpoint server (DHCP option 245). This is done by providing shell scritps that are called by the hooks infrastructure of both dhclient and NetworkManager. The hooks then invoke 'cloud-init dhclient-hook' that maintains json data with the dhclient options in /run/cloud-init/dhclient.hooks/<interface>.json . The azure helper then pulls the value from /run/cloud-init/dhclient.hooks/<interface>.json file(s). If that file does not exist or the value is not present, it will then fall back to the original method of scraping the dhcp client lease file.
2016-08-05drop modification of version during make-tarball, tools changes.Scott Moser
Modification of the tarball became problematic, as it meant that any tool extracting source would find the orig source tarball different. I found this unusable when trying to use 'gbp buildpackage'. Other changes here are to better support using python3 or python2 for the build. Makefile will try to call the right python version and can be told which python to use. read-version: by adding 'tiny_p' and avoiding the import of cloudinit.util, we need less dependencies to run this.
2016-06-14Make the bin/cloud-init an actual console entrypointJoshua Harlow
This allows for the test_cli test to be more sane.
2016-06-06Rebase against masterJoshua Harlow
2016-05-27remove blocking udev functionalityScott Moser
This didn't really work. See bug for more info. LP: #1577844
2016-05-19Remerge against head/masterJoshua Harlow
2016-05-12fix setup.py for flake8Scott Moser
2016-05-11Fix py26 for rhel (and older versions of python)Joshua Harlow
2016-03-18commit the systemd waiting mechanismScott Moser
Note, still broken as cloud-init local is not going to ever touch the CI_NET_READY file (/run/cloud-init/network-config-ready). So as this is , it will actually just block for 60 seconds and go on.
2016-02-29update setup.py to install generatorScott Moser
2016-02-29setup.py: pep8/flake8 changes onlyScott Moser
2015-07-21Add udev rules for Azure ephemeral disks.Daniel Watkins
And install them in the Debian packaging.
2015-01-21Only install cheetah (and only run the cheetah templating test) when in PythonBarry Warsaw
2. Cheetah is not compatible with Python 3.
2015-01-21* Added a simple tox.ini fileBarry Warsaw
* Use universal_newlines in setup.py so it will work properly in Python 3. * Fix a pyflakes complaint in setup.py * Add a simple MANIFEST.in
2015-01-06tools/run-pep8: remove leading ',' fed to --ignoreScott Moser
--ignore was being called with ',E121,E...' rather than 'E121,E...'. that resulted in odd behavior, missing the pep8 errors that are fixed here.
2014-11-25Update with trunk and resolve conflictsJoshua Harlow
2014-10-29Only use datafiles and initsys addon outside virtualenvsJoshua Harlow
To make it so that cloud-init is installable in a virtualenv where it can be tested in an isolated scenario we need to avoid using and including datafiles (which won't be written into the virtualenv) and also avoid using our initsys helper class which also adds on its own files when we are being ran from a virtualenv.
2014-10-17USR_LIB_EXEC varies depending on systemJoshua Harlow
2014-09-02merge from trunkScott Moser
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-08-23fix: Syntax.Harm Weites
2014-08-22setup.py: remove read_datafiles, use globals for ETC and USRScott Moser
2014-08-16fix: Don't create a directory that will never be used anyway.Harm Weites
2014-08-10change: Install everything in the right location on both Linux (whichHarm Weites
ofcourse already was good) and FreeBSD (which realy likes /usr/local for this).
2014-08-09fix: To install the new freebsd sysvinit scripts, accept a newHarm Weites
sysvinit_freebsd argument. Specifying sysvinit will install the RH scripts, which is wrong.
2014-07-24pep8 fixes (2 unrelated to this mp)Scott Moser
2014-07-24remove print statement from setup.pyScott Moser
2014-07-24Merge systemd instlal paths.Dimitri John Ledkov
2014-07-24refactor redundant systemd_rootDimitri John Ledkov
2014-07-24Use pkg-configDimitri John Ledkov
2014-07-23fix upsDimitri John Ledkov
2014-07-23refactorDimitri John Ledkov
2014-07-23Modernise packaging, and allow multiple init system installation (based on ↵Dimitri John Ledkov
smoser pastebins).
2014-07-23Make systemd root installation dir appropriate for debian-like systems, else ↵Dimitri John Ledkov
fallback to universally acceptable one.
2014-01-24pep8/pylint fixesScott Moser
tools/run-pep8 wasn't checking all python files. tools/run-pylint wasnt checking bin/cloud-init fixed resultant pep8 issues after finding them.
2013-07-19move redhat sysvinit scriptsJuerg Haefliger
2013-03-19pylint fixesScott Moser
a.) appease pylint on raring, as it doesn't like subprocess pylint: 0.26.0-1ubuntu1 This is mentioned in comments at http://www.logilab.org/ticket/46273 b.) tests/unittests/test_util.py: the mountinfo lines are longer than 80 chars. Just disable long lines complaints for this file.
2013-02-21New option INIT_SYSTEM=sysvinit_deb for Debian /etc/ directoriesVlastimil Holer
2013-02-21Modify init-scripts to be able to run both on RHEL and Debian.Vlastimil Holer
2012-08-09pylint: setup.pyScott Moser
2012-07-06Fix the initsys variable, setuptools/distools will automatically assignJoshua Harlow
to a variable of the name 'init_system' instead due to the param name being 'init-system'.
2012-07-06setup.py: rename "daemon type" to "init system"Scott Moser
This brings with it other changes, and also makes an install install all of the requisite init files. (ie, cloud-init needs the -local and the non-local)
2012-07-03Add the ability to have setup.py have a CLI option that specifies the daemon ↵Joshua Harlow
type which then later affects the installation of certain config files, which then can be extracted during package creation as needed.
2012-07-021. Fixup the setup.py to not include custom startup scripts, let the ↵Joshua Harlow
packaging solutions handle these 2. Get the cloud-init specfile working for the init.d case (with the right postun and post and install sections) a. It works!!!
2012-06-26Copy the tiny_p from the packager codeharlowja
2012-06-26Add all the upstart/systemd/init.d files.harlowja
Let the package building solutions figure out exactly which of these they wish to delete or wish to take, since setup.py can not know it just has to install them all.
2012-06-25Use the standard utils now in tools for reading requires/dependencies/versions.Joshua Harlow