- define file_exists_notice {
- $exists = exists($name)
- notice "File ${name} exists: ${exists}"
- }
- file_exists_notice { '/etc/hosts': }
- file_exists_notice { '/abc': }
- notice: Scope(File_exists_notice[/etc/hosts]): File /etc/hosts exists: true
- notice: Scope(File_exists_notice[/abc]): File /abc exists: false