shell file but getting copied do destination

5 views
Skip to first unread message

vivek...@gmail.com

unread,
Sep 10, 2017, 5:29:47 PM9/10/17
to Puppet Users
Hi,

following is my task file which i call from deployment_task.yaml

file { '/tmp/filename.sh'
path => '/tmp'
.
. source => puppet:///midules/pluginname/filename.sh,
} ->

exec {'/tmp/filename.sh'
command => '/tmp/filename.sh'
path => '/usr/bin:/bin'
}

my problem is that neither filename.sh is getting copied into /tmp/ folder nor(and probably that's why) commands is not getting executed

please help me asap, I have already defaulted on deadline twice.

thanks,
Vivek

Martin Alfke

unread,
Sep 11, 2017, 7:07:22 AM9/11/17
to puppet...@googlegroups.com

> On 09 Sep 2017, at 18:48, vivek...@gmail.com wrote:
>
> Hi,
>
> following is my task file which i call from deployment_task.yaml
>
> file { '/tmp/filename.sh'
> path => '/tmp’

Must must have the complete file name, not only the directory.
https://docs.puppet.com/puppet/latest/type.html#file-attribute-path

> .
> . source => puppet:///midules/pluginname/filename.sh,
> } ->
>
> exec {'/tmp/filename.sh'
> command => '/tmp/filename.sh'
> path => '/usr/bin:/bin'
> }
>
> my problem is that neither filename.sh is getting copied into /tmp/ folder nor(and probably that's why) commands is not getting executed
>
> please help me asap, I have already defaulted on deadline twice.
>
> thanks,
> Vivek
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/966fd69f-9e35-4d7e-bff1-0493432757c5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Neil - Puppet List

unread,
Sep 12, 2017, 9:30:42 PM9/12/17
to PuppetList
hi,

the source has a typo. it says midules rather than an modules.

Neil


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages