https://www.puppet.com/community logo
Join Slack
Powered by
# puppet-enterprise
  • v

    vchepkov

    04/03/2023, 8:03 PM
    you would have to make specific file for each companyid/datacenter combination, that's why I think template would be better
  • v

    vchepkov

    04/03/2023, 8:04 PM
    and it would go under templates/ folder
  • v

    vchepkov

    04/03/2023, 8:05 PM
    https://www.puppet.com/blog/puppet-directory
  • v

    vchepkov

    04/03/2023, 8:07 PM
    puppet would never look for files under manifests/ and vice versa
  • k

    Kenny Kant

    04/03/2023, 8:14 PM
    I appreciate the response... so in my head.. I want to have multiple base.pp profiles one for Linux and one for Windows ..etc . I know there are better ways to do this all from a single base.pp but in my head I would organize that profile along with its corresponding linux specific config files within its own sub-class (probably wrong term) ... we will have lots of linux specific profiles as ..etc in the future and I was just trying to plan ahead with organization or things...
    Copy code
    profile::linux::base
    made sense to me.. and maybe down the road:
    Copy code
    profile::windows::base
    all profiles for linux go into:
    Copy code
    profile::linux
    ^^ these are subclasses yes? they would go into the
    Copy code
    $env/site-modules/profile/manifests
    ?
  • v

    vchepkov

    04/03/2023, 8:15 PM
    correct, but each
    ::
    there would represent additional directory level
  • v

    vchepkov

    04/03/2023, 8:16 PM
    so
    profile::linux
    class is in profile/manifests/linux.pp
    profile::linux::base
    class in profile/manifests/linux/base.pp
    ✅ 1
  • v

    vchepkov

    04/03/2023, 8:16 PM
    and so on
  • v

    vchepkov

    04/03/2023, 8:18 PM
    and that is quite acceptable structure you can have class
    profile::base
    for example (profile/manifests/base.pp)
    Copy code
    case $facts['kernel'] {
          'Linux'   : { contain profile::linux::base }
          'Windows' : { contain profile::windows::base }
          default   : { fail("${facts['kernel']} is not supported") }
        }
  • v

    vchepkov

    04/03/2023, 8:21 PM
    but files that you will deploy on those platforms should go to profile/files/linux/ and profiles/files/windows/
  • k

    Kenny Kant

    04/03/2023, 8:21 PM
    ok.. that is the disconenct
  • k

    Kenny Kant

    04/03/2023, 8:21 PM
    hmmm
  • k

    Kenny Kant

    04/03/2023, 8:22 PM
    mind blown
  • k

    Kenny Kant

    04/03/2023, 8:22 PM
    heheh
  • v

    vchepkov

    04/03/2023, 8:23 PM
    well, if you want to have all platform files 'together' you can create separate classes for windows and linux and have it this way
  • v

    vchepkov

    04/03/2023, 8:24 PM
    Copy code
    case $facts['kernel'] {
          'Linux'   : { contain linux::profile::base }
          'Windows' : { contain windows::profile::base }
          default   : { fail("${facts['kernel']} is not supported") }
        }
  • k

    Kenny Kant

    04/03/2023, 8:24 PM
    What is not intuitive with that... is in my head
    Copy code
    profile::linux::base
    the "linux" is just as much a module as "profile" and would have its own relative file dir ?
  • v

    vchepkov

    04/03/2023, 8:25 PM
    only first component is a module
  • k

    Kenny Kant

    04/03/2023, 8:25 PM
    ah ok..
  • k

    Kenny Kant

    04/03/2023, 8:26 PM
    then why would "Linux" have a manifests dir? that is very module'y 🙂
  • v

    vchepkov

    04/03/2023, 8:26 PM
    it only does in your environment 😉
  • v

    vchepkov

    04/03/2023, 8:27 PM
    but if you call your module linux, you will have linux/manifests/
  • v

    vchepkov

    04/03/2023, 8:28 PM
    and class linux will be in linux/manifests/init.pp
  • k

    Kenny Kant

    04/03/2023, 8:30 PM
    ok I think I follow 😛
    👍 1
  • k

    Kenny Kant

    04/03/2023, 8:31 PM
    I so appreciate you helping me process this
  • k

    Kenny Kant

    04/03/2023, 8:31 PM
    There will be a day when it all clicks in my head... 😄
  • k

    Kenny Kant

    04/03/2023, 8:31 PM
    There will be a day when it all clicks in my head... 😄
  • v

    vchepkov

    04/03/2023, 8:32 PM
    yep. it's pretty logical
  • h

    hbui

    04/04/2023, 3:24 AM
    I've found that puppet is a huge exercise in taxonomy and the pain comes from we don't always think about things in a strictly first filter/second filter way (e.g. first filter might be os, second filter might be web server but sometimes we flip them the other way). mapping those buckets onto puppet code is always a treat and everyone organizes things slightly differently. Eventually it does click though.
    👍 1
  • s

    Stevan Svilokos

    04/04/2023, 8:52 AM
    hello all, looking at the supported OS page for server installation and rocky linux, I only see Rocky 8 (EL8)... however Rocky 9 (EL9) agents are supported. Is there any plan for EL 9 support any time soon maybe?
1...434445...73Latest