propellor

propellor config for hosts.
git clone git://git.ricketyspace.net/propellor.git
Log | Files | Refs | LICENSE

commands_that_need_files.mdwn (614B)


      1 I want to run "virsh update-device guest-name snippet.xml", for the moment from Cmd.cmdProperty. snippet.xml should contain the actual configuration information.  I'm wondering what the best approach is.
      2 
      3 1. create a persistent copy of this file using File.hasContent or similar
      4 2. generate a temporary file when running the property.
      5 3. Use a file from the propellor repo
      6 
      7 (1) is slightly gross because the persistent copy is used only when running propellor.
      8 (2) I don't really know how to do in propellor; I guess it has to do with monads.
      9 (3) I don't know if this will work or is frowned upon for some reason.