Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Puppet File => Ensure exception
# manifest
# config file for dfsreferenceservice
class dfsreferenceservice::config {
$debug = hiera('dfsreferenceservice::config::debug')
$domain = hiera('dfsreferenceservice::config::domain' )
$timeout = hiera('dfsreferenceservice::config::timeout' )
$cache_url = hiera('dfsreferenceservice::config::cache_url' )
$cache_key = hiera('dfsreferenceservice::config::cache_key' )
$dfsutil = hiera('dfsreferenceservice::config::dfsutil' )
$namespaces = hiera('dfsreferenceservice::config::fallback_namespaces' )
file { 'C:\Program Files(x86)\DfsUpdater\update-dfs.ini':
source_permissions => ignore,
content => template('dfsreferenceservice/update-dfs.ini.erb'),
require => Exec['DFSInstaller']
}
}
# error
Error: Could not set 'file' on ensure: No such file or directory - C:/Program Files(x86)/DfsUpdater/update-dfs.ini20140919-2528-fh82k3.lock at 15:/etc/puppet/modules/dfsreferenceservice/manifests/config.pp
Wrapped Exception:
No such file or directory - C:/Program Files(x86)/DfsUpdater/update-dfs.ini20140919-2528-fh82k3.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment