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

Issue w/Puppet 2016.x #24

Closed
acraw1 opened this issue Sep 16, 2016 · 2 comments
Closed

Issue w/Puppet 2016.x #24

acraw1 opened this issue Sep 16, 2016 · 2 comments

Comments

@acraw1
Copy link

acraw1 commented Sep 16, 2016

The below puppet code worked fine on puppet 3.8, but it fails on puppet 2016.x. The error message produced is also shown below. I tried setting the timeout value with and without quotes, but I get the same error either way.

Error: no implicit conversion of Fixnum into String
Error: /Stage[main]/Profiles::Grub/Grub_config[timeout]/value: change from 5 to 10 failed: no implicit conversion of Fixnum into String
class profiles::grub (
  $menu_timeout = '10',
) {

  case $::osfamily {
    'RedHat': {
      case $::operatingsystemmajrelease {
        '6': {
          grub_config { 'timeout':
            value => $menu_timeout,
          }
        }
        '7': {
          grub_config { 'GRUB_TIMEOUT':
            value => $menu_timeout,
          }
        }
        default: {
          fail('Need to define the Grub configuration for this version of the OS')
        }
      }
    }
    default: {
      notify { 'Grub configuration not defined for this operating system': }
    }
  }

}
@acraw1 acraw1 changed the title Timeout issue w/Puppet 2016.x Issue w/Puppet 2016.x Sep 16, 2016
@trevor-vaughan
Copy link
Contributor

@acraw1 Thanks for the report. We'll take a look at this and get back to you.

@jhoblitt
Copy link
Member

PE 2016 is long EOL.

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

3 participants