Commit Graph

113 Commits

Author SHA1 Message Date
Stephen Finucane 868096bb52 Retire cloud-init
This appears to be an unmaintained fork of the original code, which
lives elsewhere [1]. Kill it.

[1] https://github.com/cloud-init/cloud-init

Change-Id: I1f57197f1f67aa6adce152b5e4acc63a72277c6a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-04-01 16:48:35 +01:00
Scott Moser 37927ffd9c tools/tox-venv: support running other than ./tools/tox-venv
this improves tox-venv to:
a.) consider ./.tox as the tox dir
    useful if you run tox-venv from ~/bin and you're in cloud-init dir
    with .tox there.
    if no tox.ini and .tox are in this dir, fall back to using
    the old look ${0%/*}/../.tox

b.) support '--list'
    ie, running tox-venv adds support to tox-venv so you can list environments
    explicitly

c.) outputs the list of available environments with --help
    a '*' at the end indicates the environment appears presnt.

d.) any environment not present will be created with unless '--no-create'

e.) 4 spaces instead of 3 for indentation consistency with python

Example usage:
  $ tox-venv docs python --version
  Python 3.4.3+

Change-Id: I8a3d07c27fc3e4e41421e59ac5f47628a3612b83
2015-07-02 17:53:53 +00:00
Scott Moser e708c300aa tox: disable proxies when running nosetests
httpretty does not handle proxy well, but the need for http_proxy and
https_proxy is present if you're needing to install pip packages
behind a proxy.

Right now this will fail:
  http_proxy=http://my.proxy/ tox --recreate

Example failures are in
   UrlHelperWaitForUrlsTest.test_url_wait_for

it seems reasonable that we would never want proxy set when running tests
as we should never be doing real http traffic.

This just wraps our calls to nosetests with something that removes
the http_proxy friends.

Change-Id: I96585acaed0c8d70e1925b3859c85c87d1e07b2f
2015-06-25 09:54:55 -04:00
Scott Moser d47f08931c tools/tox-venv: remove unnecessary redirection 2015-03-24 20:19:23 -04:00
Scott Moser 404e1a81a9 tools/tox-venv: add wrapper for entering tox environ 2015-01-21 16:48:31 -05:00
Scott Moser c81466ce76 initial tree for 2.0 work 2015-01-21 10:00:26 -05:00
Scott Moser d90bfd6268 tools/ccfg-merge-debug: fix for updated user-data/vendor-data
this was broken previously when user-data and vender-data were
brought together.
2014-12-09 10:47:05 -05:00
Scott Moser eef86aa16c tools/build-on-freebsd: e2fsprogs provides blkid 2014-09-29 09:04:35 -04:00
Scott Moser 024e0de51c tools/build-on-freebsd: add blkid and e2fsprogrs 2014-09-29 09:02:27 -04:00
Scott Moser f0a418aed5 tools/build-on-freebsd: sort pkgs list 2014-09-29 09:01:56 -04:00
Harm Weites f3a4880c71 fix: Since these now actually exist in ports, install them properly
(with pkg).
2014-09-03 17:20:43 +00:00
Scott Moser 09c732c07c merge from trunk 2014-09-02 12:18:21 -04:00
Scott Moser 6b2fc2034a further remove evidence of pylint.
This just removes comments '# pylint:' things and other code
remnents of pylint.
2014-08-26 15:53:41 -04:00
Jay Faulkner 18d1aea913 fix(pep8): Fix various pep8 violations and version-lock pep8
Fixed all complaints from running "make pep8". Also version locked
pep8 in test-requirements.txt to ensure that pep8 requirements don't
change without an explicit commit.
2014-08-26 11:50:11 -07:00
Harm Weites 25354f4fa5 change: Rename the config file to cloud.cfg-freebsd so it doesn't
get copied per default. Packaging will take care of installing this
configfile on the BSD platform.
2014-08-23 12:16:03 +00:00
Harm Weites d63b6d2f56 fix: Use the correct variable. 2014-08-23 12:06:51 +00:00
Scott Moser fb20ef8f85 build-on-freebsd: minor cleanups/bikeshedding 2014-08-22 16:50:47 -04:00
Harm Weites 35d36dd7e2 fix: Install the python package that will install the required link to
the python2.7 binary. This defaults to 2.7, which is fine.
2014-08-14 16:18:15 +00:00
Harm Weites 35236255a0 change: Install everything in the right location on both Linux (which
ofcourse already was good) and FreeBSD (which realy likes /usr/local
for this).
2014-08-10 11:50:19 +00:00
Harm Weites 885830ae47 change: Save and restore the SSH keys between builds. 2014-08-10 09:41:42 +00:00
Harm Weites b96a53e29f change: Make note of another python lib pypi takes care of. 2014-08-09 21:25:54 +00:00
Harm Weites a157c29e0c change: Create a symlink to python2.7, to make sure running plain python
works.
2014-08-09 21:24:19 +00:00
Harm Weites aca5f7d454 new: Some datasources (like Smartos) use dmidecode to gather some specific
information, so install it.
2014-08-09 10:57:28 +00:00
Harm Weites ea68e7f9f1 fix: More dependencies. 2014-08-09 10:56:13 +00:00
Harm Weites d43b49ea91 new: Buildscript for installing on FreeBSD. This should do until a
proper port is created.
2014-08-09 10:27:28 +00:00
Scott Moser ed634a4760 tools/make-tarball: add ability to include uncommited changes
if you have UNCOMMITTED=1 in environment then the tree will
contain uncommitted changes.
2014-02-28 16:19:19 -05:00
Scott Moser 16cfb37ac7 add --dummy-variables-rgx= param when calling pylint
new pylint in trusty complains about '_' variables if we don't do this.
This seems to be ok in older versions of pylint also.
2014-01-24 15:28:06 -05:00
Scott Moser b9fa90b977 pep8/pylint fixes
tools/run-pep8 wasn't checking all python files.
tools/run-pylint wasnt checking bin/cloud-init

fixed resultant pep8 issues after finding them.
2014-01-24 14:47:28 -05:00
Scott Moser 1c99abb054 tools/read-dependencies tools/read-version: rewrite in python
This just does python rewrites of these tools that were shell or sed or
grep.  Clearly the user of cloud-init has python, but it turns out that
getting sane versions of sed or grep on different unixes is less than
simple.
2014-01-22 14:41:34 -05:00
Joshua Harlow 01e9c38447 Update makefile to install from updated requirements files 2014-01-17 23:46:19 -08:00
Scott Moser d32f04d0c7 fix read-version 2013-09-11 16:58:01 -04:00
Scott Moser 949fb98df7 better checking and portability in read-dependencies and read-version 2013-09-11 13:27:40 -04:00
Scott Moser 0453420758 tools/read-dependencies, read-version: cleanups, and use sed not grep
There are just some cleanups here, and use of simply 'sed' rather than
grep and cut.  The motivation is to support running with non gnu 
'grep' that doesn't have -P.
2013-09-08 09:31:03 -04:00
Scott Moser a4ce87bedd add debug output to ccfg-merge-debug
Exeptions were being swallowed completely and no way to even see them
other than log.
2013-04-17 09:42:55 -07:00
Scott Moser 71a330763e tools: fix [some] shell quoting problems
There were problems with these tools if the path had a space.  This should
make these tools safe.  There are others that still have problems.
2013-04-09 18:00:23 -04:00
Scott Moser 09285a4f6f tools: fix [some] shell quoting problems
There were problems with these tools if the path had a space.  This should
make these tools safe.  There are others that still have problems.
2013-04-09 17:57:41 -04:00
Scott Moser 263a2ddbc5 add merge debug tool 2013-04-03 17:39:32 -05:00
Joshua Harlow cdac344ae5 Add in a tool to help make mime multipart messages. 2013-01-21 20:21:04 -08:00
Scott Moser b8cb48ed38 replace if..else based on presense of /etc/redhat-release with use of -s
instead of using '--stderr' on non-rhel based on the presense of
/etc/redhat-release, just use the short form '-s' everywhere.
2012-12-04 10:04:14 -05:00
Joshua Harlow 55e3d73574 Check for running inside RHEL and adjust the logging options.
It seems like at least RHEL does not have the "--stderr" option
but instead only supports the short version "-s" so add a check 
that will switch from the long version to the short version when
RHEL is detected.
2012-11-28 10:41:42 -08:00
Scott Moser 17714831d6 whitespace / indentation cleanups
These changes were pulled out of the previous merge (cc_yum_add_repo)
as they were unrelated there.  Re-applying them here.
2012-11-10 22:32:49 -05:00
Joshua Harlow ce2d9209bd Merge the yaml/cloud config examples checking tool. 2012-11-09 14:44:05 -08:00
Joshua Harlow 65cc54a3bc Fix pep8 warnings. 2012-11-09 14:40:41 -08:00
Joshua Harlow ef18ab2f4f Ensure that at needed stages the local variables
of the init class are reset so that when they are
regenerated that they will use the updated data
instead of using previous data (since they weren't reset).
2012-11-08 16:30:57 -08:00
Joshua Harlow 50084fe4ed Add non-zero exit code when
bad yamls are found instead
of returning zero in that case.
2012-11-08 08:55:04 -08:00
Scott Moser 2ce165241b work with zsh by using 'emulate -L sh'.
This makes zsh act like 'sh', but only for the function local function.
This way, we do not affect the user's shell, but get the behavior we
want.
2012-11-08 09:31:26 -05:00
Scott Moser 5cd1fc4868 remove unused variable 'cr'. fix usage of 'value' to local 'val' 2012-11-08 09:31:11 -05:00
Scott Moser 6ac99f0c9a revert old zsh fix (revno 697) 2012-11-08 09:30:51 -05:00
Joshua Harlow e5011eeb34 Add a makefile yaml checking target
and fix the cases where the cc yaml
is not correct.
2012-11-07 21:00:33 -08:00
Joshua Harlow 8586407d4d test and path cleanups.
1. Remove the usage of the path.join function now that all code should
   be going through the util file methods (and they can be mocked out as
   needed).
2. Adjust all occurences of the above join function to either not use it
   or replace it with the standard os.path.join (which can also be mocked
   out as needed)
3. Fix pylint from complaining about the tests folder 'helpers.py' not
   being found.
4. Add a pylintrc file that is used instead of the options hidden in the
   'run_pylint' tool.
2012-11-07 10:42:54 -05:00