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

    vchepkov

    05/12/2022, 8:00 PM
    same deal, no need to duplicate attributes and support just a limited set of the resource's attributes
  • t

    tias

    05/12/2022, 8:00 PM
    and I would quote the keys of the
    $engops_users[$this_user]
    hash, e.g
    $engops_users[$this_user]['groups']
  • t

    tias

    05/12/2022, 8:01 PM
    and I would quote the keys of the
    $engops_users[$this_user]
    hash, e.g
    $engops_users[$this_user]["groups"]
  • t

    tias

    05/12/2022, 8:01 PM
    and I would quote the keys of the
    $engops_users[$this_user]
    hash, e.g
    $engops_users[$this_user]['groups']
  • t

    todd.seidenberg

    05/12/2022, 8:02 PM
    ok - thank you
  • y

    Yury Bushmelev

    05/13/2022, 4:09 AM
    @dmnfortytwo does IRC & FreeBSD ring a bell to you 🤔 your nickname looks very familiar to me :-D
    🙃 1
  • s

    Slackbot

    05/13/2022, 11:29 AM
    This message was deleted.
    s
    m
    n
    • 4
    • 20
  • j

    Jeroen de Boer

    05/13/2022, 4:52 PM
    message has been deleted
  • u

    Ugo Bellavance

    05/13/2022, 7:50 PM
    Hi, I'm trying to make hiera work with the mariadb module. I do have this in my manifests:
    Copy code
    include mariadb::server
    But when I put this in hiera I don't see any change:
    Copy code
    mariadb::server::manage_config_file: true
    mariadb::server::purge_conf_dir: true
    
    mariadb::server::override_options :
      'mysqld'                              :
        'bind-address'                      :
        binlog_format                       : MIXED
        innodb_buffer_pool_size             : 11G
        innodb_buffer_pool_instances        : 11
        innodb_log_file_size                : 1375M
        join_buffer_size                    : 512K
        key_buffer_size                     : 256M
        log_output
    What am I missing?
  • n

    natemccurdy

    05/13/2022, 7:58 PM
    It matters where in your Hiera hierarchy you put this data. Perhaps whatever matchers your hierarchy uses aren’t matching against the node you’re testing on?
  • u

    Ugo Bellavance

    05/13/2022, 7:58 PM
    I can't remember how to query for a hiera key...
  • b

    bastelfreak

    05/13/2022, 8:00 PM
    puppet lookup... :)
  • n

    natemccurdy

    05/13/2022, 8:01 PM
    From your Puppet server, run: •
    puppet lookup <key_name> --environment <env> --node <node_name> --explain
  • n

    natemccurdy

    05/13/2022, 8:01 PM
    From your Puppet server, run: •
    puppet lookup <key_name> --environment <env> --node <node_name> --explain
  • n

    natemccurdy

    05/13/2022, 8:01 PM
    https://puppet.com/docs/puppet/7/hiera_automatic.html#using_puppet_lookup
  • b

    bastelfreak

    05/13/2022, 8:01 PM
    amd maybe --compile
  • u

    Ugo Bellavance

    05/13/2022, 8:01 PM
    There is no puppet server...
  • u

    Ugo Bellavance

    05/13/2022, 8:02 PM
    I use r10k and then puppet apply directly on this node.
  • n

    natemccurdy

    05/13/2022, 8:02 PM
    How exactly are you running
    puppet apply
    ?
  • u

    Ugo Bellavance

    05/13/2022, 8:03 PM
    puppet apply --verbose --environment production --noop /etc/puppetlabs/code/environments/production/manifests
  • n

    natemccurdy

    05/13/2022, 8:05 PM
    Okay, then just try that
    puppet lookup
    command on that node and see what happens. (it looks like you have the code deployed to the default locations, so it may just work)
  • u

    Ugo Bellavance

    05/13/2022, 8:05 PM
    Yes it looks like it's working
  • u

    Ugo Bellavance

    05/13/2022, 8:06 PM
    That's a lot of output!
  • u

    Ugo Bellavance

    05/13/2022, 8:07 PM
    It finds the key in the `common.yaml`:
    Copy code
    Path "/etc/puppetlabs/code/environments/production/data/common.yaml"
            Original path: "common.yaml"
            Found key: "mariadb::server::purge_conf_dir" value: true
  • l

    Lumiere

    05/13/2022, 8:07 PM
    with --explain it will be fairly verbose about where it is looking and how it's deciding
  • u

    Ugo Bellavance

    05/13/2022, 8:08 PM
    (yes I have put it there, and also in the role.
  • l

    Lumiere

    05/13/2022, 8:08 PM
    so, the bottom of that yaml, I don't know if lining the colons up is legal in yaml
  • u

    Ugo Bellavance

    05/13/2022, 8:08 PM
    What do you mean by lining the colons?
  • n

    natemccurdy

    05/13/2022, 8:09 PM
    The colons should be immediately after the key names. No spaces before the
    :
  • l

    Lumiere

    05/13/2022, 8:09 PM
    key_buffer_size                     : 256M
    to
    key_buffer_size: 256M
1...373839...428Latest