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

    hbui

    05/19/2022, 6:46 PM
    I think you'd need to give us a mock up of the code you want to write for other advice
  • l

    Les Shiner

    05/19/2022, 8:36 PM
    There has to be a better way for managing thousands of agents in a Puppet Bolt inventory file than manually entering them in under target: right?
  • v

    vchepkov

    05/19/2022, 8:38 PM
    puppetdb ?
  • v

    vchepkov

    05/19/2022, 8:39 PM
    Copy code
    groups:
      - name: linux
        targets:
          - _plugin: puppetdb
            query: 'inventory[certname] { facts.kernel = "Linux" }'
      - name: windows
        targets:
          - _plugin: puppetdb
            query: 'inventory[certname] { facts.kernel = "windows" }'
    πŸ‘ 1
  • v

    vchepkov

    05/19/2022, 8:40 PM
    question is better suited for #C7GP57T50
  • l

    Les Shiner

    05/19/2022, 8:40 PM
    ooooo thank you @vchepkov!
    πŸ‘ 1
  • n

    natemccurdy

    05/19/2022, 8:42 PM
    Generally speaking, yes.. the better way is with inventory plugins.
  • d

    Dr Bunsen Honeydew

    05/19/2022, 8:45 PM
    kermit typing πŸ§‘β€πŸ«PE Console is about to start up in #CFD8Z9A4T
  • b

    bastelfreak

    05/20/2022, 6:45 AM
    anybody here knows something about the pdk/litmus test setup in Puppetlabs modules? https://github.com/puppetlabs/puppetlabs-lvm/pull/270 I'm not sure how to enable the latest pdk-templates/ci-setup
  • b

    bastelfreak

    05/20/2022, 6:45 AM
    anybody here knows something about the pdk/litmus test setup in Puppetlabs modules? https://github.com/puppetlabs/puppetlabs-lvm/pull/270 I'm not sure how to enable the latest pdk-templates/ci-setup
  • s

    Slackbot

    05/20/2022, 9:07 AM
    This message was deleted.
    b
    • 2
    • 1
  • j

    Jason LoCascio

    05/20/2022, 10:46 AM
    Where does the "message" in the .yaml files get shown, please ? I can't see it when papply is run, and looking in the puppet logfiles on the puppet server is a dead end.
  • j

    Jason LoCascio

    05/20/2022, 10:47 AM
    Where does the "message" in the .yaml files get shown, please ? I can't see it when papply is run, and looking in the puppet logfiles on the puppet server is a dead end.
  • k

    Krizz

    05/20/2022, 11:23 AM
    What is the best way to start the puppet-agent service (as windows-service) permanently in noop-mode on Windows? If you set noop = true in puppet.conf, you can't start "puppet agent -t" without --no-noop to make changes
  • k

    Krizz

    05/20/2022, 11:34 AM
    What is the best way to start the puppet-agent service (as windows-service) permanently in noop-mode on Windows? If you set noop = true in puppet.conf, you can't start "puppet agent -t" without --no-noop to make changes
  • c

    Craig Gumbley

    05/20/2022, 12:38 PM
    πŸ‘‹ Here’s this weeks Content and Tooling team round up! https://pup.pt/cat/blog/updates/2022-05-20-status-update/
    πŸ‘πŸ» 1
  • s

    Slackbot

    05/20/2022, 1:14 PM
    This message was deleted.
    b
    r
    w
    • 4
    • 6
  • s

    ssaini

    05/20/2022, 1:27 PM
    Hi all, On a range different hosts we get a variation in the speed of puppet runs. Example: Quick (expected) Run on host1
    Copy code
    Notice: Applied catalog in 3.34 seconds
    Application:
             Run mode: agent
       Initial environment: production
       Converged environment: saini_v2
    Changes:
    Events:
    Resources:
                Total: 353
    Time:
           Filebucket: 0.00
            File line: 0.00
             Schedule: 0.00
          Concat file: 0.00
          Ini setting: 0.00
                Group: 0.00
                Mount: 0.00
                 User: 0.00
       Concat fragment: 0.00
               Anchor: 0.00
              Yumrepo: 0.00
       Ssh authorized key: 0.00
       Postgresql conf: 0.01
       Kernel parameter: 0.01
       Postgresql conn validator: 0.01
                 Cron: 0.01
              Package: 0.09
              Service: 0.13
       Convert catalog: 0.29
       Node retrieval: 0.44
         Startup time: 0.54
                 File: 0.83
                 Exec: 0.96
             Last run: 1653048960
       Fact generation: 3.01
       Transaction evaluation: 3.30
       Catalog application: 3.34
          Plugin sync: 30.85
       Config retrieval: 7.95
                Total: 46.95
    Version:
               Config: 1653048949
               Puppet: 6.26.0
    
    real	1m17.029s
    user	0m8.951s
    sys	0m1.359s
    a Slow run (same host - host1)
    Copy code
    Notice: Applied catalog in 61.24 seconds
    Application:
             Run mode: agent
       Initial environment: production
       Converged environment: saini_v2
    Changes:
    Events:
    Resources:
                Total: 353
    Time:
           Filebucket: 0.00
            File line: 0.00
             Schedule: 0.00
          Concat file: 0.00
          Ini setting: 0.00
       Concat fragment: 0.00
                Group: 0.00
               Anchor: 0.00
                Mount: 0.00
              Yumrepo: 0.00
       Ssh authorized key: 0.00
                 User: 0.00
       Postgresql conf: 0.01
       Kernel parameter: 0.01
       Postgresql conn validator: 0.02
                 Cron: 0.03
              Package: 0.09
              Service: 0.13
       Convert catalog: 0.32
         Startup time: 0.61
                 Exec: 1.08
             Last run: 1653050828
       Fact generation: 3.19
       Config retrieval: 47.89
                 File: 58.43
       Transaction evaluation: 61.13
       Catalog application: 61.24
          Plugin sync: 80.46
                Total: 211.22
    Version:
               Config: 1653050759
               Puppet: 6.26.0
    
    real	4m4.999s
    user	0m8.959s
    sys	0m1.384s
    The slow run timings range widely from 60 to 500 seconds on various hosts. These are the areas where timings are taking the longest, can I get some pointers on where these areas I should look at to debug further?
    Copy code
    Config retrieval: 47.89
    File: 58.43
    Transaction evaluation: 61.13
    Catalog application: 61.24
    Plugin sync: 80.46
  • s

    Slackbot

    05/20/2022, 1:52 PM
    This message was deleted.
    s
    h
    • 3
    • 6
  • r

    ripienaar

    05/20/2022, 3:37 PM
    I don’t often cross post things here but some of yous might find this handy, its a little tool to build CLIs that wrap shell scripts, long commands, difficult to remember or discover commands into a nice single UI. It’s super early days, keen to hear feedback. There’s a video introducing it linked on the readme https://github.com/choria-io/appbuilder#readme
    πŸ’― 1
    🦜 1
    πŸ†’ 4
  • s

    Slackbot

    05/20/2022, 4:12 PM
    This message was deleted.
    b
    • 2
    • 1
  • s

    Slackbot

    05/20/2022, 4:17 PM
    This message was deleted.
    d
    b
    +2
    • 5
    • 9
  • c

    CryptoSaiyan

    05/20/2022, 4:17 PM
    I am new in puppet but I was wondering what does it mean by serverless or masterless setup? Having a hard time finding documentation pertaining to it.
  • d

    David Sandilands

    05/20/2022, 4:18 PM
    https://puppet.com/docs/puppet/6/glossary.html#serverless Theres also an old document in best practice to discuss when its used https://github.com/puppetlabs/best-practices/blob/master/when-to-use-serverless.md
  • s

    Slackbot

    05/20/2022, 10:44 PM
    This message was deleted.
    b
    l
    +3
    • 6
    • 54
  • l

    Lumiere

    05/20/2022, 10:46 PM
    look into puppet lookup --explain
  • h

    hbui

    05/20/2022, 10:54 PM
    in module hiera is for module default data not site specific data and will happen automatically as part of parameter lookups
  • h

    hbui

    05/20/2022, 10:55 PM
    in module hiera is for module default data not site specific data and lookups there will happen automatically as part of parameter lookups if nothing was found in the hierarchy for the environment
  • y

    Yehuda Katz

    05/22/2022, 3:18 AM
    I understand about the module layer - the problem with it is that it requires forking a module to customize it. It would be great if we could replicate the entire module layer in a separate repository.
  • y

    Yehuda Katz

    05/22/2022, 4:43 PM
    Mainly to force keeping the yaml files organized
1...474849...428Latest