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

Resource types containing only a variable #30

Closed
arioch opened this issue Sep 27, 2011 · 2 comments
Closed

Resource types containing only a variable #30

arioch opened this issue Sep 27, 2011 · 2 comments

Comments

@arioch
Copy link

arioch commented Sep 27, 2011

File {
notify => Service["$puppetmaster::webserver_service"],
}

puppet-lint init.pp

WARNING: string containing only a variable on line 9

When applying the above sample - without - quotes puppet dies with the following error:

err: Could not run Puppet configuration client: Could not find dependent Service[undef] for ...

@rodjek
Copy link
Owner

rodjek commented Oct 6, 2011

Interesting, that actually sounds like a bug in your version of Puppet.

sammael :0: ~ » cat test.pp
$foo = 'nginx'

File {
  notify => Service[$foo]
}

file { '/foo':
  ensure => present,
}
sammael :0: ~ » puppet apply --noop test.pp
Could not find dependent Service[nginx] for File[/foo] at /Users/tsharpe/test.pp:9
sammael :1: ~ » puppet --version
2.6.9

@rodjek
Copy link
Owner

rodjek commented Dec 27, 2011

Closing due to inactivity and inability to reproduce the problem

@rodjek rodjek closed this as completed Dec 27, 2011
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