2010-11-01 15:19:54 +00:00
|
|
|
On the server:
|
|
|
|
|
2011-01-15 16:44:41 +00:00
|
|
|
conf/manifests/init
|
2011-01-15 13:15:05 +00:00
|
|
|
- the central entry point
|
|
|
|
- is a shell script
|
2011-01-15 16:44:41 +00:00
|
|
|
- defines mapping from providers to hosts
|
|
|
|
- will be called by cdist and the name
|
|
|
|
will be available for tracking in
|
|
|
|
cdist core functions
|
|
|
|
|
|
|
|
core/manifests/* (all other)
|
|
|
|
- same function as above
|
|
|
|
- but won't be called by cdist
|
|
|
|
- method to seperate configuration parts
|
|
|
|
|
2010-11-01 15:19:54 +00:00
|
|
|
|
2011-01-15 14:42:19 +00:00
|
|
|
conf/providers/<name>/
|
2011-01-15 14:38:05 +00:00
|
|
|
- provide standard types
|
2011-01-15 16:32:15 +00:00
|
|
|
- have required and optional arguments
|
|
|
|
- are independent of hosts
|
2011-01-15 14:38:05 +00:00
|
|
|
- may make use of other providers to realise a new type
|
|
|
|
- how to overwrite stuff?
|
|
|
|
- overwrite in own tree?
|
|
|
|
- needs knowledge of inherited provider
|
|
|
|
- similar to current situation in puppet,
|
|
|
|
but more like reusable defines
|
|
|
|
- or may implement some functionality on their own
|
|
|
|
|
2011-01-15 14:42:19 +00:00
|
|
|
lib/providers/<name>/
|
2011-01-15 16:44:41 +00:00
|
|
|
- same as above, but provided by the cdist distribution
|
2011-01-15 14:42:19 +00:00
|
|
|
- if name exists in both, conf/ has priority
|
2011-01-15 16:55:31 +00:00
|
|
|
|
|
|
|
Differences manifests vs. providers
|
|
|
|
|
|
|
|
|
|
|
|
manifests providers
|
|
|
|
|
|
|
|
main purpose map config to host provide functionality
|
|
|
|
can change config no (prevent conflicts) yes (allow inheritance)
|
|
|
|
specificness site specific (globally) reusable
|