Skip to content
  • Stuff
  • Travel
  • Beverages
  • Support Antipaucity
  • Projects
  • About

antipaucity

fighting the lack of good ideas

a sample cfengine promise bundle – delete “large” files

Posted on 12 June 201411 June 2014 By antipaucity No Comments on a sample cfengine promise bundle – delete “large” files
body common control
{
        bundlesequence => { "file_remover" };
}

bundle agent file_remover
{
        vars:
                "bigfile" int => "1g";
        files:
                "/home"
                delete => tidy,
                file_select => files_too_big,
                depth_search => recurse("inf");
        reports:
                "Deleted files over $(bigfile) in size from /home";
}

body depth_search recurse(d)
{
        depth => "$(d)";
}

body delete tidy
{
        dirlinks => "delete";
        rmdirs => "false";
}

body file_select files_too_big
{
        search_size => irange("$(bigfile)","inf");
        file_result => "size";
}
technical Tags:automation, bundle, cfengine, file-management, how-to, promise, system-administration

Post navigation

Previous Post: wait, what?
Next Post: create compelling spectacles – law 37 – #48laws by robert greene

More Related Articles

i’m surprised facebook doesn’t offer something akin to aws, gcp, azure, etc ideas
using social media at/for/with work interview
dave winer is wrong commentary
tiny code code
binding your mounts technical
debugging authorized_keys and ssh education
June 2014
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930  
« May   Jul »
RSS Error: WP HTTP Error: cURL error 60: SSL: no alternative certificate subject name matches target hostname 'paragraph.cf'

Books

  • Debugging and Supporting Software Systems
  • Storage Series

External

  • Backblaze
  • Cirkul
  • Fundrise
  • Great Big Purple Sign
  • Password Generator
  • PayPal
  • Tech News Channel on Telegram
  • Vultr
  • Wish List

Other Blogs

  • Abiding in Hesed
  • Chris Agocs
  • Eric Hydrick
  • Jay Loden
  • Paragraph
  • skh:tec
  • Tech News Channel on Telegram
  • Veritas Equitas

Profiles

  • LinkedIn
  • Server Fault
  • Stack Overflow
  • Super User
  • Telegram
  • Twitter

Resume

  • LinkedIn
  • Resume (PDF)

Services

  • Datente
  • IP check
  • Password Generator
  • Tech News Channel on Telegram

Support

  • Backblaze
  • Built Bar
  • Cirkul
  • Donations
  • Fundrise
  • PayPal
  • Robinhood
  • Vultr
  • Wish List

35-questions 48laws adoption automation blog blogging books business career centos cloud community documentation email encryption facebook google history how-to hpsa ifttt linux money networking politics prediction proxy review scifi security social social-media splunk ssl startup storage sun-tzu tutorial twitter virtualization vmware wordpress work writing zombie

Copyright © 2025 antipaucity.

Powered by PressBook Green WordPress theme