Skip to content

Instantly share code, notes, and snippets.

@nmische
Created January 8, 2015 21:17
Show Gist options
  • Save nmische/01e0c496b4cf453f869d to your computer and use it in GitHub Desktop.
Save nmische/01e0c496b4cf453f869d to your computer and use it in GitHub Desktop.
Storage CFEngine Example
bundle agent netapp_nfs(server, source) {
storage:
"/data"
mount => netapp_mount($(server), $(source)),
classes => classes_generic("netapp_nfs");
}
body mount netapp_mount(server, source) {
mount_type => "nfs";
mount_server => "$(server)";
mount_source => "$(source)";
mount_options => { "nfsvers=3", "rw", "hard", "intr", "rsize=65536", "wsize=65536", "noatime" };
edit_fstab => "true";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment