Hi Dan,
You''re correct I''m running puppetd/master on the same server,
no
client/server stuff yet. It was my un-educated guess that puppet isn''t
able to find the libs; I do not get an error message when I run:
''puppetd --test --debug --trace --server="xxxx"'',
the db''s just do not
get created (nor the users).
My node-specs are these:
I have class which installs myapp, in that class I create the db and
users:
class myapp::install {
Exec { path => "/usr/bin:/usr/sbin" }
file { "/var/www/$domain":
source => "puppet:///myapp",
recurse => "true",
owner => "$user",
group => "$user",
ignore => ".svn",
}
group { myapp:
gid => 601 }
user { myapp:
comment => "myapp",
require => Group["myapp"],
uid => 601,
gid => 601,
home => "$docroot",
shell => "/sbin/nologin"
}
include mysql::server
mysql::database{"myapp_test":
ensure => present,
}
mysql::rights{"Set rights for puppet database":
ensure => present,
database => "$db",
user => "$user",
password => "$passwd",
host => "$host"
}
}
This class is included in a baseclass;
the baseclass is included in a node called ''default''.
Then I define my node something like the following:
node ''mynode.mydomain.nl'' inherits default {
$proj_name = "myapp-test"
$domain = "myapp.webhop.org"
$path = "/var/www/$domain"
$docroot = "$path/src/myapp-test"
$aliases = "testserver"
$user = $proj_name
$passwd = XXX
simple-vhost { myapp:
docroot => $docroot,
aliases => $aliases,
}
apache::ports::listen { myapp:
ports => ["8080",]
}
}
On Jun 30, 5:15 pm, Dan Bode <d...@puppetlabs.com>
wrote:> On Wed, Jun 30, 2010 at 12:21 AM, bowlby <bramenn...@gmail.com>
wrote:
> > Hi,
> > New to puppet so this could be noob-problem.
> > I''m using the module I found here:
> >http://github.com/camptocamp/puppet-mysql
> > to manage my mysql. The module does install mysq-server and creates a
> > root-user, but it does not create the database and user I specify.
>
> can you show the code that you are using to create those resources?
>
> > My
> > guess is that the custom types (found in ./puppet-mysql/lib) are not
> > used by puppet.
>
> if puppet cant find the resource it should produce an error. What error do
> you see?
>
> > My puppet.conf does mention pluginsync=true.
>
> pluginsync only applies to client/server, I would just use the puppet
> executable while you test.
>
> > Am I missing something?
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google
Groups
> > "Puppet Users" group.
> > To post to this group, send email to puppet-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.