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

    Dr Bunsen Honeydew

    05/13/2022, 8:31 PM
    See the
    edestecd-mariadb
    module at https://forge.puppet.com/edestecd/mariadb?src=slack&channel=puppet
  • u

    Ugo Bellavance

    05/13/2022, 8:31 PM
    Copy code
    mod 'edestecd/mariadb', '2.1.1'
    mod 'puppetlabs/mysql', '10.3.0'
  • l

    Lumiere

    05/13/2022, 8:37 PM
    ah, so that doesn't have override_options
  • u

    Ugo Bellavance

    05/13/2022, 8:38 PM
    Which one, the mariadb module?
  • l

    Lumiere

    05/13/2022, 8:38 PM
    yea, it says it does
  • l

    Lumiere

    05/13/2022, 8:38 PM
    but my reading of the code suggests it doesn't actually use it
  • u

    Ugo Bellavance

    05/13/2022, 8:38 PM
    Oh 😞
  • l

    Lumiere

    05/13/2022, 8:38 PM
    https://github.com/edestecd/puppet-mariadb/blob/master/manifests/server/mysql.pp#L31
  • l

    Lumiere

    05/13/2022, 8:38 PM
    https://github.com/edestecd/puppet-mariadb/blob/master/manifests/server/mysql.pp#L31
  • u

    Ugo Bellavance

    05/13/2022, 8:39 PM
    Is it just named differently?
  • l

    Lumiere

    05/13/2022, 8:39 PM
    it should take the same content via
    mariadb::server::options
  • l

    Lumiere

    05/13/2022, 8:39 PM
    it passes that content to mysql's override_options
  • u

    Ugo Bellavance

    05/13/2022, 8:39 PM
    Is it just named differently?
  • u

    Ugo Bellavance

    05/13/2022, 8:40 PM
    I think I tried too many things. Cleaning up.l
  • s

    Slackbot

    05/13/2022, 8:40 PM
    This message was deleted.
    u
    b
    d
    • 4
    • 13
  • l

    Lumiere

    05/13/2022, 8:41 PM
    that's pretty much the story of learning puppet πŸ˜„
  • u

    Ugo Bellavance

    05/13/2022, 8:42 PM
    I think there is something wrong in my file
  • s

    Slackbot

    05/13/2022, 8:43 PM
    This message was deleted.
    u
    n
    • 3
    • 13
  • u

    Ugo Bellavance

    05/13/2022, 8:43 PM
    It looks like the key contains other informations (grants)
  • u

    Ugo Bellavance

    05/13/2022, 8:51 PM
    If I see this in the logs, what hiera key is it looking for?
    Copy code
    Notice: /Stage[main]/Profile::Mariadb/Mysql::Db
  • u

    Ugo Bellavance

    05/13/2022, 9:06 PM
    Thanks a lot everyone. I'm up to a good start now.
  • u

    Ugo Bellavance

    05/14/2022, 1:19 PM
    I defined the MariaDB upstream repo so that when the puppetlabs-mysql installs the package it uses the upstream version. How do I make sure the repo is defined before the module installs the package? Repo is defined in hiera:
    Copy code
    yum::managed_repos:
        - 'mariadb'
    yum::repos:
        mariadb:
            ensure: 'present'
            enabled: true
            descr: 'MariaDB Repo'
            baseurl: '<http://yum.mariadb.org/10.6/centos7-amd64>'
            gpgcheck: true
            gpgkey: '<https://yum.mariadb.org/RPM-GPG-KEY-MariaDB>'
            target: '/etc/yum.repos.d/mariadb-org.repo'
  • d

    Dr Bunsen Honeydew

    05/14/2022, 1:20 PM
    See the
    puppetlabs-mysql
    module at https://forge.puppet.com/puppetlabs/mysql?src=slack&amp;channel=puppet
  • v

    vchepkov

    05/14/2022, 1:26 PM
    Copy code
    Class['yum'] -> Class['mysql']
    πŸ‘ 1
  • u

    Ugo Bellavance

    05/14/2022, 2:55 PM
    What do you guys use to develop Puppet code? I use vim and VMWare snapshots to revert when needed
  • n

    n3snah

    05/14/2022, 3:08 PM
    I use PDK, VS Code (with a heap of extensions) & Git.
  • n

    n3snah

    05/14/2022, 3:08 PM
    I use PDK, VS Code (with a heap of extensions) & Git.
  • b

    bastelfreak

    05/14/2022, 3:16 PM
    Inhabe tonuse vscode in one environment and I really hate it because its not really possiblento embed additional linter plugins into the puppet language server. Usually I use vim + plugins
  • u

    Ugo Bellavance

    05/14/2022, 3:59 PM
    Ok and how do you revert your changes when you break the os beyond repair?
  • n

    n3snah

    05/14/2022, 4:01 PM
    if its while I am at work, yes I use vmware and snapshots. If its outside of work which I do some for also, then I have terraform and Azure
1...394041...428Latest