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

Values of kernel parameters cannot contain spacesNospacevalue #12

Merged
merged 2 commits into from
Mar 26, 2021

Commits on Mar 26, 2021

  1. Create new type grubby::kernel_opt

    A new type is added
    
    ```puppet
    grubby::kernel_opt{'foo':
      ensure => present,
      value  => 'bar',
      scope  => 'ALL',
    }
    ```
    
    The previous hash parameter `grubby::kernel_opts` is still valid
    and now uses `grubby::kernel_opt` internally.
    
    Motivation here is to increase flexibility of module allowing
    kernel parameters to be added by other distinct modules.
    traylenator committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    bed1329 View commit details
    Browse the repository at this point in the history
  2. Values of kernel parameters cannot contain spaces

    While according
    
    https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html
    
    parameter values can be specified as a space separated list
    
    ```
    param="A B"
    ```
    
    it is not obvious that grubby supports such an addition.
    
    So best to fail if presented with a space containing value.
    
    If ever required check branch here
    atsonkov#11
    traylenator committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    14e8d7e View commit details
    Browse the repository at this point in the history