Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 4.5.2
-
None
-
Tested on CentOS 6.8 with PE 2016.2.0
-
-
1
-
Language 2016-08-10, Language 2016-08-24
-
Bug Fix
-
Description
Given the following Puppet code:
class system::hashadmins {
|
require mysql::server
|
## Defaults
|
Mysql_user {
|
ensure => present,
|
max_queries_per_hour => 700,
|
}
|
## User Data
|
$users = {
|
'monica@localhost' => {},
|
'brad@localhost' => {},
|
'luke@localhost' => {},
|
'zack@localhost' => {
|
'max_queries_per_hour' => 1300,
|
},
|
'ralph@localhost' => {
|
'ensure' => 'absent',
|
}
|
}
|
## Call the function
|
create_resources('mysql_user', $users)
|
}
|
...the resources that are queried look like this coming out of PuppetDB:
{
|
"certname": "gary.puppetlabs.vm",
|
"environment": "gary",
|
"exported": false,
|
"file": null,
|
"line": null,
|
"parameters": {
|
"ensure": "present",
|
"max_queries_per_hour": 1300
|
},
|
"resource": "964a8bb11e504402830b17f2818b2a848b5fe4ae",
|
"tags": [
|
"class",
|
"system::hashadmins",
|
"hashadmins",
|
"system",
|
"mysql_user",
|
"default",
|
"node"
|
],
|
"title": "zack@localhost",
|
"type": "Mysql_user"
|
}
|
You'll note that the line and file keys are null. This causes issues down the line with coverage reports like the issue that was posted here --> https://github.com/rodjek/rspec-puppet/issues/364
Attachments
Issue Links
- is blocked by
-
PUP-5949 Update loaders to load pcore in place of ruby resource types when compiling
-
- Closed
-