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

    Greg Bristol

    06/30/2022, 11:09 PM
    are there any plans to have RHEL 9 agent support on ppc64le (POWER) architectures?
  • s

    Slackbot

    07/01/2022, 12:03 PM
    This message was deleted.
    w
    a
    d
    • 4
    • 5
  • s

    Slackbot

    07/01/2022, 12:19 PM
    This message was deleted.
    y
    d
    +2
    • 5
    • 14
  • w

    whatsaranjit

    07/01/2022, 12:21 PM
    Use the concat module to merge multiple sources into one file.
  • v

    vchepkov

    07/01/2022, 1:01 PM
    no. it will trigger that refreshonly
  • j

    Joel Wilson

    07/01/2022, 2:13 PM
    Couple
    puppet.conf
    questions: 1. Are the
    [master]
    and
    [server]
    sections synonymous? I just discovered that mine have
    [master]
    sections, but the documentation calls it
    [server]
    , but mine still work. I’m wondering when it just breaks. I don’t recall getting deprecation notices on this. 2. If there are duplicate sections with different parameters in them, will they get merged? I’ve discovered some concat::fragment overlap in my company’s management of this file and plan to switch to using inifile, but I want to understand how to organize my repair plan.
  • s

    Slackbot

    07/01/2022, 2:53 PM
    This message was deleted.
    j
    • 2
    • 1
  • v

    vchepkov

    07/01/2022, 2:55 PM
    they are probably aliases for now
  • d

    drobinson

    07/01/2022, 3:36 PM
    is there an rss feed for puppet product announcements or is google groups the primary place to watch?
  • v

    vchepkov

    07/01/2022, 3:39 PM
    I use https://puppet.com/blog/rss.xml, but it's not very active
  • v

    vchepkov

    07/01/2022, 3:39 PM
    mail lists are used for updates
    👍 1
  • s

    Slackbot

    07/01/2022, 3:44 PM
    This message was deleted.
    h
    z
    • 3
    • 2
  • z

    ziggy

    07/01/2022, 3:47 PM
    Hello all. Trying to figure this one out. I know it's possible, but can't figure out how to do it. In hiera I have something like:
    Copy code
    topics:
      topic1:
        modules:
          - module1
          - module2
          - module3
      topic2:
    in the puppet profile, I am looping through topics:
    Copy code
    topics = lookup('topics')
    $topics.each |$topic, $values| {
    and then passing values to a file resource using an epp template. In the template I am doing:
    Copy code
    <% if 'modules' in $values { -%>
    foo.modules:<% $values.get('modules').then |$module| { -%> 
      <% $module.each |$mod| { %>
      - module: <%= $mod -%>
    This lists each module like so:
    Copy code
    foo.modules:
    - module: module1
    - module: module2
    - module: module3
    Everything works fine. I am wanting to now do something like this in hiera:
    Copy code
    topics:
      topic1:
        modules:
          module1:
            foo.enabled: true
            bar.enabled: false
          module2:
          module3:
      topic2:
       modules:
         - module1
         - module2
         - module3
    Notice there are still arrays for modules, but some have.. sub keys. I want to loop through the modules such that, if there are sub keys, they will be added via the epp.
    Copy code
    - module: module1
      foo.enabled: true
      bar.enabled: false
    - module: module2
    - module: module3
    Is this possible?
  • z

    ziggy

    07/01/2022, 3:48 PM
    Hello all. Trying to figure this one out. I know it's possible, but can't figure out how to do it. In hiera I have something like:
    Copy code
    topics:
      topic1:
        modules:
          - module1
          - module2
          - module3
      topic2:
    in the puppet profile, I am looping through topics:
    Copy code
    topics = lookup('topics')
    $topics.each |$topic, $values| {
    and then passing values to a file resource using an epp template. In the template I am doing:
    Copy code
    <% if 'modules' in $values { -%>
    foo.modules:<% $values.get('modules').then |$module| { -%> 
      <% $module.each |$mod| { %>
      - module: <%= $mod -%>
    This lists each module like so:
    Copy code
    foo.modules:
    - module: module1
    - module: module2
    - module: module3
    Everything works fine. I am wanting to now do something like this in hiera:
    Copy code
    topics:
      topic1:
        modules:
          module1:
            foo.enabled: true
            bar.enabled: false
          module2:
          module3:
      topic2:
       modules:
         - module1
         - module2
         - module3
    Notice there are still arrays for modules, but some have.. sub keys. I want to loop through the modules such that, if there are sub keys, they will be added via the epp.
    Copy code
    foo.modules:
    - module: module1
      foo.enabled: true
      bar.enabled: false
    - module: module2
    - module: module3
    Is this possible?
  • s

    Slackbot

    07/01/2022, 4:13 PM
    This message was deleted.
    b
    • 2
    • 3
  • s

    Slackbot

    07/01/2022, 4:54 PM
    This message was deleted.
    c
    • 2
    • 3
  • j

    Joel Wilson

    07/01/2022, 5:51 PM
    The Puppet 6 docs referred to it as
    [server]
    , too
  • j

    Joel Wilson

    07/01/2022, 5:52 PM
    The Puppet 6 docs referred to it as
    [server]
    , too
  • s

    Slackbot

    07/01/2022, 7:08 PM
    This message was deleted.
    b
    r
    • 3
    • 3
  • h

    Hugh Esco

    07/02/2022, 8:07 PM
    trying to sort out how to make the transition from
    puppet cert sign ${client_certname}
    on my pm5 puppetserver. Even after resetting the ca_port to 8140 and restarting the puppetserver, it still seeks to connect on my ${masterport}, 8240. Details:
    Copy code
    # puppetserver ca sign --certname efc9c26-01275.dev.${project_code}.${client_domain}.org 
    Fatal error when running action 'sign'
      Error: Failed connecting to <https://pm5>.${my_domain}.com:8240/puppet-ca/v1/certificate_status/
      Root cause: Failed to open TCP connection to pm5.${my_domain}.com:8240 (Connection refused - connect(2) for "pm5.${my_domain}.com" port 8240)
    Any thoughts on what is required to resolve this would be much appreciated. Thank you for your time.
  • n

    natemccurdy

    07/02/2022, 8:35 PM
    Look at
    /etc/puppetlabs/puppet/puppet.conf
    on that machine. Are you sure the CA port is fixed?
  • n

    natemccurdy

    07/02/2022, 8:35 PM
    also, make sure you're running that command as root.
  • h

    Hugh Esco

    07/04/2022, 2:19 AM
    @natemccurdy thanks for the input! Sorry I missed it yesterday. That file indicates that server.ca_port = 8140. also, yes to running as root, and this:
    Copy code
    # puppet config --section server print | grep ca_port 
    ca_port = 8140
  • n

    natemccurdy

    07/04/2022, 3:53 AM
    Are there other
    ca_port
    settings in other sections? Like [main]?
  • s

    Slackbot

    07/04/2022, 9:50 AM
    This message was deleted.
    c
    n
    • 3
    • 3
  • c

    Corporate Gadfly

    07/04/2022, 12:02 PM
    I have the following on file
    /etc/systemd/system/puppet.service.d/wants.conf
    on my puppet server:
    Copy code
    [Unit]
    Wants=basic.target puppetserver.service
    After=basic.target network.target puppetserver.service
    Perhaps that will solve your issue.
  • c

    Corporate Gadfly

    07/04/2022, 12:02 PM
    I have the following file
    /etc/systemd/system/puppet.service.d/wants.conf
    on my puppet server:
    Copy code
    [Unit]
    Wants=basic.target puppetserver.service
    After=basic.target network.target puppetserver.service
    Perhaps that will solve your issue.
  • s

    Slackbot

    07/04/2022, 1:06 PM
    This message was deleted.
    a
    t
    +3
    • 6
    • 16
  • t

    TheMeier

    07/04/2022, 1:09 PM
    I would consider designing roles in a way that each node has only one role.
  • a

    Allahshukur Ahmadzada

    07/05/2022, 11:14 AM
    honestly not sure If I did right or not but I created a profile for main project and included main project module there, then created a second profile called docker and added docker component module with some modifications like version and so. On role seperately added project profile and docker profile.
1...888990...428Latest