Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use this module? #1

Closed
kyanh opened this issue May 4, 2012 · 6 comments
Closed

how to use this module? #1

kyanh opened this issue May 4, 2012 · 6 comments

Comments

@kyanh
Copy link

kyanh commented May 4, 2012

Hi,

how to use this module? I download it but I don't know where to start. Can you give an example?

Thanks.

@duritong duritong closed this as completed May 5, 2012
@duritong
Copy link
Owner

duritong commented May 5, 2012

@icy
Copy link

icy commented May 10, 2012

Thank you. I figured it out:

  • Import the module import trocla in manifests/modules.pp
  • On the master node, include the module include trocla::config
  • On the client, use the method trocla (read the source code for details:D)

I have to clean up some code in trocla/manifests/master.pp, as in my environment, puppet master and pupet client on the master node use different ruby/rvm setup and the puppet daemon can't install any rubygems.

@duritong
Copy link
Owner

If you have your modulepath properly setup and named the checked out module also trocla, you don't need to do the imports. Generally I advice you to not use import, it should be seen as deprecated and everything within puppet should work with the autoloading feature. See http:https://docs.puppetlabs.com/guides/language_guide.html#importing-manifests

All the other steps are fine.

@icy
Copy link

icy commented May 10, 2012

Thank you for the tips :) I am a Puppet's old man :P

@voidzero
Copy link

Hi,

I am still in kindergarten, well not really, although my puppet skill level is.. :)

So I might have installed everything correctly, yet I do get the following error:

Failed to parse template mysql/root/my.cnf.erb: can't convert false into Hash at /etc/puppet/modules/mysql/manifests/server/base.pp

Can you lend me a hand with this?

@icy
Copy link

icy commented May 26, 2012

You seem to have a problem with your template "mysql.root.my.cnf.erb". Sharing your template would help /me to know what is your error.

Btw, you would create new ticket and/or find support in puppet channels -- which are often faster...

duritong pushed a commit that referenced this issue Sep 29, 2020
Support puppetserver (4.x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants