FAQ
I am fairly new to Puppet, and am taking a script initially working with a
Vagrant setup and trying to run it standalone. I am simply declaring the
class for the module mysql in the script:

class { 'mysql': }


and when I try to run 'puppet apply' I get:

Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class mysql at /etc/puppet/manifests/default.pp:33 on node

Using strace I found:

lstat("/etc/puppet/mysql.rb", 0x7fffa1b7bb10) = -1 ENOENT (No such file or directory)

So it seems that my paths in puppet.conf are incorrect, but I am not sure
what I am doing wrong.

puppet.conf:

[main]
logdir=/etc/log/puppet
vardir=/etc/lib/puppet
ssldir=/etc/lib/puppet/ssl
rundir=/etc/run/puppet
factpath=$vardir/lib/facter
templatedir=/etc/puppet/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
manifest = /etc/puppet/manifests/default.pp
modulepath = /etc/puppet/modules
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

Any help is appreciated.

--
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.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Felix Frank at Mar 12, 2013 at 2:07 pm
    Hi,
    On 03/07/2013 07:55 PM, Drew Sheneman wrote:
    class { 'mysql': }|
    lstat("/etc/puppet/mysql.rb", 0x7fffa1b7bb10) = -1 ENOENT (No such file or directory)|
    Is this the only file it tries and opens? Because it looks awfully wrong.

    --
    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.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMar 7, '13 at 6:56p
activeMar 12, '13 at 2:07p
posts2
users2
websitepuppetlabs.com

2 users in discussion

Felix Frank: 1 post Drew Sheneman: 1 post

People

Translate

site design / logo © 2022 Grokbase