Created
May 9, 2012 14:25
-
-
Save nickanderson/2644870 to your computer and use it in GitHub Desktop.
Conflicting bundle names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cf-agent -KIf ./test_conflicting_bundles.cf | |
R: agent g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cf-agent -KIf ./test_conflicting_bundles.cf | |
R: common g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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