On Tue, Jan 7, 2014 at 5:00 PM, Tim Dunphy <[email protected]> wrote: > hey all, > > > Having a little trouble sharing a file as part of a module I'm attempting to > use. > > This is the error that I'm seeing: > > [root@beta:~] #puppet agent --test --server puppet.mydomain.com > info: Caching catalog for beta.jokefire.com > info: Applying configuration version '1389142209' > err: > /Stage[main]/Cassandra/File[/etc/alternatives/cassandrahome/conf/cassandra.yaml]: > Could not evaluate: Could not retrieve information from environment > production source(s) > puppet:///modules/cassandra/etc/alternatives/cassandrahome/conf/cassandra.yaml > at /etc/puppet/modules/cassandra/manifests/init.pp:12 > notice: Finished catalog run in 1.62 seconds > > Here is the class definition in the module I've created to share a cassandra > configuration file and ensure that the service is running: > > > [root@puppet:/etc/puppet] #cat modules/cassandra/manifests/init.pp > class cassandra { > service { cassandra: > ensure => running, > } > > > file { "/etc/alternatives/cassandrahome/conf/cassandra.yaml": > owner => "root", > group => "root", > mode => 0440, > source => > "puppet:///modules/cassandra/etc/alternatives/cassandrahome/conf/cassandra.yaml", > } > } > > > Here is the file I am trying to server on the puppet server: > > [root@puppet:/etc/puppet] #ls -l > modules/cassandra/file/etc/alternatives/cassandrahome/conf/cassandra.yaml > -r--r----- 1 puppet puppet 30876 Jan 7 19:42 > modules/cassandra/file/etc/alternatives/cassandrahome/conf/cassandra.yaml
Hi Tim, I think you want the directory 'file' to be named 'files', e.g. `/etc/puppet/modules/cassandra/files` > > The file is physically there and the permissions and ownership seem right to > me. > > Can anyone please help me with this error? > > Thanks > Tim > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CAOZy0e%3DtKLkPu9EHaaEEF9NjSReqrgLVgoXpurEyFcq0tL6fig%40mail.gmail.com. > For more options, visit https://groups.google.com/groups/opt_out. -- Moses Mendoza Puppet Labs Join us at PuppetConf 2014, September 23-24 in San Francisco -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2B421Wbc6XQusY-2QPO090x%3DNecjeK5KXA54sGTigBfhSWvYeA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
