Commit Graph

116 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 2b4e90d8ed LICENSE: license / header redux
- 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

- also, tox.ini: work around httpretty issue

Change-Id: I259ed23767472047da823c1a67085e47afc561d8
2015-05-13 21:26:05 -04:00
Scott Moser e4233022fa license change GPLv3 to Apache 2.0 2015-03-24 20:22:08 -04:00
Joshua Harlow e2b814881c Update with trunk and resolve conflicts 2014-11-25 11:46:10 -08:00
Joshua Harlow 8233014484 Use TODO.rst instead of removing it 2014-10-17 16:24:19 -07:00
Joshua Harlow bc8c6adeb7 Ensure the files/dirs are retained 2014-10-17 15:57:09 -07:00
Joshua Harlow d06c04a19a More spec file tweaks
- Use _libexecdir for the helper binaries
- Use _sharedstatedir instead of /var/lib
- Ensure _libexecdir/${name} exists
2014-10-17 15:55:03 -07:00
Joshua Harlow 0bc1b07861 Include the systemd config files 2014-10-17 13:27:58 -07:00
Joshua Harlow 502da7dca5 Show the spec file content 2014-10-13 15:36:30 -07:00
Joshua Harlow b7592e69ce Fix the rpm building (currently broken) 2014-10-13 15:29:10 -07: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
Scott Moser e7e620ab86 test: make selinux test skipped if selinux not available.
Also, in debian packaging depend on it (so it wont skip there).
2014-07-24 11:12:14 -04:00
Scott Moser 6f9d4a939b remove duplicate entry in control.in 2014-07-24 08:58:45 -04:00
Scott Moser 3981224d3f merge from trunk 2014-07-24 08:49:42 -04:00
Scott Moser 98d27c72c1 bddeb: do not sign by default
instead of making the common use case need to pass '-us -uc',
make the less common use case pass '--sign'.
2014-07-24 08:47:27 -04:00
Scott Moser ddde83a691 default bddeb to building both systemd and upstart 2014-07-24 12:42:50 +00:00
Dimitri John Ledkov 5e0bc6e631 Yeah, tests pass now. 2014-07-24 11:40:18 +01:00
Dimitri John Ledkov 3ab0c2b691 more 2014-07-23 17:50:45 +01:00
Dimitri John Ledkov 6b47a3ef74 use override targets 2014-07-23 17:32:49 +01:00
Dimitri John Ledkov c796cc7058 Use nosetests and absolute imports 2014-07-23 17:07:12 +01:00
Dimitri John Ledkov d10d1201bd Use tests 2014-07-23 16:58:14 +01:00
Dimitri John Ledkov 3a08388890 fix up 2014-07-23 16:51:05 +01:00
Dimitri John Ledkov 2b37d0d021 fix ups 2014-07-23 16:48:14 +01:00
Dimitri John Ledkov 2b2f57d9d8 Modernise packaging, and allow multiple init system installation (based on smoser pastebins). 2014-07-23 15:47:16 +01:00
Scott Moser ca61b25a4e add package info for bddeb/brpm 2014-07-21 14:47:08 -04:00
Scott Moser d5d0ed1989 remove the 'tools/sudo' file and references in cloud-init.spec.in
I'm not really sure what the function of tools/sudo was, and it was definitely
not required for fixing the rpm build.
2014-02-10 15:48:41 -05:00
Vlastimil Holer 571e15cdbb Fix sudo cfg. file mode. Require sudo >= 1.7.2p2-3 with sudoers.d support. 2014-01-31 16:05:28 +01:00
Vlastimil Holer 3e6ec5ada1 Added config for sudo. Apply sudo config in RPM for Red Hat. 2014-01-31 15:40:55 +01:00
Vlastimil Holer 9d01db1aeb Fix Requires->requirements.txt rename in RPM build. 2014-01-31 14:15:40 +01:00
Scott Moser d70c190622 more boto removal. move httpretty from 'Requires'
the Requires would get that string rendered into the package's
Depends/Requires (rather than BuildDepends/BuildRequires).
We should have BuildDepends/BuildRequires too, but since
trunk's package builds do not run 'make test', this isn't a big deal.

