Editing
Dynamic CFEngine3
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= The structure = The bundlesequence in promises.cf is as follows: * "role" * "g" * "update" * "@(webhuis_common)" * "${g.class_domain}" * "${g.class_host}" * "${role.role}" == Step by step == In the first iteration almost everything fails, the bundles g, update and the bundlesequence in @(webhuis_common) will execute but will not fulfill all the promises. In the example "${g.class_domain}" is replaced by webhuis_nl, "${g.class_host}" is replaced by bur and "${role.role}" is replaced by backup_recovery. @(webhuis_common) is an slist that contains the bundle names "common_bundles", "os_layer", "hardening". == bundle common role == The bundle common role is the first bundle to be executed when available to the host. It defines the common variable role that has the name of the role to the system and it sets a class with the name of the role. The role name becomes available to cf-agent once the role is identified by either: * Fetching the role name from the host name, if host naming is done by convention * Fetching the role name from the host file. Here you find the [[bundle_common_role | bundle common role ]] details. == bundle common g == The bundle common g is contained in promises.cf and it defines common variables to the system. In the Webhuis Dynamic CFEngine3 solution two special slist variables are generated, in order to have dynamic inputs. The dynamic inputs consists of two branches * A standard inputs branch in /var/cfengine/inputs * A dynamic inputs specific branch /var/cfengine/inputs-webhuis Here you find the [[bundle_common_g | bundle common g ]] details. == bundle agent update == The bundle agent update carries out very important tasks specific to Dynamic CFEngine3.<br/> The agents use it to pull their specific configuration information from the CFEngine hub they are bootstrapped to. It pulls the standard masterfiles to inputs, but it also pulls domain, host and role specific information from the webhuis branch on the hub and places these bundles into a branch next to inputs /ver/cfengine/inputs-webhuis.<br/> Here you find the [[bundle_agent_update | bundle agent update ]] details. == bundle agent webhuis common == The bundle webhuis_common carries out common tasks like installing base packages and housekeeeping. Still it uses the variables of the dynamic bundles.<br/> Here you find the [[bundle_agent_webhuis_common | bundle agent webhuis common ]] details. == bundle agent webhuis_nl == The bundle webhuis_nl is an example domain bundle, the webhuis branch that is next to masterfiles could contain any number of domains. The domain bundle for the most part defines data that are common to the domain. In this example it defines network addresses, and servers for ldap, dns and ntp.<br/> Here you find the [[bundle_agent_webhuis_nl | bundle agent webhuis_nl ]] details. == bundle agent bur == The bundle bur defines a couple of variables that are specific to the host and adapt to the role that it has.<br/> Here you find the [[bundle_agent_bur | agent bur ]] details. == bundle agent backup_recovery == The bundle agent backup_recovery is an example of role hosts can have. It deals with the variables it gets passed and takes care of the installation of packages required to carry out the task that belongs to the role.<br/> Here you find the [[bundle_agent_backup_recovery | bundle agent backup_recovery ]] details. <hr> Return to: [[CFEngine]]
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information