~ajorgens/cloud-init:amazon-linux

Last commit made on 2017-06-13
Get this branch:
git clone -b amazon-linux https://git.launchpad.net/~ajorgens/cloud-init
Only Andrew Jorgensen can upload to this branch. If you are Andrew Jorgensen please log in for upload directions.

Branch merges

Branch information

Name:
amazon-linux
Repository:
lp:~ajorgens/cloud-init

Recent commits

2e813d2... by Andrew Jorgensen

repo_upgrade handling (security levels)

7a634e5... by Andrew Jorgensen

Don't cache security credentials on disk

On EC2, instance metadata can include credentials that remain valid for as much
as 6 hours. Reading these and allowing them to be pickled represents a
potential vulnerability if a snapshot of the disk is taken and shared as part
of an AMI.

This skips security-credentials when walking the meta-data tree.

Reported-by: Kyle Barnes <email address hidden>
Reviewed-by: Iliana Weller <email address hidden>
Reviewed-by: Ben Cressey <email address hidden>

9687d60... by Iliana Weller <email address hidden>

Remove call to "yum makecache" in distros.rhel

update_package_sources is designed to be the "apt-get update" step as
opposed to the "apt-get upgrade" on dpkg-based distributions. yum
performs an automatic metadata update when no metadata is available or
when cached metadata is sufficiently old.

"yum makecache" additionally downloads _all_ available metadata,
including the filelists database, while yum's update / upgrade /
distro-sync / etc. commands download only the required metadata for that
transaction.

Reviewed-by: Ben Cressey <email address hidden>
Reviewed-by: Sean Kelly <email address hidden>

803db36... by Sean Kelly <email address hidden>

Produce canonical semaphore names with cloud-init-per

Reviewed-by: Tom Kirchner <email address hidden>
Reviewed-by: Cyle Riggs <email address hidden>

c6367f6... by Andrew Jorgensen

resolv_conf: Enable resolv-conf module for Amazon

Also fix a minor bug where an empty config entry causes a crash.

Note that this is arguably incomplete since the module does not
set PEERDNS=no, so it's possible for DHCP to overwrite your file.
The module issues a warning about this.

It may make more sense to have a distro-specific function for this
and to take advantage of the ifup/down scripts support for overriding
resolv.conf contents.

Reviewed-by: Tom Kirchner <email address hidden>
Reviewed-by: Iliana Weller <email address hidden>
[<email address hidden>: rebase onto 0.7.9]

28631a5... by Andrew Jorgensen

lock-passwd SELinux compatibility

The passwd utility doesn't correctly maintain the context of /etc/shadow, but
the usermod utility does. This is an incomplete fix for the issue as there are
other uses of passwd, but this is the one that is in use by default.

Reviewed-by: Tom Kirchner <email address hidden>
Reviewed-by: Jason Green <email address hidden>
Reviewed-by: Rodrigo Novo <email address hidden>
[<email address hidden>: rebase onto 0.7.9]

c871625... by Andrew Jorgensen

Repair mounts module

Fixed typo in log message.
Skip also if the device is not present (instead of only if the target isn't specified).
Resolve intervening symlinks in device nodes.

Reviewed-by: Matt Nierzwicki <email address hidden>
Reviewed-by: Ethan Faust <email address hidden>
[<email address hidden>: Resolve intervening symlinks]
Reviewed-by: Ben Cressey <email address hidden>
Reviewed-by: Frank Becker <email address hidden>
[<email address hidden>: rebase onto 0.7.9]

9cad5ee... by Andrew Jorgensen

write_file(s): Print file modes as octal, not decimal

Unix file modes are usually represented as octal, but they were being
interpreted as decimal, for example 0o644 would be printed as '420'.

Reviewed-by: Tom Kirchner <email address hidden>

e854635... by Iliana Weller <email address hidden>

config: Create write-metadata module

This module takes data from the various metadata services and writes
them to files.

Reviewed-by: Andrew Jorgensen <email address hidden>
Reviewed-by: Ethan Faust <email address hidden>
Reviewed-by: Matt Nierzwicki <email address hidden>
[<email address hidden>: suppress permissions warning from write-files]
[<email address hidden>: rebase onto 0.7.6]
[<email address hidden>: rebase onto 0.7.9]

3b475b1... by Andrew Jorgensen

Add chkconfig directives; move cloud-final near end

chkconfig does not support the $all system facility that insserv uses to push
this to the end of the boot process, so we need chkconfig hints as well.

Also, there's a bug in ntsysv that goes undetected because almost no init
scripts lack these directive comments. If you run ntsysv and then exit (even
without doing anything!) init scripts that lack these directives can be reset
to -1, which isn't even a real rc priority.

Reviewed-by: James Anderson <email address hidden>
Reviewed-by: Tom Kirchner <email address hidden>
[<email address hidden>: Add chkconfig directives to work around bug in ntsysv]
Reviewed-by: Jason Green <email address hidden>
Reviewed-by: Tom Kirchner <email address hidden>
[<email address hidden>: rebase onto 0.7.9]