summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-16Use wget to fetch CloudStack passwords.Daniel Watkins
Different versions of the CloudStack password server respond differently; wget handles these nicely for us, so it's easier to just use wget. LP: #1440263, #1464253
2015-06-10Add ChangeLog entry for last merge.Daniel Watkins
2015-06-10Add a cloud-init plugin for helping users register and subscribe their ↵Daniel Watkins
RHEL-based systems. This patch adds a cloud-init plugin for helping users register and subscribe their RHEL based systems. As inputs, it can take: - user and password OR activation key and org | requires on of the two pair - auto-attach: True or False | optional - service-level: <string> | optional - add-pool [list, of, pool, ids] | optional - enable-repos [list, of, yum, repos, to, enable] | optional - disable-repos [list, of, yum, repos, to, disable] | optional You can also pass the following to influence your registration via rhsm.conf: - rhsm-baseurl | optional - server-hostname | optional
2015-06-10check for systemd using sd_booted() semanticsScott Moser
The existing code determines if systemd is in use by looking at the distribution name and version. This is prone to error because: - RHEL derivatives other than CentOS (e.g., Scientific Linux) will fail this test - Distributions that are not derived from RHEL also use systemd This patch makes cloud-init use the same logic that is used in systemd's sd_booted() method http://www.freedesktop.org/software/systemd/man/sd_booted.html LP: #1461201
2015-06-05packages/debian/control.in: mention recommends of gdiskScott Moser
some of the partitioning code in 'disk_setup' module needs sgdisk. In the future that could move to using sfdisk also but for now we do need sgdisk for this.
2015-06-03add tests for systemd detectionLars Kellogg-Stedman
This adds the following tests in test_distros.test_generic: - test_systemd_in_use Test the situation in which /run/systemd/system exists. - test_systemd_not_in_use Test the situation in which /run/systemd/system does not exists. - test_systemd_symlink This tests the situation in which /run/systemd/system exists but is a *symlink* to a directory, which according to sd_booted() should return false.
2015-06-03transform paths in functions taking more than a single argumentLars Kellogg-Stedman
Patch FilesystemMockingTestcase.patchOS to support methods taking more than a single path argument. This is required in order to properly mock `os.symlink`, which takes two path arguments.
2015-06-02check for systemd using sd_booted() semanticsLars Kellogg-Stedman
The existing cloud-init code determines if systemd is in use by looking at the distribution name and version. This is prone to error because: - RHEL derivatives other than CentOS (e.g., Scientific Linux) will fail this test, and - Distributions that are not derived from RHEL also use systemd This patch makes cloud-init use the same logic that is used in systemd's sd_booted() method (http://www.freedesktop.org/software/systemd/man/sd_booted.html) LP: #1461201
2015-06-01Doc: include information on vendor-data in OpenStackScott Moser
2015-05-29Corrected spelling error on variable nameBrent Baude
2015-05-28Tightening up an error message and isinstance usage based on feedback from DanBrent Baude
2015-05-27Updated files with upstream review comments thanks to Dan and ScottBrent Baude
2015-05-22Azure: Redact on-disk user password in /var/lib/ovf-env.xmlScott Moser
The fabric provides the user password in plain text via the CDROM, and cloud-init has previously wrote the ovf-env.xml in /var/lib/waagent with the password in plain text. This change redacts the password. LP: #1311827
2015-05-22AZURE: Redact on-disk user password in /var/lib/ovf-env.xmlBen Howard
The fabric provides the user password in plain text via the CDROM, and cloud-init has previously wrote the ovf-env.xml in /var/lib/waagent with the password in plain text. This change redacts the password.
2015-05-21This commit consists of three things based on feedback from smosher:Brent Baude
cc_rh_subscription: Use of self.log.info limited, uses the util.subp for subprocesses, removed full path for subscription-manager cloud-config-rh_subscription.txt: A heavily commented example file on how to use rh_subscription and its main keys test_rh_subscription.py: a set of unittests for rh_subscription
2015-05-19EC2: be aware of eu-central-1 availability zoneScott Moser
eu-central-1 means that 'central' is a direction to update the regular expression to understand. LP: #1456684
2015-05-19packages/brpm: fix for oauth library nameScott Moser
brpm was broken when change from oauth to oauthlib.
2015-05-15temporarily disasble test if no bin/cloud-initScott Moser
the tests of bin/cloud-init would fail in a package build environment. so, temporariliy skip them in that environment.
2015-05-15pep8 fixesScott Moser
2015-05-15Azure: remove dependency on walinux-agentScott Moser
This takes away our dependency on walinux-agent, by providing a builtin path for doing cloud-init had delegated to it. Currently the default is to still use the old path, but adding this code in will allow us to move to the new code path with more confidence.
2015-05-15detect that CentOS 7 uses systemd, write previous-hostname in that case.Scott Moser
Also, on RHEL-type systems using systemd, /var/lib/cloud/data/previous-hostname would never get created (because rather then write to files, it was executing hostnamectl)
2015-05-14Adding an example file for rh_subscription in doc/examplesBrent Baude
2015-05-14read_seeded: fix reed_seeded after regressionScott Moser
read_seeded was assuming a Response object back from load_tfile_or_url but load_tfile_or_url was returning string. since the only other user of this was a test, move load_tfile_or_url to a test, and just do the right thing in read_seeded. LP: #1455233
2015-05-14This patch adds a cloud-init plugin for helping users registerBrent Baude
and subscribe their RHEL based systems. As inputs, it can take: - user and password OR activation key and org | requires on of the two pair - auto-attach: True or False | optional - service-level: <string> | optional - add-pool [list, of, pool, ids] | optional - enable-repos [list, of, yum, repos, to, enable] | optional - disable-repos [list, of, yum, repos, to, disable] | optional You can also pass the following to influence your registration via rhsm.conf: - rhsm-baseurl | optional - server-hostname | optional
2015-05-08Python 2.6 fixes.Daniel Watkins
2015-05-08Fix retrying.Daniel Watkins
2015-05-08Default to old code path.Daniel Watkins
2015-05-08Reintroduce original code path.Daniel Watkins
2015-05-08Move our walinuxagent implementation to a single function call.Daniel Watkins
2015-05-08Stop using Python 3 only tempfile.TemporaryDirectory (but lose free cleanup).Daniel Watkins
2015-05-08Split WALinuxAgentShim code out to separate file.Daniel Watkins
2015-05-08Remove unused import.Daniel Watkins
2015-05-08Make find_endpoint a staticmethod to clean up top-level namespace.Daniel Watkins
2015-05-08Cache certificate response to save on communication with fabric.Daniel Watkins
2015-05-08Add logging.Daniel Watkins
2015-05-08Return a dict of data from WALinuxAgentShim, rather than accessing attributes.Daniel Watkins
2015-05-07Implement basic replacement for walinuxagent in Azure data source.Daniel Watkins
2015-05-01Fix exception when running with no arguments on Python 3Scott Moser
LP: #1424277
2015-05-01Update is_disk_used for changed enumerate_disk output.Scott Moser
LP: #1311463
2015-05-01fix 'Make pyflakes'Scott Moser
2015-05-01Azure: if user has set hostname, do not overwrite itScott Moser
Due to the way the azure boot works, where we identify the hostname to the fabric, we were inadvertently overwriting hostname that the user had set. LP: #1375252
2015-04-21sysvinit: make cloud-init-local run before networking is brought upScott Moser
While booting a VM from a snapshot image, network service use to find the residual network config scripts and use to configure the old IPs. cloud-init-local use to run later and populate the config scripts with latest information, which does not override the previous configuration. To solve this, we are ensuring that cloud-init-local runs before network. LP: #1275098
2015-04-21Fix +tests for GCE datasource not handling per-instance SSH keysJoshua Harlow
2015-04-21Add start of/improved CloudStack documentationJoshua Harlow
2015-04-21Update changelog with previously merged branchesJoshua Harlow
2015-04-21Don't overwrite the hostname if the user has changed it after we set itJoshua Harlow
2015-04-21Add functionality to fixate the uid of a newly added user.Joshua Harlow
2015-04-20GCE instance-level SSH keys override project-level keys. (LP: #1403617)Daniel Watkins
2015-04-20Support multiple metadata paths for metadata keys in GCE data source.Daniel Watkins
2015-04-20Rename found variable in GCE data source.Daniel Watkins