summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cloud-init: fix capitalisation of SSH (#126)Daniel Watkins2019-12-1819-44/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | * cc_ssh: fix capitalisation of SSH * doc: fix capitalisation of SSH * cc_keys_to_console: fix capitalisation of SSH * ssh_util: fix capitalisation of SSH * DataSourceIBMCloud: fix capitalisation of SSH * DataSourceAzure: fix capitalisation of SSH * cs_utils: fix capitalisation of SSH * distros/__init__: fix capitalisation of SSH * cc_set_passwords: fix capitalisation of SSH * cc_ssh_import_id: fix capitalisation of SSH * cc_users_groups: fix capitalisation of SSH * cc_ssh_authkey_fingerprints: fix capitalisation of SSH
* doc: update cc_ssh clarify host and auth keysJoshua Powers2019-12-181-40/+49
| | | | | | * Add headers for Authorized and Host key sections, move the authorized section up as it is probably more relevant. LP: #1827021
* ci: emit names of tests run in Travis (#120)Daniel Watkins2019-12-182-3/+11
| | | | This makes it easier to debug differences in test behaviour between Travis and local developer environments.
* Release 19.419.4Chad Smith2019-12-182-1/+77
| | | | | Bump the version in cloudinit/version.py to be 19.4 and update ChangeLog. LP: #1856761
* rbxcloud: fix dsname in RbxCloudAdam Dobrawy2019-12-181-0/+1
| | | | LP: #1855196
* tests: Add tests for value of dsname in datasourcesAdam Dobrawy2019-12-181-1/+12
|
* apport: Add RbxCloud dsAdam Dobrawy2019-12-181-1/+3
|
* docs: Updating index of datasourcesAdam Dobrawy2019-12-181-2/+3
| | | | | - Added RbxCloud - Sorted alphabetically
* docs: Fix anchor of datasource_rbxAdam Dobrawy2019-12-181-1/+1
|
* settings: Add RbxCloudAdam Dobrawy2019-12-181-0/+1
|
* doc: specify _ over - in cloud config modulesJoshua Powers2019-12-171-0/+12
| | | | | | | Start a design decision area in HACKING to capture highlevel decisions. First example is to capture the use of _ over - in cloud config modules. LP: #1293254
* tools: Detect python to use via env in migrate-lp-user-to-githubAdam Dobrawy2019-12-171-1/+1
| | | Reduce incosistency and allow use virtualenv for launchpad packages.
* lp-to-git-users: adding ad-mAdam Dobrawy2019-12-171-0/+1
| | | Mapped from adobrawy
* Partially revert "fix unlocking method on FreeBSD" (#116)Daniel Watkins2019-12-171-1/+1
| | | | | | | | Specifically, revert the changes to logic which are incorrect. The testing introduced is for a separate part of the codebase, so is retained. This (partially) reverts commit e2840f1771158748780a768f6bfbb117cd7610c6.
* tests: mock uid when running as root (#113)Joshua Powers2019-12-161-7/+21
| | | | | | | | The query command checks the user's uid when running and takes two different code paths. As a normal user is returns fake data, that these tests were expecting. As a root user, the actual user and vendor data files are ready. LP: #1856096
* cloudinit/netinfo: remove unused getgateway (#111)Daniel Watkins2019-12-131-12/+0
|
* docs: clear up apt config sections (#107)Joshua Powers2019-12-132-5/+9
| | | | | | More clearly differentiate between the primary apt repo configuration and any 3rd party apt configuration. LP: #1832823
* doc: add kernel command line option to user data (#105)Joshua Powers2019-12-131-0/+8
| | | | LP: #1846524
* config/cloud.cfg.d: update READMEJoshua Powers2019-12-131-2/+2
| | | | | | | Update README to specify that only files with the '.cfg' extension are read in this folder. LP: #1855006
* azure: avoid re-running cloud-init when instance-id is byte-swapped (#84)AOhassan2019-12-124-6/+80
| | | | | | | | | | | | | Azure stores the instance ID with an incorrect byte ordering for the first three hyphen delimited parts. This results in invalid is_new_instance checks forcing Azure datasource to recrawl the metadata service. When persisting instance-id from the metadata service, swap the instance-id string byte order such that it is consistent with that returned by dmi information. Check whether the instance-id string is a byte-swapped match when determining correctly whether the Azure platform instance-id has actually changed.
* fix unlocking method on FreeBSDIgor Galić2019-12-122-1/+29
| | | | | | | | | on FreeBSD, `lock_passwd` is implemented as `pw usermod <user> -h -` This does not lock the account. It prompts for a password change on the console during cloud-init run. To lock an account, we have to execute: `pw lock <name>` LP: #1854594
* debian: add reference to the manpagesJoshua Powers2019-12-121-0/+3
|
* ds_identify: if /sys is not available use dmidecode (#42)Igor Galić2019-12-112-4/+77
| | | | | | | | | | | | 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
* docs: add cloud-id manpageJoshua Powers2019-12-111-0/+31
|
* docs: add cloud-init-per manpageJoshua Powers2019-12-111-0/+45
|
* docs: add cloud-init manpageJoshua Powers2019-12-111-0/+88
|
* docs: add additional details to per-instance/onceJoshua Powers2019-12-112-2/+6
|
* Merge pull request #96 from fred-lefebvre/masterJoshua Powers2019-12-112-1/+27
|\ | | | | Add an Amazon distro in the redhat OS family
| * Add an Amazon distro in the redhat OS familyFrederick Lefebvre2019-12-062-1/+27
| | | | | | | | | | | | | | From original work by: Andrew Jorgensen <ajorgens@amazon.com> Reviewed-by: Matt Nierzwicki <nierzwic@amazon.com> Reviewed-by: Ethan Faust <efaust@amazon.com>
* | Update doc-requirements.txtJoshua Powers2019-12-111-1/+1
| |
* | doc-requirements: add missing depJoshua Powers2019-12-111-1/+2
| | | | | | | | yaml was missing as we were no longer pointing at the main requirements.txt file
* | Merge pull request #95 from powersj/docs/bugsJoshua Powers2019-12-112-0/+109
|\ \ | | | | | | docs: Add document on how to report bugs
| * | one moreJoshua Powers2019-12-091-1/+2
| | |
| * | Address OddBloke reviewJoshua Powers2019-12-091-20/+32
| | |
| * | docs: Add document on how to report bugsJoshua Powers2019-12-062-0/+96
| | |
* | | dhcp: Support RedHat dhcp rfc3442 lease format for option 121 (#76)Eric Lafontaine2019-12-092-7/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RedHat dhcp client writes out rfc3442 classless-static-routes in a different format[1] than what is found in isc-dhcp clients. This patch adds support for the RedHat format. 1. Background details on the format https://bugzilla.redhat.com/show_bug.cgi?id=516325 https://github.com/vaijab/fedora-dhcp/blob/e83fb19c51765442d77fa60596bfdb2b3b9fbe2e/dhcp-rfc3442-classless-static-routes.patch#L252 https://github.com/heftig/NetworkManager/blob/f56c82d86122fc45304fc829b5f1e4766ed51589/src/dhcp-manager/nm-dhcp-client.c#L978 LP: #1850642
* | | network_state: handle empty v1 config (#45)Ryan Harper2019-12-062-1/+48
| |/ |/| | | | | | | | | | | | | | | Sending a valid but empty v1 network config resulted in a stacktrace during execution. Update the network_state parse path to specific check if the 'config' key is None (not present) versus being present but explicitly empty. Also add some network_state unittests. LP: #1852496
* | Merge pull request #94 from gaughen/patch-1Joshua Powers2019-12-061-2/+2
|\ \ | |/ |/| removed a couple of "the"s
| * removed a couple of "the"sgaughen2019-12-061-2/+2
|/
* docs: fix line length and remove highlightingJoshua Powers2019-12-061-4/+3
| | | | | | | | doc8 does not know about the ephasize-lines portion of code-block and throws an error. As this is the only place right now I am going to remove it untill we can find a better solution. rstcheck and restructuredtext-lint have issues with sphinx declaritives, so doc8 is still the best to use for now.
* docs: Add security.md to readthedocsJoshua Powers2019-12-066-5/+14
| | | | | | | | | | | | * docs: Add security.md to readthedocs This enables the ability to show the security policy on both GitHub and on the readthedocs site. To do this, enable the ability to import Markdown based files and translate them to rst. * Add doc-requirements.txt and update tox to use Also removes the extra, uncessary extension addition of .md
* Multiple file fix for AuthorizedKeysFile config (#60)Eduardo Otubo2019-12-052-29/+126
| | | | | | | | | | | | | Currently cloud-init does not know how to handle multiple file configuration on section AuthorizedKeysFile of ssh configuration. cloud-init will mess up the home user directory by creating bogus folders inside it. This patch provides a fix for this erroneous behavior. It gathers all keys from all the files listed on the section AuthorizedKeysFile of ssh configuration and merge all of them inside home user ~/.ssh/authorized_keys of the vm deployed. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
* lp-to-git-users: adding bitfehlerConrad Hoffmann2019-12-041-0/+1
| | | | Mapped from bitfehler
* Merge pull request #88 from OddBloke/travisJoshua Powers2019-12-041-1/+1
|\ | | | | Revert "travis: only run CI on pull requests"
| * Revert "travis: only run CI on pull requests"Daniel Watkins2019-12-041-1/+1
|/ | | | | | | Until we have a clear issue with CI throughput, let's make sure that we're testing master. This reverts commit 21967a2dedc781e05cf62c80fb730d0ed5973c8b.
* doc: update links on README.mdJoshua Powers2019-12-041-3/+4
|
* lp-to-git-users: adding AOhassanUbuntu2019-12-041-0/+1
| | | | Mapped from ahosmanmsft
* doc: Updates to wording of README.mdJoshua Powers2019-12-041-22/+17
|
* Add security.mdJoshua Powers2019-12-041-0/+64
|
* setup.py: Amazon Linux sets libexec to /usr/libexec (#52)Frederick Lefebvre2019-12-041-0/+13
| | | Parse /etc/system-release-cpe to detect Amazon Linux and set the proper value.