jeudi 3 décembre 2020

remove files with puppet resource tidy

I want to delete all files that don't start with "custom". how does the glob pattern have to look like? According to https://globster.xyz/ that should be ok.

tidy { 'delete-original-config-files':
    path    => '/etc/httpd/conf.d/',
    recurse => true,
    matches => '!(custom*).conf',
}

Aucun commentaire:

Enregistrer un commentaire