Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/vyos/vyos-cloud-init
https://github.com/vyos/vyos-cloud-init
runparts (run a directory of scripts) seems to fit well in subp
module. The request to move it...
This was painful, but it finishes a TODO from cloudinit/subp.py.
It moves the following from ...
3c551f6ebc12f7729a2755c89b19b9000e27cc88 authored over 4 years ago30aa1197c4c4d35d4ccf77d5d8854a40aa21219f authored over 4 years ago
Build time feature flags are now defined in cloudinit/features.py.
Feature flags can be added t...
Improving the debugability of this code path by logging the thrown exception details for the non...
56f1939061392c848268ae063908bf2188f07373 authored over 4 years ago
This fixes issues with closing brackets not matching the opening
bracket's line and continuatio...
Remove extra spaces after a ','
5f7825e22241423322dbe628de1b00289cf34114 authored over 4 years ago
This puts an ignore on the imports not at the top of the file errors.
The reason for the ignore...
Replace the hardcoded list of devices with a more robust way of determining
the device which gr...
This removes the use of variables named ‘l’, ‘O’, or ‘I’. Generally
these are used in list comp...
1211ab449bdfa34b8883c7386772155e6a516ebb authored over 4 years ago
Co-authored-by: Daniel Watkins <[email protected]>
0919bd46bbd1b12158c369569ec1298bb000dd8a authored over 4 years ago
Instead of running pycodestyle and pyflakes seperately, use flake8 to
get the benefits of pyfla...
These config management things work on BSD, they also claim to work on all distros, so enabling ...
8377897bdd1a88d4dc3b6456618231085c55af42 authored over 4 years ago289e314f90acdad477c72551b9315b5f23321fb8 authored over 4 years ago
2314c0ccc33eb6f2f64208978c5892e434a92712 authored over 4 years ago
Hopefully this will save some ~pointless round trips on CLA PRs.
961239749106daead88da483e7319e9268c67cde authored over 4 years ago8c1b1bb9d3cd540f9f57d1110ab018bc4f267bfd authored over 4 years ago
And add an example of providing a list of assertions.
98a6d9a0da82a764943c9495d7f21f3acc5ccd05 authored over 4 years ago
This allows tests to be configured to permit some commands to be run via
util.subp, while still...
fae90f14f0668a673e02bc7313bc84828e7cae71 authored over 4 years ago
Specifically, ensure that given values are either strings, or arrays of strings.
8bcf1c069d8ddf28898342e541254bdeb54445df authored over 4 years ago
and slower.
and since we're making it slower, let's cache it, in case boottime gets
called mor...
We are longer using lxd.readthedocs.io
Signed-off-by: Thomas Parrott thomas.parrott@canonical...
e7a8da75fa7a0063ac9eba11a0ab120c20b3be07 authored almost 5 years agof23a4c4262ac11cd75c99fcbfbfe453f4e115f18 authored almost 5 years ago
We recently discovered that pylint is failing to report some errors when
invoked across our ent...
We live in the future now.
4261ae538563d262bc76b8c55f7cc0c8abb14b00 authored almost 5 years agob73b319094b133bf47038ab41f29cc9507bdc5bd authored almost 5 years ago
This ensures that Travis will not kill our tests if fetching images is
taking a long time.
I...
089408751cdbd7950f58616f9d85ff9dfd9aa3c7 authored almost 5 years ago
Create a schema object for the `apt_configure` module and
validate this schema in the `handle` ...
And raise TypeError when subp called with no args, which more accurately mirrors normal behaviou...
c8f20b31cd57443b1bef17579dfceca432420c94 authored almost 5 years agod10ce3ecfe89d7ec2a69bdbd109b100090698ded authored almost 5 years ago
73aed0431c20759bd3dd4db774ea6ee349575e16 authored almost 5 years ago
ee64b6250b7457d47c336b7e4e971e8b5e5169f3 authored almost 5 years ago
This (a) gives people an easy way of getting a commit into the codebase,
and (b) saves us from ...
Specifically:
* include warning against general use of mock assert methods (and suggestions o...
73a5b3280ebb2823cb2751e37c5e2687aeb84088 authored almost 5 years ago
As we only look at these logs when there's an error, and lintian
failures don't cause the packa...
Also update all examples to include the cloud-config header if they don't have it
LP: #1876414
34b868020254106af8c79ffb85e04e294b19e44f authored almost 5 years agoMove from 127.0.0.1 to 127.0.1.1 for localhost IP addr for opensuse and sles
b24b376fabd54e4dc96ffc1b90a984addf42fc4c authored almost 5 years agoMapped from chcheng
1c2d9881341f6335cc47a8a8d63df8759d8c2073 authored almost 5 years ago
Add a unit test to validate if the examples provided in the config
modules are conforming to th...
Amazon Linux 2 is configured with a log format different to the one
shipped by upstream, which ...
Implement the upgrade support:
- FreeBSD: using `pkg upgrade`
- NetBSD: with `pkgin`
59dd290ee7986f76247bfd26d18cbcc586777812 authored almost 5 years ago
fededca4bdc30935fa76d75ba07253bb388ba6f3 authored almost 5 years ago
Since upstream cloud-init has dropped python2 support,
adapt remaining package build scripts an...
We want to set route-metrics such that NICs are configured with the priority that they are given...
70dbccbbb27f7cc3f2decd692d41403f0d745c62 authored almost 5 years ago
cloud-images.ubuntu.com can sometimes be under heavy load; caching the
images helps avoid that ...
7dceb9882590fb738ac0ff3429908cc6c945485a authored almost 5 years ago
0a4971b2b2d073bc96786baf8a050b0c411e1c39 authored almost 5 years ago
Users of Centos who want to add yum repos, like they do on Fedora
or RHEL get this unfortunate ...
Bump the version in cloudinit/version.py to 20.2 and
update ChangeLog.
LP: #1875951
03aed95829ce52214a6a888d6bd1a5d841e85464 authored almost 5 years ago
`make-mime.py` is a more recent version of the inline script that this
link is replacing.
Clarify in documentation that write_files will create parent folders
for paths that do not alre...
I don't believe this has ever been supported, looking at the git
history, but it certainly isn'...
The line in question is in the code path handling older versions of
jsonschema. In that contex...
Add schema definition to cc_write_files.py
Cloud-config containing write_files config directi...
61a19249c2010743a467a51f8f0750712c2d92e0 authored almost 5 years agoRefactoring of the `find_devs_with_*bsd()` methods:
- centralize everything in `util.py`
- a...
These two lines were a requirement for RHEL6, and they have been added 7
years ago:
- https:...
e4499963d663b52ca4b66423c0445909d710cfbd authored almost 5 years agoThese libraries provide backports of Python 3's stdlib components to Python 2. As we only suppor...
38a7e6e9756fdab31264c0d6e93d20432ed111ac authored almost 5 years ago
As written, it's possible that the first transformation for a mirror
hostname could be passed N...
logging.NullHandler has been present since Python 3.1, we don't need to
handle its absence.
The integration test doesn't work against the ubuntu/* branches because
it uses the tooling des...
* HACKING.rst: add list of available pytest fixtures
* HACKING.rst: capture common mock naming ...
This mirrors the behaviour of CiTestCase.allowed_subp, by causing all
calls to util.subp to rai...
This proposal has been aligned in a human readable.
There are no changes to this except f...
1b049e6e51a9ac1ca02bf33629ede5c47c5b1941 authored almost 5 years agoceb3ae77486411664fd032ba7535d5dd3f02684b authored almost 5 years ago
We currently have a test system where get_interfaces_by_mac raises an
exception, which is causi...
Since not all data-sources filter hostname in Meta-Data, we need to be sure that the value recei...
c9408ceb137c9585d5707dd37e6a85d89a5c24c9 authored almost 5 years ago0c5c736727d0f8e363678fe970d70bb889e3893c authored almost 5 years ago
LP: #1872836
9d7b35ce23aaf8741dd49b16e359c96591be3c76 authored almost 5 years ago
Swap file size variable was being used before checked if it's set to str
"auto". If set to "aut...
And document that we can't yield in pytest.fixture functions due to the
age of xenial's pytest.
e1a060487eeafc9c5944557f83c5a05e03b6852f authored almost 5 years ago
Add OpenBSD in the list of supported Operating System.
e30599c103ff926e8cbf38f36d1ba071918fc386 authored almost 5 years agoLP: #1870421
09fea85fd1f6fd944f4cdd8b97e283090178ae88 authored almost 5 years agoThe cc_mounts module does not support NFS mounts in the form of hostname:/ or hostname:/path.
...
723e2bc1ad14687a8d6846b9ca73620e4e4090b1 authored almost 5 years ago
Decouple unlocking passwords when also setting passwords. On OpenBSD skip unlocking
password as...
0dae0996a8005a1cf399bd6d370b538282ebdb20 authored almost 5 years ago
functools.lru_cache has been present since Python 3.2, so we no longer need to handle its absenc...
95ef35d219daa2a207ed7bd30e961101935770e4 authored almost 5 years ago
* Split the "existing contributors" information out to a separate
section
* Update the "Do t...
* distros/tests/test_init: drop needless brackets/indentation
* distros: drop leading/trailin...
1bbc4908ff7a2be19483811b3b6fee6ebc916235 authored almost 5 years agof51e3d0e23b2873f077d1b7b3ac6874b94b1a374 authored almost 5 years ago
This shim was required to support Python 2.6, so we no longer need it.
b698b349c827f30fa60de55e2469a21ae4342669 authored almost 5 years agoThis modifies _get_package_mirror_info to convert the hostnames of generated mirror URLs to thei...
c478d0bff412c67280dfe8f08568de733f9425a1 authored almost 5 years agoed350acb7a941ef16b2f9e19b223b58901e6b431 authored almost 5 years ago
On some platforms (old heat on OpenTelekomCloud), the user-data mime part
is mislabeled x-shell...
On Focal and later, Ubuntu will prioritize netplan renderer over eni,
even if ifupdown and netp...
This also simplifies the implementation to rely on the stdlib, instead
of our own NIH checking.
ee0377924aa6bcd072dc5836dbf8ac51110bd87d authored almost 5 years ago
e76057f46a0d09d6e5e8ac52b49759d23b18ff36 authored almost 5 years ago
This will be required for the mirror URL sanitisation work,
2566fdbee06cf5708cfcd988a65fb81cdf794dbf authored almost 5 years ago(And sort some imports where I was changing them.)
36a597de6f130a17360856697759b08f3c835df1 authored almost 5 years ago
We're seeing CI failures currently because a LXD image takes more than
10 minutes to download i...
1905ff47e9e688d9a48d6132fd45b341f2d66fe4 authored almost 5 years ago
We no longer need to support versions which don't have
subprocess.check_output, so we can rely ...
add SAP Converged Cloud as cloud provider
7f9f33dbb08bacaa49244e857847400ad8a67ad4 authored almost 5 years ago
- tested on OpenBSD 6.6
- tested on OpenStack without config drive, and NoCloud with ISO config...
4c88d9341e75a1a14ba2e8bd0ab309e265229f7e authored almost 5 years ago
1fefeef92fd1881b21e124b83f2adefd3e014087 authored almost 5 years ago