Documenting the options for the Cfengine provisioner plugin for Vagrant
13 Nov 2013I've just upgraded to the latest version of Vagrant, which includes a plugin that lets you use Cfengine as a provisioner. It doesn't seem to be documented right now, so here's my first stab at laying out the options. Apologies for the rough notes.
ampolicyhub: From the source: "Policy hubs need to do additional things before they're ready to accept agents. Force that run now..." Runs "cf-agent -KI -f /var/cfengine/masterfiles/failsafe.cf [classes]", then "cf-agent -KI [classes] [extraagentargs]
extraagentargs: Just what it says.
classes: Define extra classes; appends "-D [class]" args to cf-agent. Multiple classes must be separated by spaces. (or is this a ruby array?)
debrepofile, deprepoline: Specify a deb repo line, to be placed in debrepofile, before running "apt-get install [packagename]". debrepo_file will be clobbered.
filespath: Copy localpath to /var/cfengine using install_files method defined in cfengine/provisioner.rb. Example: you do a git checkout of your repo and want it copied to the machine.
forcebootstrap: Not sure; checked by cfengine/cap/linuxcfengineneeds_bootstrap.rb, but does not appear to do anything. FIXME: See where this module is called from.
install: "force" option seems to be the only poss. value, but not clear what it does. Doesn't seem to be mentioned anywhere else but in provisioner.rb.
mode: Poss values are:
- "bootstrap", which runs cf-agent --bootstrap from policyserveraddress (if set) or from the instance itself (if not set)
- "default" -- I think just run once.
policyserveraddress: Just what it says.
repogpgkey_url: Just what it says.
runfile: Single run if set? Uploads to VM and runs "cf-agent -KI -f [file] [classes] [extraagent_args]".
uploadpath: Where to copy runfile. Default is /tmp/vagrant-cfengine-file.
yumrepofile: Default is /etc/yum.repos.d/cfengine-community.repo. Probably clobbered.
yumrepourl: Default is http://cfengine.com/pub/yum/.
package_name: For use by yum or apt. Default is cfengine-community.
Add a comment:
Name and email required; email is not displayed.
Related Posts
QRP weekend 08 Oct 2018
Open Source Cubesat Workshop 2018 03 Oct 2018
mpd crash? try removing files in /var/lib/mpd/ 11 Aug 2018