-
-
Save anonymous/bcb74d0c4aa8b6ea81b9 to your computer and use it in GitHub Desktop.
This file contains 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
############################################################################### | |
# | |
# promises.cf - Basic Policy for Community | |
# | |
############################################################################### | |
body common control | |
{ | |
bundlesequence => { | |
# Common bundles first for best practice | |
"def", | |
# Design Center | |
"cfsketch_run", | |
# Agent bundles from here | |
"main", | |
"ftiff:root", | |
}; | |
inputs => { | |
# Global common bundles | |
"def.cf", | |
# Control body for all agents | |
"controls/cf_agent.cf", | |
"controls/cf_execd.cf", | |
"controls/cf_monitord.cf", | |
"controls/cf_runagent.cf", | |
"controls/cf_serverd.cf", | |
# COPBL/Custom libraries. Eventually this should use wildcards. | |
@(cfengine_stdlib.inputs), | |
# Design Center | |
# MARKER FOR CF-SKETCH INPUT INSERTION | |
"cf-sketch-runfile.cf", | |
# User services from here | |
"services/init_msg.cf", | |
"ftiff/ftiff-root.cf", | |
"ftiff/ftiff-backup.cf", | |
"ftiff/ftiff-common.cf", | |
"ftiff/ftiff-manage_users.cf", | |
"ftiff/ftiff-motd.cf", | |
"ftiff/ftiff-osx_pmsettings.cf", | |
"ftiff/ftiff-powerchute.cf", | |
"ftiff/ftiff-resolvconf.cf", | |
"ftiff/ftiff-sshd.cf", | |
"ftiff/ftiff-sysctl.cf", | |
}; | |
version => "Community Promises.cf 3.4.0"; | |
} | |
bundle common cfengine_stdlib | |
{ | |
vars: | |
cfengine_3_4:: | |
"inputs" slist => { "libraries/cfengine_stdlib.cf" }; | |
cfengine_3_5:: | |
"inputs" slist => { | |
"lib/3.5/paths.cf", | |
"lib/3.5/common.cf", | |
"lib/3.5/commands.cf", | |
"lib/3.5/packages.cf", | |
"lib/3.5/files.cf", | |
"lib/3.5/services.cf", | |
"lib/3.5/processes.cf", | |
"lib/3.5/storage.cf", | |
"lib/3.5/databases.cf", | |
"lib/3.5/monitor.cf", | |
"lib/3.5/guest_environments.cf", | |
"lib/3.5/bundles.cf", | |
}; | |
!(cfengine_3_4||cfengine_3_5):: | |
"inputs" slist => { | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/paths.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/common.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/commands.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/packages.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/files.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/services.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/processes.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/storage.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/databases.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/monitor.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/guest_environments.cf", | |
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/bundles.cf", | |
}; | |
} | |
############################################################################### | |
bundle agent main | |
{ | |
methods: | |
any:: | |
"INIT MSG" usebundle => init_msg, | |
comment => "Just a pre-defined policy bundled with the package", | |
handle => "main_methods_any_init_msg"; | |
} | |
############################################################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment