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

'vals' expects a value of type String #7

Open
malutanpetronel opened this issue Jul 4, 2016 · 4 comments
Open

'vals' expects a value of type String #7

malutanpetronel opened this issue Jul 4, 2016 · 4 comments

Comments

@malutanpetronel
Copy link

The module crash with:

==> newlocal: Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a v
alue of type String, Type[CatalogEntry], or Type[Type[CatalogEntry]], got Undef at /tmp/vagrant-puppet/modules-c71e6c9a3adce3d1d5937edb685c2e49/trac/manifests/repo.pp:69:10 at /tm
p/vagrant-puppet/modules-c71e6c9a3adce3d1d5937edb685c2e49/trac/manifests/tracenv.pp:232 on node newlocal.puphpet

I use
class{'trac':}

trac::tracenv{'project1':
    redir_http => true,
    vhost_name => 'trac1.project1.loc',
    repo_type  => 'git',
    db_type    => 'mysql',
}

any hint please ?

@eschiller
Copy link
Owner

I haven't been able to reproduce this error with identical manifests to what you're using. Best guess off-hand would be a dependency issue, or maybe a versioning issue. Can I ask:

  • What distro are you using?
  • What version of puppet are you?
  • Do you have stdlib, and if you do what version are you using?

@malutanpetronel
Copy link
Author

My linux is

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"

puppet is 4.3.1

How to find if stdlib is there ?

@malutanpetronel
Copy link
Author

malutanpetronel commented Jul 7, 2016

just noticed that the module nginx which is present in my modules area has in init.pp the
include stdlib line which I added in your module just before class trac line, but the error is the same. Did I forgot to define anything in the trac::tracenv{'project1': maybe ?

@eschiller
Copy link
Owner

Sorry for the slow reply, I suspected that it was the puppet version, as I had only tested on v3. Finally got some time to test today, but that doesn't appear to be the problem (puppet 4 runs ok on my dev system with ub14).

I did find two typos that were causing some issues, one of which might be what was causing your errors.

I also noticed one issue in your manifest -- mysql isn't a valid option for db_type. Only postgres and sqlite are supported.

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

2 participants