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

    natemccurdy

    11/04/2022, 10:44 PM
    yup
  • w

    William Myers

    11/04/2022, 10:44 PM
    Will I need to declare that within my puppetfile?
  • n

    natemccurdy

    11/04/2022, 10:44 PM
    Well, to clarify, I’d ignore dependencies because what I really care about is functionality. If the module works with newer versions of those modules, I ’d used it without hesitation.
  • n

    natemccurdy

    11/04/2022, 10:45 PM
    Puppetfiles and
    r10k
    don’t care about resolving dependencies.
    r10k
    doesn’t check module dependencies. It just installs exactly what you’ve specified in your Puppetfile
  • n

    natemccurdy

    11/04/2022, 10:45 PM
    Puppetfiles and
    r10k
    don’t care about resolving dependencies.
    r10k
    doesn’t check module dependencies. It just installs exactly what you’ve specified in your Puppet file
  • n

    natemccurdy

    11/04/2022, 10:45 PM
    Puppetfiles and
    r10k
    don’t care about resolving dependencies.
    r10k
    doesn’t check module dependencies. It just installs exactly what you’ve specified in your Puppetfile
  • n

    natemccurdy

    11/04/2022, 10:48 PM
    The only thing that actually checks for module dependencies and warns you about them is the
    puppet module
    command. When you’re using
    r10k
    , you’re not using the
    puppet module
    command. And generally speaking, if you have a newer version of a module than what’s specified in the dependencies of another module, that’s fine and you can probably ignore it. If you have an older version, then I’d be a bit more worried and I’d want to test functionality and consider upgrading my dependent modules.
  • n

    natemccurdy

    11/04/2022, 10:49 PM
    Module metadata is managed by humans. And humans are, more or less, in my experience, lazy creatures.
  • w

    William Myers

    11/04/2022, 11:05 PM
    What's the puppet agent command to do a debug? I'm trying to verify it's actually running logic from a manifest
  • n

    natemccurdy

    11/04/2022, 11:06 PM
    sudo puppet agent -t --debug
    will show debug output while applying the catalog. But that won’t show you what’s happening while compiling the catalog and what logic branches the compiler is taking.
  • w

    William Myers

    11/04/2022, 11:08 PM
    Ah found the command I'm after as well
  • w

    William Myers

    11/04/2022, 11:08 PM
    sudo puppet lookup account_svcansiblelocal::user_password --environment test --explain
  • w

    William Myers

    11/04/2022, 11:08 PM
    I had saved it to my wiki just incase
  • w

    William Myers

    11/04/2022, 11:21 PM
    I see the powershell output and console return with the --debug though which is nice 😃
  • w

    William Myers

    11/05/2022, 5:18 AM
    I've been trying to work with hashes to reduce some redundant code but not having much luck, getting an error that the value 'file" cannot be converted to Numeric.
  • w

    William Myers

    11/05/2022, 5:18 AM
    Here's what the Hashes I'm working with look like. I'm having no issues using $certdefaults but $cert_hash is fighting me some
  • w

    William Myers

    11/05/2022, 5:19 AM
    Copy code
    $certdefaults = {
            sourcefolder  => 'puppet:///modules/ca_trust/britanniahome',
            root_store    => 'LocalMachine',
            win_directory => 'C:\ProgramData\PackageCache',
            win_owners    => 'Administrators',
            win_filemode  => '755',
        }
    
        $certs_hash = {
            rootca       => {
                name       => 'BritanniaHome-RootCA',
                file       => 'vmadcs00_BritanniaHome-RootCA.crt',
                store      => 'Root',
                thumbprint => '960107b937ff09d2ac70238107f996e362dc140e',
            },
            subca1      => {
                name       => 'BritanniaHome-IssuingCA-01',
                file       => 'vmadcs01.ad.britanniahome.net_BritanniaHome-IssuingCA-01.crt',
                store      => 'CA',
                thumbprint => '08733f55adf7aeaed0200a185050f5337f6c5a43',
            },
        }
  • s

    Slackbot

    11/05/2022, 5:19 AM
    This message was deleted.
    w
    d
    • 3
    • 4
  • w

    William Myers

    11/05/2022, 5:53 AM
    message has been deleted
  • w

    William Myers

    11/05/2022, 6:25 AM
    I'll probably eventually make it a bit more of a dynamic module for provisioning certs and remove all of the static references, shifting stuff over to hiera.
  • m

    Massimiliano (Max)

    11/05/2022, 3:05 PM
    maybe a text snippet formatted with puppet language is more readable @William Myers Btw,
    ${cert[1][file]}
    doesn't look right. It has to be:
    ${certs_hash[$cert]['file']}
  • m

    Massimiliano (Max)

    11/05/2022, 3:38 PM
    maybe a text snippet formatted with puppet language is more readable @William Myers Btw,
    ${cert[1][file]}
    doesn't look right. It has to be:
    ${certs_hash[$cert]['file']}
    and you need to iterate using
    | $cert, $value |
  • m

    Massimiliano (Max)

    11/05/2022, 3:39 PM
    maybe a text snippet formatted with puppet language is more readable @William Myers Btw,
    ${cert[1][file]}
    doesn't look right. It has to be:
    ${certs_hash[$cert]['file']}
    and you need to iterate using
    $certs_hash.each| $cert, $value | { ...
  • m

    Massimiliano (Max)

    11/05/2022, 3:40 PM
    message has been deleted
  • s

    Slackbot

    11/05/2022, 11:38 PM
    This message was deleted.
    🆘 1
    b
    u
    • 3
    • 2
  • b

    binford2k

    11/05/2022, 11:40 PM
    Maintenance completed and all systems are operational again. 🎉
  • s

    Slackbot

    11/06/2022, 6:23 PM
    This message was deleted.
    y
    h
    • 3
    • 5
  • y

    Yorokobi

    11/06/2022, 6:26 PM
    I've tried variations with
    Copy code
    puppet_agent:
      config:
        section: agent
    or
    Copy code
    puppet_agent::config:
      section: agent
    and some other failures. The latter seems most correct except there's no array, which is what
    puppet_agent::config
    wants.
  • s

    Slackbot

    11/07/2022, 8:00 AM
    This message was deleted.
    t
    d
    s
    • 4
    • 5
  • s

    Slackbot

    11/07/2022, 8:34 AM
    This message was deleted.
    d
    t
    • 3
    • 2
1...227228229...428Latest