summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2020-01-08lp-to-git-users: adding otubo (#135)Eduardo Otubo
Mapped from otubo
2020-01-07lp-to-git-users: adding rjschwei (#158)Robert Schweikert
Mapped from rjschwei
2020-01-07lp-to-git-users: adding andreaf74 (#157)andreaf74
Mapped from afranceschini
2020-01-07lp-to-git-users: adding madhuri-rai07 (#156)Madhuri Kumari
Mapped from madhuri-rai07
2020-01-07lp-to-git-users: adding ask0n (#150)Anton
Mapped from askon
2020-01-06lp-to-git-users: adding karibou (#140)Louis Bouchard
Mapped from louis
2019-12-27lp-to-git-users: adding pa-yourserveradmin-com (#145)Andrew Poltavchenko
Mapped from andreipoltavchenko
2019-12-20Add support for the amazon variant in cloud.cfg.tmpl (#119)Frederick Lefebvre
2019-12-20migrate-lp-user-to-github: ensure Launchpad repo exists (#136)Daniel Watkins
* migrate-lp-user-to-github: remove unused option * migrate-lp-user-to-github: ensure Launchpad repo exists * migrate-lp-user-to-github: typo fix
2019-12-19lp-to-git-users: adding goneri (#133)Gonéri Le Bouder
Mapped from goneri
2019-12-17tools: Detect python to use via env in migrate-lp-user-to-githubAdam Dobrawy
Reduce incosistency and allow use virtualenv for launchpad packages.
2019-12-17lp-to-git-users: adding ad-mAdam Dobrawy
Mapped from adobrawy
2019-12-11ds_identify: if /sys is not available use dmidecode (#42)Igor Galić
On non-Linux systems, `/sys` won't be available. In these cases, we can query `dmidecode(8)` directly. This PR implements a dmi_decode function to query the same fields ds-identify would otherwise read from /sys. This path is taken when /sys isn't present. In addition to adding dmidecode support, non-Linux systems also need to map in virtualization detection as systemd-detect-virt is not present; on FreeBSD, use sysctl kern.vm_guest and provide a mapping[1] between BSD values and those that match with systemd-detect-virt[2]. 1. https://github.com/freebsd/freebsd/blob/master/sys/kern/subr_param.c#L149-L157 2. https://www.freedesktop.org/software/systemd/man/systemd-detect-virt.html LP: #1852442
2019-12-04lp-to-git-users: adding bitfehlerConrad Hoffmann
Mapped from bitfehler
2019-12-04lp-to-git-users: adding AOhassanUbuntu
Mapped from ahosmanmsft
2019-12-04lp-to-git-users: adding fred-lefebvreFrederick Lefebvre
Mapped from fredlefebvre
2019-12-03fix invalid json in tools/.lp-to-git-user (#85)Chad Smith
2019-12-02lp-to-git-users: adding elafontaine (#74)Eric Lafontaine
Mapped from eric-lafontaine1
2019-12-02lp-to-git-users: adding xiaofengw-vmwareXiaofeng Wang
Mapped from xiaofengw
2019-11-26set_passwords: support for FreeBSD (#46)Igor Galić
Allow setting of user passwords on FreeBSD The www/chpasswd utility which we depended on for FreeBSD installations does *not* do the same thing as the equally named Linux utility. For FreeBSD, we now use the pw(8) utility (which can only process one user at a time) Additionally, we abstract expire passwd into a function, and override it in the FreeBSD distro class. Co-Authored-By: Chad Smith <chad.smith@canonical.com>
2019-11-25tools: migrate-lp-user-to-github removes repo_dir if created (#35)Chad Smith
To run: ./tools/migrate-lp-user-to-github LAUCHPAD_USERNAME GITHUB_USERNAME
2019-11-25lp-to-git-users: adding do3meliDominic Schlegel
Mapped from d-info-e
2019-11-20lp-to-git-users: adding PengpengSunPengpeng Sun
Mapped from pengpengs
2019-11-20lp-to-git-users: adding trstringerThomas Stringer
Mapped from trstringer
2019-11-15lp-to-git-users: adding hjensasHarald Jensås
Mapped from harald-jensas
2019-11-13lp-to-git-users: adding igalicIgor Galić
Mapped from i.galic
2019-11-12lp-to-git-users: adding chrisglassChris Glass
Mapped from tribaal
2019-11-12lp-to-git-users: adding larsksLars Kellogg-Stedman
Mapped from larsks
2019-11-10pycodestyle: remove unused local variableRyan Harper
2019-11-08lp-to-git-users: adding parideParide Legovini
Mapped from legovini
2019-11-07lp-to-git-users: adding powersjJoshua Powers
Mapped from powersj
2019-11-07lp-to-git-users: adding blackboxswChad Smith
Mapped from chad.smith
2019-11-07lp-to-git-users: adding raharperRyan Harper
Mapped from raharper
2019-11-07tools: migrate script needs to write tools/.lp-to-git-userChad Smith
Also fix commit message lint
2019-11-06tools: add migrate-lp-user-to-github script to link LP to githubChad Smith
To link a launchpad account name to your github account for licensing accountability each LP user should publish a merge proposal in launchpad with their LP account and a matching merge proposal in github using their github user. Cloud-init will track these usename maps in ./tools/.lp-to-git-user as JSON. Run ./tools/migrate-lp-user-to-github <LP_USERNAME> <GITHUB_USERNAME> to automatically create merge proposals in launchpad and your github account.
2019-10-11Add Support for e24cloud to Ec2 datasource.Scott Moser
e24cloud provides an EC2 compatible datasource. This just identifies their platform based on dmi 'system-vendor' having 'e24cloud'. https://www.e24cloud.com/en/ . Updated chassis typo in zstack unit test docstring. LP: #1696476
2019-10-04Add RbxCloud datasourceAdam Dobrawy
2019-10-01Add support for Arch Linux in render-cloudcfgConrad Hoffmann
 - Detect Arch Linux and set variant accordingly in `system_info()`  - Allow setting render-cloudcfg variant parameter to 'arch'  - Adjust some basic settings for Arch Linux in the cloud.cfg.tmpl The template might need some additional Arch-specific tweaks in the future, but at least for now the generated config works and contains the most relevant modules. Also: - Sort distro variant lists when adding Arch - Add debian to known variants in render-cloudcfg
2019-09-18Add datasource for ZStack platform.Shixin Ruan
Zstack platform provides a AWS Ec2 metadata service, and identifies their platform to the guest by setting the 'chassis asset tag' to a string that ends with '.zstack.io'. LP: #1841181
2019-09-11Brightbox: restrict detection to require full domain match .brightbox.comScott Moser
The detection for brightbox in both ds-identify and in identify_brightbox would incorrectly match the domain 'bobrightbox', which is not a brightbox platform. The fix here is to restrict matching to '*.brightbox.com' rather than '*brightbox.com' Also, while here remove a url to bug 1661693 which added the knowledge of brightbox.
2019-08-08New data source for the Exoscale.com cloud platformChris Glass
- dsidentify switches to the new Exoscale datasource on matching DMI name - New Exoscale datasource added Signed-off-by: Mathieu Corbin <mathieu.corbin@exoscale.ch>
2019-07-18cloud_tests: updates and fixesRyan Harper
- Update paramiko and cryptography module versions (2.4.2) to address issues with algo and deprecation warnings. - Modify ssh keypair generation to work with updated paramiko - tools/xkvm sync with newer version from curtin - Update NoCloudKvm instance.py to work with updated xkvm - pass -name to instance, useful for debugging on shared host - Add cache_mode platform config; default to cache=none,aio=native - Switch to yaml.safe_load() in platforms.py
2019-07-16Add a cdrom size checker for OVF ds to ds-identifyPengpeng Sun
With a large size ISO file attached to iso dev, ds-identify might grep it entirely if iso dev is ISO9660, it takes very long time to start OS. Resolve this by: - Adding a checker to read the ISO size (from sysfs). If the size of the ISO filesystem is > 10MiB then the ISO will be ignored (logged as oversized). - Move the ovf vmware guest customization checker to be ahead of cdrom ovf checker, so no need check the ISO size if vmware guest customization is enabled. LP: #1806701
2019-06-17tools/build-on-freebsd: update to python3Gonéri Le Bouder
- use python3 by default - ability to use any Python version through the PYTHON env-var - indent with 4 spaces - use 'set -eux' - remove trailing whitespace - drop the cheetah dep, Jinja2 is enough
2019-06-03Allow identification of OpenStack by Asset TagMark T. Voelker
When OpenStack is deployed on some hypervisors (such as VMware vSphere), cloud-init doesn't detect that it needs to probe the metadata service because the DMI product name field can't be set to a field that is recognized by cloud-init. However, the asset tag field can be set via flavor extra specs or image metadata. A similar approach is already used to identify Open Telekom Cloud. This patch allows cloud init to recognize "OpenStack Nova" or "OpenStack Compute" in the asset tag field as an indication that the instance being configured is running on an OpenStack platform. LP: #1669875
2019-05-30run-container: centos: comment out the repo mirrorlistParide Legovini
In this way only the 'baseurl' mirror is used, which is easier to allow through firewalls and proxies.
2019-05-28freebsd: fix the name of cloudcfg VARIANTGonéri Le Bouder
config/cloud.cfg.tmpl uses 'freebsd', not 'bsd' to identify FreeBSD.
2019-05-09freebsd: add chpasswd pkg in the imageGonéri Le Bouder
cc_set_passwords.py depends on chpasswd binary.
2019-04-23tools/read-version: handle errorsChad Miller
When the cloned branch was not the canonical upstream and tags were not available, tox would fail because tools/read-version would fail, and tragically never print the advice that is in tools/read-version about how to fix it. This changes tools/read-version to catch the exception that is elsewhere explicitly thrown and treat that too as an error it can handle.
2019-04-09Change DataSourceNoCloud to ignore file system label's case.Risto Oikarinen
NoCloud data source now accepts both 'cidata' and 'CIDATA' as filesystem labels. This is similar to DataSourceConfigDrive's support for 'config-2' and 'CONFIG-2'.