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

    Anders

    08/16/2022, 1:43 PM
    I saw there there is a post there about it. Sorry for missing it, or that was more packing generally and not this.
  • c

    Corporate Gadfly

    08/16/2022, 1:54 PM
    message has been deleted
  • s

    Slackbot

    08/16/2022, 2:48 PM
    This message was deleted.
    👍 1
    y
    j
    +3
    • 6
    • 16
  • j

    Joel Wilson

    08/16/2022, 3:01 PM
    Bad cert, admins.
  • d

    Dr Bunsen Honeydew

    08/16/2022, 4:45 PM
    businessparrot 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • l

    Les Shiner

    08/16/2022, 5:00 PM
    I have to be doing something stupid. Created 1 module, declared it in my site.pp and it worked. created another module, declared that in my site.pp and it runs, but everytime it runs on my agent it throws an error
  • l

    Les Shiner

    08/16/2022, 5:00 PM
    Copy code
    Could not find declared class mc_num::mc_number
  • l

    Les Shiner

    08/16/2022, 5:00 PM
    Error 500 on Server
  • l

    Les Shiner

    08/16/2022, 5:01 PM
    while evaluating Resource Statement
  • y

    Yorokobi

    08/16/2022, 5:01 PM
    include <modulename>
    instead of
    class {}
  • l

    Lumiere

    08/16/2022, 5:01 PM
    is the mc_num module in your modulepath/environmentpath?
  • y

    Yorokobi

    08/16/2022, 5:01 PM
    include <modulename>
    instead of
    class {}
  • l

    Lumiere

    08/16/2022, 5:01 PM
    and yea, if you're not setting any variables on a class being called use include
  • l

    Lumiere

    08/16/2022, 5:02 PM
    class can only be called once, include can be called repeatedly without duplicating resources
  • l

    Les Shiner

    08/16/2022, 5:02 PM
    wait, explain include please
  • l

    Lumiere

    08/16/2022, 5:02 PM
    if mc_num exists, is there an mc_number.pp in the manifest directory
  • l

    Les Shiner

    08/16/2022, 5:02 PM
    and i'm checking my path
  • l

    Les Shiner

    08/16/2022, 5:02 PM
    there isn't an mc_number.pp
  • l

    Lumiere

    08/16/2022, 5:02 PM
    include is a repeatable alias to calling a class resource with no parameters
  • l

    Lumiere

    08/16/2022, 5:03 PM
    so the error is there is no mc_number class in mc_num
  • l

    Les Shiner

    08/16/2022, 5:03 PM
    so basically no .pp file
  • l

    Lumiere

    08/16/2022, 5:04 PM
    if you want to set an mc_number variable to mc_num that would be
    class { 'mc_num': mc_number => 3 }
  • d

    Dr Bunsen Honeydew

    08/16/2022, 5:04 PM
    See the
    puppet-yum
    module at https://forge.puppet.com/puppet/yum?src=slack&amp;channel=puppet
  • b

    Brian Schonecker

    08/16/2022, 5:04 PM
    I'm trying to manage YUM repositories (specifically, EPEL for RHEL7) and am using Voxpupuli Puppet-yum module but I'm having trouble figuring out how to get the EPEL7 GPG key installed by the module. Obviously, the proper gpgkey is defined here but the gpg key at /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 isn't getting copied/installed. I've tried this bit of code:
    # These GPG keys will be installed
    yum:gpgkeys '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7': ensure: present but still, no gpg key installed. Can someone give me a pointer or two as to how to get the module to install the appropriate GPG key for EPEL?
  • l

    Lumiere

    08/16/2022, 5:04 PM
    or you need to create that class
  • l

    Les Shiner

    08/16/2022, 5:04 PM
    wonderful, thank you @Lumiere and @Yorokobi
  • l

    Lumiere

    08/16/2022, 5:04 PM
    can you ask in #C0W1Y5VL0for that one @Brian Schonecker
  • b

    Brian Schonecker

    08/16/2022, 5:07 PM
    Done
  • b

    Brian Schonecker

    08/16/2022, 5:07 PM
    message has been deleted
1...131132133...428Latest