Removes remaining code related to MIG worker components, including the
exchange elements in the scheduler and event submission. The worker
functionality is no longer supported.
Add suitable defaults to loader built-in configuration and add a
configuration parser for upcoming changes to remove compile time
configuration requirement.
modulepack is imported by programs which link in modules (agent, mig,
mig-console). It is configured via build tags with a suitable default,
so available_modules.go can be removed and the tools can now be built
and configured using go build tags.
This removes the requirement to edit available_modules.go when building
the agent, and instead adds the use of tags in go build to select
modules to include when compiling the agent.
Remove the built-in agent config from conf/, and clean up the
configuration that will live in the mig-agent package. This is in
preparation for making the agent completely externally configurable.
service-go is being imported as a vendor package. It was originally more
generic but over time has been tweaked in a few ways for its use within
MIG. Rather then manage it as a separate package, just include it.
When building the mig-agent or mig-loader targets and specifying AGTCONF
or LOADERCONF, configuration.go in the relevant directory is replaced by
the referenced configuration. If AGTCONF or LOADERCONF is not
overridden, the configuration is not replaced.
This can lead to inconsistent build results, as by building for example
the mig-agent target a second time with no AGTCONF, the replaced
configuration.go will be retained.
This changes this behavior, so configuration.go is always replaced with
the configuration files in conf/, unless the Makefile configuration
variable has been overridden.
This fixes lintian errors reported for deb packages, which cause the
package installation to fail in some cases where frontends to dpkg are
being used to install.
Changes primarily applied to loader/agent packages. deb-server package
was not modified as the target installs to /opt, which is reported as an
error by the linter. Since a change to the install path is required to
fix this just leave as is for that target for now.
Closes#197
Rather then have the installer create the launchd interval job, just do
it in the loader which simplifies the installation process and makes the
job installation operate similar to other mig components.
This doesn't install the agent or loader, this should probably be
handled in a different target as there are a number of ways the agent
could be deployed.