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

    Shawn D'Souza

    03/20/2024, 2:00 PM
    will it still require
    /etc/puppetlabs/code/environments/test
    ?
  • y

    Yorokobi

    03/20/2024, 2:01 PM
    $codedir is
    /etc/puppetlabs/code/
    so yes, if you want to use an environment that isn't production, you'll need to create the test directory (cp -a production test)
  • l

    Lumiere

    03/20/2024, 2:01 PM
    so, with environments, the way it works is that /etc/puppetlabs/code/environments is a base directory
  • l

    Lumiere

    03/20/2024, 2:01 PM
    the environment name is joined to it
  • c

    CVQuesty

    03/20/2024, 2:02 PM
    Did you add a “test” branch to your control_repo?
  • s

    Shawn D'Souza

    03/20/2024, 2:02 PM
    is it possible to update the base directory ?
  • c

    CVQuesty

    03/20/2024, 2:02 PM
    (if you’re doing 1:1, that is)
  • y

    Yorokobi

    03/20/2024, 2:02 PM
    $codedir/environments
    is a base directory, individual environments are subdirectories of that.
  • l

    Lumiere

    03/20/2024, 2:02 PM
    to what?
  • y

    Yorokobi

    03/20/2024, 2:02 PM
    I would leave it as-is
  • y

    Yorokobi

    03/20/2024, 2:03 PM
    If you're not using r10k and git repos to manage environments:
    cp -a /etc/puppetlabs/code/environments/production /etc/puppetlabs/code/environments/test
    and try again
  • c

    CVQuesty

    03/20/2024, 2:08 PM
    And if you are (and you should) follow this: https://www.puppet.com/docs/pe/2023.6/control_repo.html
  • l

    Lumiere

    03/20/2024, 2:08 PM
    control repo + r10k + roles and profiles are all highly recommended
  • t

    TheMeier

    03/20/2024, 2:11 PM
    g10k++
  • d

    Dr Bunsen Honeydew

    03/20/2024, 2:11 PM
    g10k +1! (Karma: 1)
  • c

    CVQuesty

    03/20/2024, 2:14 PM
    10,000 killer goobers just doesn’t have the same ring
    t
    • 2
    • 2
  • r

    rnelson0

    03/20/2024, 2:14 PM
    There's no issue doing something different, but if you are new to puppet there's some benefit to sticking with the defaults here as, unlike some vendors, puppet has pretty good defaults.
  • c

    CVQuesty

    03/20/2024, 2:15 PM
    COMPLY COMPLY COMPLY (not the product, the ethos)
    r
    • 2
    • 1
  • r

    rnelson0

    03/20/2024, 2:15 PM
    I would probably take this line out though, as it will effectively look in the production branch regardless of what branch you specify
    default_manifest = $codedir/environments/production/manifests
  • r

    rnelson0

    03/20/2024, 2:16 PM
    the other stanzas seem to either repeat defaults or extend them, no harm in them.
  • s

    Shawn D'Souza

    03/20/2024, 2:21 PM
    Appreciate all the responses … Saw there was a option to override so thought of giving it a try. The reason for it was we clone our modules and classes in /opt directory. So didn’t want to manage the site.pp separately in a different folder so that everything can be managed in a single repo. Anyways thanks folks … will try things out 👍
  • y

    Yury Bushmelev

    03/20/2024, 2:26 PM
    speaking of
    fpm
    , there is
    nfpm
    also, which is
    fpm
    re-written in Go: https://github.com/goreleaser/nfpm
  • c

    CVQuesty

    03/20/2024, 2:27 PM
    Oh? Now I have to look
  • r

    rnelson0

    03/20/2024, 2:33 PM
    @Shawn D'Souza you may be interested in placing /environment.conf in your controlrepo, that allows each branch to override some things from the branch, rather than the puppetserver config. See https://www.puppet.com/docs/puppet/latest/config_file_environment.html
  • c

    CVQuesty

    03/20/2024, 2:33 PM
    I try like heck to leve my puppet.conf alone, and IF I have to change it, I change it with the module.
  • r

    rnelson0

    03/20/2024, 2:34 PM
    yeah, client side environment is about the only thing we touch beyond server/ca names since we have regional ones
  • r

    rnelson0

    03/20/2024, 2:35 PM
    which even if we just used the default 'puppet' i'd still set it because sometimes people change the search domains, or systemd does it for them lol
  • r

    redat

    03/20/2024, 2:55 PM
    Hi everyone ! I have a quite complex application to configure for which I'm creating a Puppet module. I will have to require that the user pass an array of
    bucket
    , which currently is a simple directory.. I wanted to know if it's possible to somehow ""type"" a small bucket object to use in an array ? Currently :
    Copy code
    [
        {"name" => "test", "bucket" => "test"}
    ]
    And I would like something like this :
    Copy code
    [
        Bucket {'test': bucket => "test" }
    ]
    Thanks in advance for any help !
    l
    • 2
    • 3
  • c

    Charles Williams

    03/20/2024, 2:57 PM
    hey all. just did a fresh puppet8 install in bookworm and it just will NOT start.
  • c

    Charles Williams

    03/20/2024, 2:57 PM
    anything I should be aware of?
    r
    • 2
    • 1
1...412413414...428Latest