Wikimedia Labs/Puppet learning mode

Write application that will record actions as puppet configuration while setting up services manually.

package { " ": ensure => latest; }       package { " ": ensure => absent; }       apt::key { " ": apt_key => " " } apt::key { " ": apt_key => " ", ensure => absent } file { "": content => template(" "), owner => , group => , mode => ; }
 * Watch apt log, and make configuration for each action:
 * apt-get install:
 * apt-get (purge|remove):
 * apt-key add:
 * apt-key delete:
 * Watch for file edits via editor logs, and copy files and make configuration:
 * On edit/copy:
 * On chmod/chown/chgrp, make or modify configuration
 * When exiting learning mode, inspect the firewall rules and make configuration
 * Have a logger, to document your steps as you go. The messages should be output in MediaWiki format:
 * log heading "Configuring OpenStack"
 * log number-list --begin
 * log "Install packages"
 * log heading "..."
 * log number-list --end
 * Application should keep configuration in an intermediate state, and should output when asked.
 * Application should keep configuration in an intermediate state, and should output when asked.