Improve snmpd element.

The purpose of this patch is to improve the ability to monitor hosts,
correct an error in the current snmpd.conf, and align variable names
with their function.

Renames the Heat variable name prefix from "snmp" to "snmpd" in order to
align the Heat variable name with the element name.

Changes the Heat variable MIB to export_MIB to better represent what
the variable is used for.

Removes a hardcoded user name in snmpd.conf for the rouser to fix
an authentication issue for user names other then "authOnlyUser".

The OoOEnabled command will allow elements like Nagios to poll
hosts with this element via SNMP, and receive a consistent
response.

The CheckProcOpenFiles command is a simple Nagios style check of
open files per process that will be monitored so that an alert can
be sent if any one process exceeds its open file limit.

Change-Id: I92afd1f81dfc47c3bb0f4bb3a5aa72bee8870f48
Authored-by: Chris Krelle <nobodycam@gmail.com>
Merge "Improve snmpd element."
Replace cfn-hup cron job with os-collect-config

Os-collect-config is meant as a replacement for cfn-hup. The @reboot job
can go because os-collect-config will be run when the system is booted.
The periodic job is handled by os-collect-config's default behaviour of
running its command (by default, os-refresh-config) whenever any of its
metadata sources change.

Change-Id: Id768927ddfc4e7b4873fac347905e44458fd341a
Rename and fix os-collect-config config template

This template was in the wrong path, and missing some parameters.

Change-Id: If8214cdb3597bc65f92e0e7a4fb8038342c39ae4
Bootstrap os-collect-config during image build

Os-collect-config minimally needs to be told what command to run. The
first time it runs it will detect the Heat and/or ec2 metadata change,
and run os-refresh-config, which will write out its configuration again.
After the command returns os-collect-config is expected to re-execute
itself to grab this configuration.

Change-Id: I3294e251a7a3373adb1e994eef7ada99aab8282a
Install os-apply-config in a virtualenv.

Due to the older python distribute still shipping on Fedora, Ubuntu,
and other distros, os-apply-config can not be installed with pip
install -U.  This change installs os-apply-config in a virtualenv
instead, so that it's in an isolated environment.  os-apply-config and
os-config-applier are symlinked under /usr/local/bin so that all calls
continue to work.

Change-Id: I50d7147cf74a36bbe7751d545c353ac354bdd189
Merge "Install os-apply-config in a virtualenv."
Handle distribute -> setuptools migration.

Running just 'pip install -U distribute' can leave setuptools in a
half migrated state on Fedora/RHEL/CentOS.  Following it up with 'pip
install -U setuptools' corrects the problem and leaves you with
distribute 0.7.3 and the latest setuptools.

Change-Id: I3652e84fcfdc39065b6b86fc85b6b6602601d7e9
Merge "Handle distribute -> setuptools migration."
Package with pbr

Uses pbr-0.5.20 glob support to install elements.

This packaging will facilitate tripleo-image-elements being
consumed by CI tooling, enabling tests which require customized
images.

Change-Id: Id0ce2f9954f487ef2375e51cc8287999b82396f2
Purge serial console after grub is installed

If we do this during install, then configurations written during
finalise.d will overwrite our changes. We need this element to work
so we can address problems with serial console handling in raring
cloud images.

Change-Id: I0880a9609686215732a33c852b41cbc703a72521
Related-bug: #1208912
Merge "Purge serial console after grub is installed"
Merge "Rename and fix os-collect-config config template"
Merge "Bootstrap os-collect-config during image build"
Update cfn-init-data path to match current Heat

Since April 2013 /var/lib/cloud/data has been deprecated.
Os-collect-config does not search that path, so this means
seed-stack-config is completely broken now that os-collect-config is
used instead of cfn-hup.

Change-Id: Ifb040f3d5e6d8326e13c1a25adb39dc7e5dc1a6c
Merge "Update cfn-init-data path to match current Heat"
Fix cleanup-keystone-tokens.sh to actually work

The user was not passed, which produced an auth denied message every
time the script was run.

Change-Id: I3c30a9a0e42a56942224f76747025c1048551f10
Merge "Fix cleanup-keystone-tokens.sh to actually work"
Switch heat-cfntools element from git to pip install

This will also be required for the os-*-config elements
as a prerequisite for images being built as part of the
tempest heat gate tests.

Change-Id: Ic0aa42a08dd189336d5ec390e4e96a160357263f
Install libz to make os-collect-config buildable

Some other -dev libs end up pulling it in, so this was not detectable
when things depended on os-collect-config. However, in order to compile
lxml we need libz-dev.

Change-Id: I8dd3a93b71b87e40977f85755ac2a56d6740399a