Git Product home page Git Product logo

Comments (5)

ThoTischner avatar ThoTischner commented on July 30, 2024 1

Workaround changed:

  ### Config options
  $config_options.each | $name, $options | {
    ### Workaround because of https://github.com/voxpupuli/puppet-yum/issues/89
    if $name == 'exclude' {
      if $options['ensure'] != 'absent' {
        ini_setting { 'yum_config_exclude':
          ensure            => present,
          path              => '/etc/yum.conf',
          section           => 'main',
          setting           => 'exclude',
          value             => "${options['ensure']}",
          key_val_separator => '='
        }
      } else {
        ini_setting { 'yum_config_exclude':
          ensure            => absent,
          path              => '/etc/yum.conf',
          section           => 'main',
          setting           => 'exclude',
          key_val_separator => '='
        }
      }
    } else {
      yum::config { $name:
        * => $options,
      }
    }
  }

from puppet-yum.

ThoTischner avatar ThoTischner commented on July 30, 2024

Any progress?
We also see this kind of error.

from puppet-yum.

ThoTischner avatar ThoTischner commented on July 30, 2024

Hey,

i am using the following workaround at this time just for info:

class profile::yum(
  Hash $config_options = {},
) {
  include yum

  ### Config options
  $config_options.each | $name, $options | {
    ### Workaround because of https://github.com/voxpupuli/puppet-yum/issues/89
    if $name == 'exclude' {
      if $options['ensure'] != 'absent' {
        file_line { 'yum_config_exclude' :
          line  => "exclude=${options['ensure']}",
          match => 'exclude=.*',
          path  => '/etc/yum.conf',
        }
      } else {
        file_line { 'yum_config_exclude' :
          state => absent,
          match => 'exclude=.*',
          path => '/etc/yum.conf',
        }
      }
    } else {
      yum::config { $name:
        * => $options,
      }
    }
  }
}

from puppet-yum.

m-shaffer avatar m-shaffer commented on July 30, 2024

I think this is an issue with how augeas yum.lns handles exclude. I ended up using versionlock which is suboptimal but close enough for my purposes.

from puppet-yum.

dhoppe avatar dhoppe commented on July 30, 2024

I just found the following bug report:

from puppet-yum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.