{"action":"opened","issue":{"url":"https://api.github.com/repos/hercules-team/augeasproviders_grub/issues/11","labels_url":"https://api.github.com/repos/hercules-team/augeasproviders_grub/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/hercules-team/augeasproviders_grub/issues/11/comments","events_url":"https://api.github.com/repos/hercules-team/augeasproviders_grub/issues/11/events","html_url":"https://github.com/hercules-team/augeasproviders_grub/issues/11","id":113392418,"number":11,"title":"Grub2 does not add the /files/etc/default/grub/GRUB_CMDLINE_LINUX_DEFAULT path if it is missing","user":{"login":"trevor-vaughan","id":4982601,"avatar_url":"https://avatars.githubusercontent.com/u/4982601?v=3","gravatar_id":"","url":"https://api.github.com/users/trevor-vaughan","html_url":"https://github.com/trevor-vaughan","followers_url":"https://api.github.com/users/trevor-vaughan/followers","following_url":"https://api.github.com/users/trevor-vaughan/following{/other_user}","gists_url":"https://api.github.com/users/trevor-vaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/trevor-vaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevor-vaughan/subscriptions","organizations_url":"https://api.github.com/users/trevor-vaughan/orgs","repos_url":"https://api.github.com/users/trevor-vaughan/repos","events_url":"https://api.github.com/users/trevor-vaughan/events{/privacy}","received_events_url":"https://api.github.com/users/trevor-vaughan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T16:16:40Z","updated_at":"2015-10-26T16:16:40Z","closed_at":null,"body":"Attempted to apply the following with Puppet:\r\n\r\n```ruby\r\nkernel_parameter { 'fips':\r\n  value    => '1',\r\n  bootmode => 'normal'\r\n}\r\n```\r\n\r\nReceived the following error:\r\n\r\n```\r\nInfo: Applying configuration version '1445871089'\r\nNotice: /Stage[main]/Main/Kernel_parameter[fips]/ensure: created\r\nDebug: Puppet::Type::Kernel_parameter::ProviderGrub2: Save failure details:\r\n/augeas/files/etc/default/grub/error/path = /files/etc/default/grub/GRUB_CMDLINE_LINUX_DEFAULT\r\n/augeas/files/etc/default/grub/error/lens = /usr/share/augeas/lenses/dist/shellvars_list.aug:38.13-.78:\r\n/augeas/files/etc/default/grub/error/message = Failed to match \r\n    { /quote/ = /'/ }({ /value/ = /[^\\001-\\004\\t\\n ']+/ }{ /value/ = /[^\\001-\\004\\t\\n ']+/ }*)? | { /quote/ = /\"/ }({ /value/ = /([^\\001-\\004\\t\\n \"\\\\]|\\\\\\\\[^\\001-\\004\\n])+/ }{ /value/ = /([^\\001-\\004\\t\\n \"\\\\]|\\\\\r\n\\\\[^\\001-\\004\\n])+/ }*)? | { /quote/ = // }{ /value/ = /(([^\\001-\\004\\t\\n \"'\\\\]|\\\\\\\\[^\\001-\\004\\n])+)+/ }?\r\n  with tree\r\n    { \"value\" = \"fips=1\" }\r\nError: /Stage[main]/Main/Kernel_parameter[fips]: Could not evaluate: Failed to save Augeas tree to file. See debug logs for details.\r\n```\r\n\r\nThis appears to be because GRUB_CMDLINE_LINUX_DEFAULT is not present in /etc/default/grub by default and should be created by Augeas if it is not present in the file.\r\n\r\nIdeally, it would default to whatever GRUB_CMDLINE_LINUX has in it at the time of creation."}}