Issue #7078 has been updated by Nigel Kersten.
Status changed from Rejected to Re-opened
I'd like to see a little more discussion here, as I think we have a more
obvious use case from the other ticket.
<pre>
$using_store_configs = false
if ( $using_store_configs == true ) {
notice("storeconfigs in use")
@@file { "/tmp/foo": content => "fjskfjs\n", tag => "foofile", }
} else {
notice("storeconfigs not in use")
}
</pre>
The warning still appears even though the resource is not being exported.
It should be noted that this is just a warning though. It's not causing any
operations to fail.
----------------------------------------
Bug #7078: resource_type search can produce errors if storedconfigs is not
configured.
https://projects.puppetlabs.com/issues/7078
Author: Dan Bode
Status: Re-opened
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.7.0rc1
Keywords:
Branch:
(NOTE: the following is run against 2.7 (currently next), I have also seen the
same warnings in 2.6.x)
If I have a manifest which tries to export resources, then I get the following
warning when retrieving the resource_type:
<pre>
# cat /tmp/foo.pp class foo ($bar) {
@@notify { 'foo': }
}
[root@mypuppetmaster motd]# puppet resource_type search '*' --manifest
/tmp/foo.pp
warning: You cannot collect without storeconfigs being set on line 2 in file
/tmp/foo.pp
[
{
"name": "foo",
"arguments": {
"bar": null
},
"line": 1,
"type": "hostclass",
"file": "/tmp/foo.pp"
}
]
</pre>
This warning should not occur, since having stored configs configured is not a
requirement for querying the type.
configuring stored configs on the server makes the errors go away
I also verified that the resource_type call is not exporting resources if
storedconfigs is enabled.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.