Re: [Puppet Users] unable to detect source attribute.

46 views
Skip to first unread message
Message has been deleted

Christopher Wood

unread,
Jul 29, 2014, 1:41:31 PM7/29/14
to puppet...@googlegroups.com
On Tue, Jul 29, 2014 at 10:35:30AM -0700, Supriya Uppalapati wrote:
> Hi,
> My code is unable to find source attribute. even though i specified it
> correctly.
> Here is my error
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Invalid parameter source at
> /etc/puppetlabs/puppet/environments/development/modules/powercenter/manifests/init.pp:27

Which one below is line 27?

> on node infauser.dot-pap-spr-d03.ddc.dot.state.ma.us
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
> Here is my code:
> cat init.pp
> class powercenter {
>  include test
>  include powcentertests
> # $downloaddir = "/stage/informatica/Infa961/"
>  $informatica_version = '961HF2_Server_Installer_linux-x64.tar'
>  $informatica_licence =
> 'Commonwealth_of_Massachusetts_MultiOS_RE_v961_Dev_0088671_97168.key'
>  file { 'bash_profile':
>   path => '/home/infauser/.bash_profile',
>   ensure => 'present',
>   #source => "puppet:///development/powercenter/files/bash_profile",
>    source  => "/stage/informatica/bash_profile",
> }
>  file { "/opt/apps/installs/srvr":
>     ensure => "directory",
>     owner => "infauser",
>     group => "infauser",
>     mode  => 750,
> }
>  exec { '$informatica_version':
>  command => "/bin/tar -xvf $informatica_version",
>   #path => '/bin/tar',
>   cwd   => '/opt/apps/installs/srvr/',
>   #creates => '/opt/apps/installs/srvr',
>   source =>
> "/stage/informatica/Infa961/961_Server_Installer_linux-x64.tar",

It could be this one, there's no source attribute in an exec resource.

http://docs.puppetlabs.com/references/latest/type.html#exec

> }
>   file { '$informatica_licence':
>       path =>
> "/opt/apps/downloads/Commonwealth_of_Massachusetts_RE_v961_DEV_0088671_97168.key",
>       ensure => present,
>       owner => infauser,
>       group => infauser,
>       mode  => 0755,
>      source =>
> "/stage/informatica/Infa961/Commonwealth_of_Massachusetts_RE_v961_DEV_0088671_97168.key",
>    # informatica  => $downloaddir,
> }
> }
>
> --
> 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 [1]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [2]https://groups.google.com/d/msgid/puppet-users/72c8cc09-9026-409e-86fb-65b763b22655%40googlegroups.com.
> For more options, visit [3]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:puppet-users...@googlegroups.com
> 2. https://groups.google.com/d/msgid/puppet-users/72c8cc09-9026-409e-86fb-65b763b22655%40googlegroups.com?utm_medium=email&utm_source=footer
> 3. https://groups.google.com/d/optout
Reply all
Reply to author
Forward
0 new messages