Table of Contents
cfe_internal/update/cfe_internal_update_from_repository.cf
Table of Contents
common bodies
cfe_internal_update_from_repository_file_control
Prototype: cfe_internal_update_from_repository_file_control
Implementation:
bundle common cfe_internal_update_from_repository_file_control
{
vars:
"inputs" slist => { "$(this.promise_dirname)/lib.cf" };
}
agent bundles
cfe_internal_update_from_repository
Prototype: cfe_internal_update_from_repository
Implementation:
bundle agent cfe_internal_update_from_repository
{
methods:
am_policy_hub.cfengine_internal_masterfiles_update::
"Update staged masterfiles from VCS"
usebundle => cfe_internal_masterfiles_stage,
handle => "cfe_internal_update_from_repository_methods_masterfiles_fetch",
comment => "Grab the latest updates from upstream VCS repo before deploying masterfiles";
}
cfe_internal_masterfiles_stage
Prototype: cfe_internal_masterfiles_stage
Implementation:
bundle agent cfe_internal_masterfiles_stage
{
commands:
"$(update_def.dc_scripts)/masterfiles-stage.sh"
classes => u_kept_successful_command_results("bundle", "masterfiles_deploy"),
handle => "masterfiles_update_stage";
reports:
masterfiles_deploy_not_kept::
"Masterfiles deployment failed, for more info see '$(sys.workdir)/outputs/dc-scripts.log'";
(DEBUG|DEBUG_cfe_internal_masterfiles_stage).(masterfiles_deploy_kept|masterfiles_deploy_repaired)::
"DEBUG $(this.bundle): Masterfiles deployed successfully";
}
file bodies
control
Prototype: control
Implementation:
body file control
{
inputs => { @(cfe_internal_update_from_repository_file_control.inputs) };
}