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

    Kenny Kant

    02/27/2023, 11:20 PM
    always learning thank you for the info !
    👍 1
  • v

    vchepkov

    02/27/2023, 11:21 PM
    https://www.puppet.com/blog/puppet-directory
    👍 1
  • k

    Kenny Kant

    02/27/2023, 11:28 PM
    I dont recall exactly how we started using
    site-modules
    for our roles and profiles.. that is where our PE engineer started putting things during our jump start... I understood
    modules
    to be a holy place where only puppet forge is allowed to use.
  • v

    vchepkov

    02/27/2023, 11:29 PM
    presumably, PE engineer added code to your control repository. we don't do that
  • k

    Kenny Kant

    02/27/2023, 11:29 PM
    right started out with standard control-repo
  • v

    vchepkov

    02/27/2023, 11:30 PM
    control repo should have 4 files in it 🙂
  • v

    vchepkov

    02/27/2023, 11:30 PM
    but it's a matter of preference
  • k

    Kenny Kant

    02/27/2023, 11:31 PM
    oh just for configuration files.. and then everything else is a seperate repo of some sort referenced by the control-repo configuration
  • v

    vchepkov

    02/27/2023, 11:32 PM
    correct
  • v

    vchepkov

    02/27/2023, 11:32 PM
    Puppetfile adds other components in place
  • k

    Kenny Kant

    02/27/2023, 11:33 PM
    hmmm
  • v

    vchepkov

    02/27/2023, 11:33 PM
    Everything else is a module, even hiera
    Copy code
    mod 'data',
      :git    => '<mailto:git@gitlab.corp.com|git@gitlab.corp.com>:it/puppet/puppet-hiera.git',
      :branch => :control_branch,
      :default_branch => 'development',
      :install_path   => '.'
  • v

    vchepkov

    02/27/2023, 11:34 PM
    Copy code
    mod 'corp',
      :git    => '<mailto:git@gitlab.corp.com|git@gitlab.corp.com>:it/puppet/puppet-corp.git',
      :branch => :control_branch,
      :default_branch => 'development'
  • v

    vchepkov

    02/27/2023, 11:34 PM
    instead of site - corp module
  • v

    vchepkov

    02/27/2023, 11:34 PM
    so
    corp::profile::linux
  • v

    vchepkov

    02/27/2023, 11:35 PM
    each team can have their own
    profiles
    and not fight when to merge in one control epository
  • k

    Kenny Kant

    02/27/2023, 11:36 PM
    ok I follow... albeit mind a little blown.
    😎 1
  • k

    Kenny Kant

    02/27/2023, 11:38 PM
    So many ways of doing things.. I appreciate all of this...
    👍 1
  • v

    vchepkov

    02/27/2023, 11:39 PM
    wait till you need to have 3 control repositories 🙂 because folks use different modules
  • k

    Kenny Kant

    02/27/2023, 11:39 PM
    🤯
  • k

    Kenny Kant

    02/27/2023, 11:41 PM
    Does any of your examples above require r10k vs code manager use?
  • v

    vchepkov

    02/27/2023, 11:41 PM
    code manager
  • v

    vchepkov

    02/27/2023, 11:41 PM
    it uses r10k in the background
  • v

    vchepkov

    02/27/2023, 11:42 PM
    let me find my hiera, hold on
  • v

    vchepkov

    02/27/2023, 11:43 PM
    Here
    Copy code
    puppet_enterprise::master::code_manager::invalid_branches: correct
    puppet_enterprise::master::code_manager::private_key: /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa
    puppet_enterprise::master::code_manager::sources:
      unix:
        remote: "<mailto:git@gitlab.corp.com|git@gitlab.corp.com>:it/puppet/puppet-control.git"
      windows:
        remote: "<mailto:git@gitlab.corp.com|git@gitlab.corp.com>:it/puppet/puppet-win.git"
        prefix: true
      default:
        remote: "<mailto:git@gitlab.corp.com|git@gitlab.corp.com>:it/puppet/puppet-pe_bootstrap.git"
        prefix: true
  • v

    vchepkov

    02/27/2023, 11:44 PM
    branch 'development' in puppet-win repository will create windows_development environment
  • k

    Kenny Kant

    02/27/2023, 11:46 PM
    Thank you for sharing...
    💯 1
  • s

    Slackbot

    02/28/2023, 7:19 AM
    This message was deleted.
    m
    • 2
    • 2
  • k

    Kenny Kant

    02/28/2023, 6:26 PM
    Does Puppet Enterprise support any type of official rollback feature? I know I can roll back my code in git but that does not mean my agent will be put back to the correct desired state prior to the change. If not I guess the only way would be to write some type of rollback class... in puppet to undue the changes. I was hoping PE might have some magic here and automatically build something like this
  • v

    vchepkov

    02/28/2023, 6:35 PM
    nope, no magic, only moving forward
    👍 1
1...394041...73Latest