Skip to content

Instantly share code, notes, and snippets.

@hunner
Created November 9, 2011 02:41
Show Gist options
  • Save hunner/1350161 to your computer and use it in GitHub Desktop.
Save hunner/1350161 to your computer and use it in GitHub Desktop.
### output
err: /Stage[main]/Keymanager/File[keymanager_dbyml]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /mnt/apigee/keymanager/current/config/database.yml.puppettmp_5679 at /etc/puppet/modules/keymanager/manifests/init.pp:60
notice: /Stage[main]/Keymanager/File[keymanager_current]/ensure: created
### manifest
file {
"keymanager_current":
path => "${apigeemnt}/keymanager/current",
ensure => link,
owner => apache,
group => apache,
target => "${keymanager_rel}",
require => Exec['keymanager_install'],
;
"keymanager_dbyml":
path => "${apigeemnt}/keymanager/current/config/database.yml",
owner => apache,
group => apache,
mode => 644,
source => [
"puppet:///dist/keymanager/config/${customer}/${domain}/database.yml.${hostname}",
"puppet:///dist/keymanager/config/${customer}/${domain}/database.yml.${apgenv}",
"puppet:///dist/keymanager/config/${customer}/database.yml",
],
require => Exec["keymanager_install"],
;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment