Page MenuHomePhabricator
Authored By
jbond
Dec 20 2019, 12:24 PM
Size
501 B
Referenced Files
None
Subscribers
None
#!/usr/bin/env python3
from pypuppetdb import connect
from pypuppetdb.QueryBuilder import RegexOperator
def main():
found_files = []
db = connect()
query_regex = RegexOperator('title', '^\/etc\/apt\/sources.list.d\/')
resources = db.resources('file', query=query_regex)
for resource in resources:
if resource.sourcefile != '/etc/puppet/modules/apt/manifests/repository.pp':
print(resource.sourcefile)
if __name__ == '__main__':
raise SystemExit(main())

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8270078
Default Alt Text
raw.txt (501 B)

Event Timeline