Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickanderson/2644870 to your computer and use it in GitHub Desktop.
Save nickanderson/2644870 to your computer and use it in GitHub Desktop.
Conflicting bundle names
body common control {
bundlesequence => {
"main",
};
inputs => {
"cfengine_stdlib.cf",
};
}
bundle agent g {
vars:
"bundlename"
string => "agent g",
policy => "free";
}
bundle common g {
vars:
"bundlename"
string => "common g",
policy => "free";
}
bundle agent main {
#methods:
# "any" usebundle => g;
reports:
cfengine::
"$(g.bundlename)";
}
body common control {
bundlesequence => {
"main",
};
inputs => {
"cfengine_stdlib.cf",
};
}
bundle agent g {
vars:
"bundlename"
string => "agent g",
policy => "free";
}
bundle common g {
vars:
"bundlename"
string => "common g",
policy => "free";
}
bundle agent main {
methods:
"any" usebundle => g;
reports:
cfengine::
"$(g.bundlename)";
}
cf-agent -KIf ./test_conflicting_bundles.cf
R: agent g
cf-agent -KIf ./test_conflicting_bundles.cf
R: common g
body common control {
bundlesequence => {
"main",
"g",
};
inputs => {
"cfengine_stdlib.cf",
};
}
bundle agent g {
vars:
"bundlename" string => "agent g";
}
bundle common g {
vars:
"bundlename" string => "common g";
}
bundle agent main {
reports:
cfengine::
"$(g.bundlename)";
}
cf-agent -KIf ./test_conflicting_bundles.cf
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 15
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 15
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./cfengine_stdlib.cf at/before line 0
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./cfengine_stdlib.cf at/before line 0
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 15
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
R: common g
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./cfengine_stdlib.cf at/before line 0
body common control {
bundlesequence => {
"main",
"g",
};
inputs => {
"cfengine_stdlib.cf",
};
}
bundle common g {
vars:
"bundlename" string => "common g";
}
bundle agent g {
vars:
"bundlename" string => "agent g";
}
bundle agent main {
reports:
cfengine::
"$(g.bundlename)";
}
cf-agent -KIf ./test_conflicting_bundles.cf
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 16
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 16
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./cfengine_stdlib.cf at/before line 0
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./cfengine_stdlib.cf at/before line 0
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 16
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./test_conflicting_bundles.cf at/before line 21
R: agent g
!! Duplicate selection of value for variable "bundlename" in scope g
!! Rule from ./cfengine_stdlib.cf at/before line 0
body common control {
bundlesequence => {
"main",
"g",
};
inputs => {
"cfengine_stdlib.cf",
};
}
bundle common g {
vars:
"bundlename"
string => "common g",
policy => "free";
}
bundle agent g {
vars:
"bundlename"
string => "agent g",
policy => "free";
}
bundle agent main {
reports:
cfengine::
"$(g.bundlename)";
}
cf-agent -KIf ./test_conflicting_bundles.cf
R: agent g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment