2010-09-16 00:20:35 +00:00
|
|
|
cdist (=opposite to ccollect)
|
|
|
|
aka puppet don right
|
|
|
|
|
|
|
|
- reuse of unix, no need for perl^Wruby
|
|
|
|
- shell
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
what is puppet?
|
|
|
|
|
|
|
|
A configuration deployment assistant,
|
|
|
|
a DSL that allows you define the objectives.
|
|
|
|
A webserver with fileserver capabilities.
|
|
|
|
A client based scheduled polling infrastructure.
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
What do I need from puppet?
|
|
|
|
|
|
|
|
- handling of package managers
|
|
|
|
- Modules: Nice to put stuff together
|
2010-09-16 00:41:25 +00:00
|
|
|
- and reuse
|
|
|
|
- [LIBRARY] All the helper types like
|
2010-09-16 00:20:35 +00:00
|
|
|
- file
|
|
|
|
- ssh_keys
|
2010-09-16 00:36:01 +00:00
|
|
|
- package
|
|
|
|
- service
|
2010-09-16 00:41:25 +00:00
|
|
|
- user
|
|
|
|
- [CONDITIONS] facter is cool
|
|
|
|
- [PORTABILITY] clients for every unix
|
2010-09-16 00:22:43 +00:00
|
|
|
- mostly ruby + facter in puppet
|
|
|
|
- the DSL
|
|
|
|
- with many bugs
|
2010-09-16 00:27:41 +00:00
|
|
|
- templates
|
2010-09-19 11:52:00 +00:00
|
|
|
- Client/Server approach is nice to have
|
|
|
|
- Clients only get the part of the documentation, that's
|
|
|
|
relevant to them
|
2010-09-16 00:20:35 +00:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
What do I miss from puppet?
|
|
|
|
|
|
|
|
- speed
|
|
|
|
- elegance
|
|
|
|
- clean design
|
|
|
|
- documentation
|
|
|
|
- the "no surprise" factor
|
|
|
|
- easy to use "data memory" (i.e. external ressources)
|
2010-09-16 00:27:41 +00:00
|
|
|
- easy integration into installation process
|
|
|
|
- copy identity to master
|
|
|
|
- multi master setups
|
|
|
|
- development configurations / tests
|
|
|
|
- editing of configuration files
|
|
|
|
- similar to cfengine
|
2010-09-16 00:41:25 +00:00
|
|
|
- replace bug squasher with bug avoidance
|
|
|
|
- qmail did not need one either
|
|
|
|
- push infrastructure
|
2010-09-16 00:20:35 +00:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
Simple stuff done by Unix[notm]
|
|
|
|
|
2010-09-16 00:36:01 +00:00
|
|
|
- DSL: Shell!
|
|
|
|
- gives if, else and EVEN elsif for free!
|
|
|
|
- and case
|
|
|
|
- and and and
|
|
|
|
- and there's no os (solaris doesn't count) without a usable /bin/sh
|
2010-09-16 00:41:25 +00:00
|
|
|
- cdist defines what you can use
|
|
|
|
- you _can_ use os specific stuff
|
|
|
|
- but it's ugly and you shoot into your own foot
|
|
|
|
- "manifests" (use the same name here?) will be run/sourced
|
|
|
|
- inheritance possible via sourcing
|
|
|
|
- cdist-lib always preloaded
|
2010-09-19 11:52:00 +00:00
|
|
|
- library == functions?
|
2010-09-16 00:20:35 +00:00
|
|
|
- version control via git
|
|
|
|
- file distribution via ssh
|
|
|
|
- authentication via ssh
|
|
|
|
- dumb clients, similar to manifest compile in puppet
|
|
|
|
- clients just execute commands
|
2010-09-16 00:22:43 +00:00
|
|
|
- dependencies via make?
|
2010-09-19 11:52:00 +00:00
|
|
|
- how to ensure sigletons / conflicting definitions?
|
|
|
|
file { "/a":
|
|
|
|
ensure => present,
|
|
|
|
file { "/a":
|
|
|
|
ensure => absent,
|
|
|
|
- matching on explored items, not only on host name?
|
|
|
|
- match function in host? [optional]
|
|
|
|
- file source:
|
|
|
|
- relative to specification
|
|
|
|
- or absolute
|
|
|
|
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
Architecture
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-16 00:41:25 +00:00
|
|
|
--------------------------------------------------------------------------------
|
2010-09-16 00:44:03 +00:00
|
|
|
Implementation
|
2010-09-16 00:41:25 +00:00
|
|
|
|
2010-09-16 00:44:03 +00:00
|
|
|
"cdist-server"
|
|
|
|
-> called by cron?
|
|
|
|
-> no need to reimplement scheduling
|
|
|
|
"cdist-explore" (facter replacement)
|
|
|
|
-> running on the client
|