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

    Michael Ababio Priv

    01/21/2025, 4:41 PM
    Hi All! ❓ How do i implement Puppet CA certname naming convention? Trying to add some restriction to Puppet CA. I currently have autosign enabled. want to take it a step further and only allow auto signing on certs that end with *.example.com
    b
    v
    d
    • 4
    • 21
  • v

    Verxion

    01/21/2025, 7:34 PM
    Is there any reasonably “quick pass, not perfect but DECENT” way to identify a repo that has a puppet module?
  • v

    Verxion

    01/21/2025, 7:35 PM
    For example, can a valid module be missing the manifests folder?
  • v

    Verxion

    01/21/2025, 7:36 PM
    Or is there some better easy way to identify? I noticed a lot of modules seem to be missing metadata.json from the root, just as an example, so I can’t seem to use that as a way to determine
  • v

    Verxion

    01/21/2025, 7:37 PM
    Alternatively, is there something on the puppet server that shows the list of all modules it is aware of?
  • t

    TheMeier

    01/21/2025, 7:37 PM
    check https://forge.puppet.com/ for quality score and number of downloads
  • v

    Verxion

    01/21/2025, 7:38 PM
    Well I don’t mean worldwide, lol
  • v

    Verxion

    01/21/2025, 7:39 PM
    I’ve got a GitLab server with a large number of repos, most of which are puppet modules (or so I’m told)
  • v

    Verxion

    01/21/2025, 7:39 PM
    I’m trying to figure out if there is any good way to eliminate ones that aren’t ACTUALLY puppet modules
  • y

    Yorokobi

    01/21/2025, 7:39 PM
    Decent? Look for a
    manifests/init.pp
    file or
    manifests/
    directory with
    .pp
    files in it.
  • v

    Verxion

    01/21/2025, 7:40 PM
    Ok, thanks - that’s what I proposed above.
  • l

    Lumiere

    01/21/2025, 7:40 PM
    metadata.json or Modulefile
  • v

    Verxion

    01/21/2025, 7:40 PM
    We have many with missing metadata.json
  • t

    TheMeier

    01/21/2025, 7:40 PM
    gee thats a low bar. nowadays I do expect unit-tests and acceptance test integrated in git-ci
  • v

    Verxion

    01/21/2025, 7:41 PM
    Yeah, I’m being told this is a decade worth of puppet modules
  • y

    Yorokobi

    01/21/2025, 7:41 PM
    /etc/puppetlabs/code/environments/<env>/modules
    on the Puppet server but that will (or should) include modules from the Forge.
  • v

    Verxion

    01/21/2025, 7:41 PM
    Many from before good standards were put in place
  • l

    Lumiere

    01/21/2025, 7:41 PM
    the manifests dir is most likely, but metadata.json and Modulefile are both also good things to check for
  • v

    Verxion

    01/21/2025, 7:41 PM
    Ok
  • l

    Lumiere

    01/21/2025, 7:41 PM
    Modulefile is the puppet2 version of the metadata.json
  • v

    Verxion

    01/21/2025, 7:41 PM
    Thanks everyone, really appreciate it
  • t

    TheMeier

    01/21/2025, 7:41 PM
    @Verxion RUN 😂
  • v

    Verxion

    01/21/2025, 7:42 PM
    Lol
  • t

    TheMeier

    01/21/2025, 7:45 PM
    jk. but seriously you should consider demanding/enforcing tests for modules. IAC is software development and demands the same quality gates as everything else. after all your orchestrator (puppet) is root everywhere
  • v

    Verxion

    01/21/2025, 7:46 PM
    Yeah, at work we are doing a major version upgrade of puppet
  • v

    Verxion

    01/21/2025, 7:46 PM
    …which is necessitating the modules be updated/fixed
  • v

    Verxion

    01/21/2025, 7:46 PM
    Short term, I suspect they are going to do minimum for now
  • v

    Verxion

    01/21/2025, 7:46 PM
    Hopefully I can try to negotiate to bring them up to a certain standard
  • b

    bastelfreak

    01/21/2025, 7:47 PM
    checking what's actually deployed on the puppetserver make more sense
  • v

    Verxion

    01/21/2025, 7:47 PM
    Well sure
1...424425426427428Latest