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

    Allahshukur Ahmadzada

    04/21/2022, 3:49 PM
    okay thanks, can you recommend any module as referance from github or forge? I would like to follow good example
  • s

    Slackbot

    04/21/2022, 3:51 PM
    This message was deleted.
    a
    • 2
    • 1
  • s

    Slackbot

    04/21/2022, 3:54 PM
    This message was deleted.
    r
    c
    b
    • 4
    • 22
  • m

    Matt Zagrabelny

    04/21/2022, 6:27 PM
    Hello,
  • m

    Matt Zagrabelny

    04/21/2022, 6:27 PM
    I've got a module (on disk) in my modulepath, but it isn't showing up via "puppet module list".
  • m

    Matt Zagrabelny

    04/21/2022, 6:28 PM
    Any ideas for finding out why "puppet module list" doesn't see it?
  • m

    Matt Zagrabelny

    04/21/2022, 6:28 PM
    I'm running puppet 5.5.
  • l

    Lumiere

    04/21/2022, 6:32 PM
    does it have a metadata.json?
  • n

    natemccurdy

    04/21/2022, 6:32 PM
    Do other modules in your modulepath show up via
    puppet module list
    ?
  • n

    natemccurdy

    04/21/2022, 6:33 PM
    Also, please share some output with us, or an error message or lack thereof, so we can better understand what exactly you’re seeing. And what is your modulepath, and how do you know you have a module in it? What did you do to verify that?
  • n

    natemccurdy

    04/21/2022, 6:33 PM
    Also, please share some output with us, or an error message or lack thereof, so we can better understand what exactly you’re seeing. And what is your modulepath, and how do you know you have a module in it? What did you do to verify that?
  • m

    Matt Zagrabelny

    04/21/2022, 6:35 PM
    root@puppet-5-5:~# puppet config print modulepath /etc/puppet/code/environments/production/modules/etc/puppet/code/environments/production/profiles/etc/puppet/code/environments/production/roles/etc/puppet/modules/etc/puppet/profiles/etc/puppet/roles/usr/share/puppet/modules
  • m

    Matt Zagrabelny

    04/21/2022, 6:36 PM
    the last directory in the modulepath is the one of concern...
  • m

    Matt Zagrabelny

    04/21/2022, 6:36 PM
    root@puppet-5-5:~# ls -1 /usr/share/puppet/modules apt concat hiera_mysql hiera-mysql2 mysql postgresql staging stdlib translate vcsrepo
  • m

    Matt Zagrabelny

    04/21/2022, 6:37 PM
    The hiera-mysql2 does not show up in "puppet module list":
  • n

    natemccurdy

    04/21/2022, 6:37 PM
    That’s an invalid name for a Puppet module. It can’t have
    -
    in it.
    💯 1
  • m

    Matt Zagrabelny

    04/21/2022, 6:38 PM
    ah!
  • m

    Matt Zagrabelny

    04/21/2022, 6:38 PM
    top notch, nate!
  • m

    Matt Zagrabelny

    04/21/2022, 6:38 PM
    thanks for the hint. I've spent a lot of time trying to figure it out.
  • b

    bastelfreak

    04/21/2022, 6:39 PM
    usually you've $owner-$modulename
  • n

    natemccurdy

    04/21/2022, 6:39 PM
    For reference: https://puppet.com/docs/puppet/7/lang_reserved.html#module-names
  • b

    bastelfreak

    04/21/2022, 6:40 PM
    and $modulename often contains _, but - isn't allowed, because that's already used to distinguish $owner and $modulename
  • m

    Matt Zagrabelny

    04/21/2022, 6:40 PM
    what is $owener?
  • m

    Matt Zagrabelny

    04/21/2022, 6:40 PM
    $owner
  • b

    bastelfreak

    04/21/2022, 6:41 PM
    the person that created a module
  • m

    Matt Zagrabelny

    04/21/2022, 6:43 PM
    Sure. Got it. Thank you!
  • n

    natemccurdy

    04/21/2022, 6:43 PM
    The module name (as referenced in
    metadata.json
    ) will typically contain the author name and the module name (e.g.
    puppetlabs-stdlib
    ). But on disk, the folder name must not have the author name… it can only be the module name according to the rules I linked above.
  • d

    Dr Bunsen Honeydew

    04/21/2022, 6:43 PM
    See the
    puppetlabs-stdlib
    module at https://forge.puppet.com/puppetlabs/stdlib?src=slack&channel=puppet
  • s

    Slackbot

    04/21/2022, 7:34 PM
    This message was deleted.
    b
    n
    • 3
    • 3
  • d

    Dr Bunsen Honeydew

    04/21/2022, 8:45 PM
    kermit typing 🧑‍🏫PE Console is about to start up in #CFD8Z9A4T
1...567...428Latest