Ask Your Question

applying manifest on Windows

asked 2016-12-07 06:22:27 -0500

Anil Veeramalli gravatar image

updated 2016-12-07 12:05:10 -0500

lupin gravatar image

when i try to apply windows manifest, I am getting this error on windows

Error: Failed to apply catalog: Parameter creates failed on Exec[create repo_dir]: creates must be a fully qualified path at /opt/puppetlabs/puppet/modules/pe_repo/manifests/init.pp:47

when i look into opt/puppetlabs/puppet/modules/pe_repo/manifests/init.pp file i see line 47 has below code

exec { 'create repo_dir':
    command => "mkdir -p ${repo_dir}",
    creates => $repo_dir,
    path    => '/sbin/:/bin/',

Please suggest me the solution on this.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-07 12:08:32 -0500

lupin gravatar image

The exec resource is executing a command mkdir -p. I believe the -p option isn't available in Windows? And you need to supply the path value with correct file-system path on Windows which the mkdir is, C:\Windows\system32

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-12-07 06:22:27 -0500

Seen: 137 times

Last updated: Dec 07 '16