https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • c

    canihavethisone

    11/29/2022, 3:37 AM
    This may be mentioned elsewhere, but I am curious if there is an intended release date for
    Puppet v8
    , and/or any planned changes? I see that
    v6
    is planned for EOL July 2023 and some developers are already referring to
    v6
    as deprecated...
  • s

    smortex

    11/29/2022, 3:50 AM
    @canihavethisone just saw that on puppet-dev@:
    This note is to inform you that starting with our February release of Open Source Puppet 8, we'll be dropping support for JDK 8.
    👍 1
  • s

    ssaini

    11/29/2022, 3:29 PM
    Hi there, would anyone have experience which puppet module like https://forge.puppet.com/modules/thias/tuned supports Rocky Linux or anything that is part of the RedHat os_family?
  • l

    Lumiere

    11/29/2022, 4:15 PM
    that module should be able to, but may need some work to make it happen (given that it hasn't been released in 3 years)
  • l

    Lumiere

    11/29/2022, 4:15 PM
    it supports RH/CentOS per the forge page, Rocky is in the same os_family
  • d

    Daehnomel

    11/29/2022, 4:17 PM
    The latest version of the mysql puppet forge module does not allow for the 'package_name' parameter to be overridden, change my mind! I've tried forcing the mysql-server value for this parameter when calling the class several times, in each case it installs MariaDB instead. The relevant code for this module in the server.pp and params.pp manifests does not look like it cares about that parameter in the class declaration at all. Is this a bug or am I doing something wrong?
  • d

    Daehnomel

    11/29/2022, 4:56 PM
    The latest version of the mysql puppet forge module does not allow for the 'package_name' parameter to be overridden, change my mind! I've tried forcing the mysql-server value for this parameter when calling the class several times, in each case it installs MariaDB instead. The relevant code for this module in the server.pp and params.pp manifests does not look like it cares about that parameter in the class declaration at all. Is this a bug or am I doing something wrong?
  • n

    natemccurdy

    11/29/2022, 5:13 PM
    @Daehnomel It does allow the package name to be overidden. See: https://github.com/puppetlabs/puppetlabs-mysql/blob/v13.0.1/manifests/server/install.pp#L11 Note that the title of the resource is hard-coded to
    mysql-server
    , but the
    name
    parameter does take its value from
    $mysql::server::package_name
    So it may appear that the
    mysql-server
    package is being installed if all you're looking at is the Puppet run's output.... for example you might see something like:
    Copy code
    Class[mysql::server::install]/Package[mysql-server]: ensure changed from purged to present
    But that's only showing you the title of the resource, not the actual package name being installed.
    🙌 1
  • n

    natemccurdy

    11/29/2022, 5:13 PM
    @Daehnomel It does allow the package name to be overidden. See: https://github.com/puppetlabs/puppetlabs-mysql/blob/v13.0.1/manifests/server/install.pp#L11 Note that the title of the resource is hard-coded to
    mysql-server
    , but the
    name
    parameter does take its value from
    $mysql::server::package_name
    So it may appear that the
    mysql-server
    package is being installed if all you're looking at is the Puppet run's output.... for example you might see something like:
    Copy code
    Class[mysql::server::install]/Package[mysql-server]: ensure changed from purged to present
    But that's only showing you the title of the resource, not the actual package name being installed.
  • d

    Daehnomel

    11/29/2022, 6:12 PM
    To clarify, I had the below class declaration added to my mysql servers, and the module installed mariaDb, not MySQL. I need MySQL, not MariaDB, but this package is damn near hard coded to install mariadb if you're running ubuntu. Can you tell me how to resolve this to get Mysql installed? I have never considered chaning a forge modules code, but I'm about to with this one.
    Copy code
    class { '::mysql::server':
    
                                 package_name            => 'mysql-server',
    
                                 package_ensure          => 'present',
    
                                 root_password            =>          $root_password,
    
                                 override_options         =>          $override_options,
    
                                 restart                                             =>          true,
    
    }
  • d

    Daehnomel

    11/29/2022, 6:13 PM
    To clarify, I had the below class declaration added to my mysql servers, and the module installed mariaDb, not MySQL. Can you tell me why? I have never considered chaning a forge modules code, but I'm about to with this one.
    Copy code
    class { '::mysql::server':
    
                                 package_name            => 'mysql-server',
    
                                 package_ensure          => 'present',
    
                                 root_password            =>          $root_password,
    
                                 override_options         =>          $override_options,
    
                                 restart                                             =>          true,
    
    }
  • l

    Lumiere

    11/29/2022, 6:13 PM
    if there's an obsoletes the package manager might have replaced it and told puppet "I did what you wanted"
  • d

    Daehnomel

    11/29/2022, 6:14 PM
    it's not my package manager.
  • n

    natemccurdy

    11/29/2022, 6:14 PM
    What operating system and version is that Puppet agent running on? And what happens when you try to install "mysql-server" manually using your OS's package manager?
  • n

    natemccurdy

    11/29/2022, 6:15 PM
    it's not my package manager.
    How do you know that? What did you test to verify that to yourself?
  • d

    Daehnomel

    11/29/2022, 6:16 PM
    To clarify, I had the below class declaration added to my mysql servers, and the module installed mariaDb, not MySQL. I need MySQL, not MariaDB, but this package is damn near hard coded to install mariadb if you're running ubuntu. Can you tell me how to resolve this to get Mysql installed? I have never considered chaning a forge modules code, but I'm about to with this one.
    Copy code
    class { '::mysql::server':
    
                                 package_name            => 'mysql-server',
    
                                 package_ensure          => 'present',
    
                                 root_password            =>          $root_password,
    
                                 override_options         =>          $override_options,
    
                                 restart                                             =>          true,
    
    }
  • n

    natemccurdy

    11/29/2022, 6:18 PM
    As a test, try running this by hand on that host:
    Copy code
    sudo puppet resource package mysql-server ensure=present name=mysql-server --debug
    What do the debug logs show is happening behind the scenes? You should see exactly the command that Puppet is running to install the package.
  • d

    Daehnomel

    11/29/2022, 6:28 PM
    Thank you, I'm running Ubuntu 20.04, Puppet Community 7.20.0. and the "apt-get install mysql-server" command installs mysql on this host. I'll post the requested debug logs shortly.
  • d

    Daehnomel

    11/29/2022, 7:13 PM
    I'm having some sort of cache issue running the debug command, it's not picking up the changes I've made to the development environment since the first time I ran it. The particular issue is that the "package_ensure => 'present" statement was set to " package_ensure => '8.0.31-0ubuntu0.20.04.1" for testing, and this won't change no matter how many times I run it or restart the local puppet agent, or even reload the puppet server service.
  • d

    Daehnomel

    11/29/2022, 7:14 PM
    In any case, it's not my pacakge manager, I think we've established that.
  • s

    Slackbot

    11/29/2022, 8:03 PM
    This message was deleted.
    d
    • 2
    • 1
  • h

    hbui

    11/30/2022, 3:46 AM
    I'd verify that the
    class { '::mysql::server': ... }
    that you got on the system is the same as what you think was added to your mysql servers. You can look at the catalog in
    /opt/puppetlabs/puppet/cache/client_data/catalog/<certname>.json
    . Search for
    "title": "Mysql::Server",
    and verify that the parameters landed as expected.
  • m

    Mike Fröhner (crazymind1337)

    11/30/2022, 12:46 PM
    Does anybody else have this problem: https://tickets.puppetlabs.com/browse/FACT-3168 ?
  • b

    bastelfreak

    11/30/2022, 12:48 PM
    ah, nice one
  • b

    bastelfreak

    11/30/2022, 12:49 PM
    is that caused by /etc/resolv.conf being a symlink or by the search entry?
  • m

    Mike Fröhner (crazymind1337)

    11/30/2022, 12:54 PM
    by the search entry
  • m

    Mike Fröhner (crazymind1337)

    11/30/2022, 12:54 PM
    by the search entry
  • m

    Mike Fröhner (crazymind1337)

    11/30/2022, 12:54 PM
    well actually by both
  • m

    Mike Fröhner (crazymind1337)

    11/30/2022, 12:56 PM
    but if you remove the
    search .
    the fact networking.fqdn resolves to the hostname
  • m

    Mike Fröhner (crazymind1337)

    11/30/2022, 12:57 PM
    but after the reboot
    search .
    is back because this file (the symlinked one) is written by the service systemd-resolved.
1...242243244...428Latest