This also adds 'test-requires' for httpretty.
2014-01-17 17:08:58 -05:00
Vlastimil Holer 8d32c39ba0 Add 'Requires' or 'Recommends' on sudo in packaging files. 2014-01-17 16:40:13 -05:00
Vlastimil Holer db77da114a Require sudo package. 2014-01-15 12:49:52 +01:00
Scott Moser 4f6b054241 packages/debian/control.in: remove 'python:Depends'
remove python:Depends macro from the control.in file.  This seemed to be
overriding my 'python-json-patch | python-jsonpatch' with whichever
one was installed.

So, we're not getting automatic dependencies on trunk, which is honestly fine.
We'll manage them this way.
2013-12-14 13:41:32 -05:00
Scott Moser bad7db5a70 packages/bddeb: accept python-json-patch or python-jsonpatch
debian bug 717916 renames python-json-patch to python-jsonpatch, so ubuntu
cloud-images with cloud-init may not have python-json-patch.

Just accept either one.
2013-12-13 17:07:01 -05:00
Scott Moser f804a8ee0c bddeb: depend on cloud-utils or cloud-guest-utils
saucy split cloud-utils into cloud-guest-utils and cloud-image-utils.
The former is in the cloud image, the latter is not, and
we actually need it for growpart which is in the former.
2013-09-25 15:07:49 -04:00
Scott Moser 8166ac8e03 add 'pyserial' to bddeb and bdrpm 2013-07-29 13:21:57 -04:00
Scott Moser eefc25a7f4 add debian init scripts
These are debian's init scripts as taken from their trunk svn
as of today.  Thanks Juerg.
2013-07-25 17:03:55 -04:00
Scott Moser 161e2da468 add --init-sytem to ./packages/bddeb
this way you can now do ./package/bddeb --init-system=sysvinit_deb
2013-07-25 17:01:57 -04:00
Scott Moser a8b94a575f update dependencies for jsonpatch 2013-07-24 15:08:40 -04:00
Juerg Haefliger ff8fbbe9bc Add support for building a SLES rpm package 2013-06-27 13:46:56 +02:00
Scott Moser 92279d78c0 fix brpm and bddeb by knowing about 'python-requests' 2013-03-26 14:32:12 -04:00
Vlastimil Holer 5d82b78ef3 Added arguments to packages/bddeb:
-d                pass through '-d' to debuild
  --no-cloud-utils  don't depend on cloud-utils package (default: False)

These are essential for building on Debian 6, because there are
no python-mocker (build dependency) and cloud-utils (install dependency)
in squeeze and squeeze-backports.
2013-02-20 17:13:38 +01:00
Scott Moser b47ec6206a add debian watch 2012-11-14 15:28:16 -05:00
Scott Moser 6ceaf14b37 Even when using boto < 2.6 force the unlazying to occur
It seems like its possible that boto 2.5.2 and below have the lazy loading
metadata dictionary so as a precaution we will always take the hit of
unlazying the metadata dictionary by traversing it which in the non-lazy
dictionary case has no effect (its marginal). This also removes the need
to check the boto version and the dependency on setup tools just for this
case.
2012-11-13 14:13:12 -05:00
Scott Moser 5e6a446e4e add dependency for 'pkg_resources' 2012-11-13 12:08:45 -05:00
Scott Moser 6dcd6a775c sort PKG_MP entries 2012-11-13 12:07:03 -05:00
Scott Moser babbf53f72 wrap boto.utils.get_instance_metadata to ensure non-lazy loading
newer versions of boto lazily load the metadata from the ec2
metadata service. Here, we:

1. Add a ec2_utils module that checks which version of boto is being used and
   under the right versions the metadata dictionary will be expanded.
2. Use this new ec2_utils module in the cloudstack and ec2
   datasources as there entrypoints into boto.
3. Add a dependency on python-pkg-resources (from pkg_resources import
   parse_version) to determine the boto version.
2012-11-12 10:01:02 -05:00
Joshua Harlow 83b6aa7c97 Make the subrelease a new k/v entry that is handled
differently in the rpm spec file template instead
of being joined with the release.
2012-10-08 16:33:43 -07:00
Joshua Harlow 317252d74a Add the ability to have a 'private'
release number which can be to increment
cloud-init while still maintaining the
'major' cloud-init version number from bzr.
2012-10-08 16:23:09 -07:00
Joshua Harlow c1dc8ad5dd Ensure stderr newline. 2012-10-05 11:31:56 -07:00