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

    Despoina Ioannidi

    02/17/2023, 3:05 PM
    message has been deleted
  • s

    Slackbot

    02/18/2023, 6:47 PM
    This message was deleted.
    s
    y
    • 3
    • 2
  • p

    Phi Do Phuong (Jacky)

    02/19/2023, 11:03 AM
    Hi everyone, i’m new puppet. I have a question and post here to hope you guys can help 🙂 I have a property value is:
    Copy code
    bus_name: T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}
    and i wanna replace the
    ${server}
    with another value:
    Copy code
    def bus_name=(_value)
      modified_bus_name = resource[:bus_name].gsub("\${server}", resource[:server]) if resource[:bus_name]
      modify_spec('busName', modified_bus_name.to_s)
    end
    It can be replaced correctly but puppet always run due to the
    should
    value is
    ${server}
    instead of
    Server01c
    , log here:
    Copy code
    Notice: /Stage[main]/Websphere_application_server::Websphere_jms_connection_factories/Websphere_jms_connection_factories[Server01c]/bus_name: bus_name changed 'T24Busdc-corep10-app03SERVICE_ONLINE_NodeServer01c' to 'T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}' (corrective)
    Please kindly advice me to change the
    should
    value for idempotent purpose
  • p

    Phi Do Phuong (Jacky)

    02/19/2023, 11:08 AM
    Hi everyone, i’m new puppet. I have a question and post here to hope you guys can help 🙂 I have a property value is: •
    bus_name: T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}
    and i wanna replace the
    ${server}
    with another value: •
    def bus_name=(_value)
    modified_bus_name = resource[:bus_name].gsub("\${server}", resource[:server]) if resource[:bus_name]
    modify_spec('busName', <http://modified_bus_name.to|modified_bus_name.to>_s)
    end
    It can be replaced correctly but puppet always run due to the
    should
    value is ${server}, log here:
    Notice: /Stage[main]/Websphere_application_server::Websphere_jms_connection_factories/Websphere_jms_connection_factories[Server01c]/bus_name: bus_name changed 'T24Busdc-corep10-app03SERVICE_ONLINE_NodeServer01c' to 'T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}' (corrective)
    Please kindly advice me to change the
    should
    value for idempotent purpose
  • p

    Phi Do Phuong (Jacky)

    02/19/2023, 11:09 AM
    Hi everyone, i’m new puppet. I have a question and post here to hope you guys can help 🙂 I have a property value is: •
    bus_name: T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}
    and i wanna replace the
    ${server}
    with another value: •
    def bus_name=(_value)
    modified_bus_name = resource[:bus_name].gsub("\${server}", resource[:server]) if resource[:bus_name]
    modify_spec('busName', <http://modified_bus_name.to|modified_bus_name.to>_s)
    end
    It can be replaced correctly but puppet always run due to the
    should
    value is
    ${server}
    instead of
    Server01c
    , log here:
    Notice: /Stage[main]/Websphere_application_server::Websphere_jms_connection_factories/Websphere_jms_connection_factories[Server01c]/bus_name: bus_name changed 'T24Busdc-corep10-app03SERVICE_ONLINE_NodeServer01c' to 'T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}' (corrective)
    Please kindly advice me to change the
    should
    value for idempotent purpose
  • p

    Phi Do Phuong (Jacky)

    02/19/2023, 11:12 AM
    Hi everyone, i’m new puppet. I have a question and post here to hope you guys can help 🙂 I have a property value is:
    Copy code
    bus_name: T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}
    and i wanna replace the
    ${server}
    with another value:
    Copy code
    def bus_name=(_value)
      modified_bus_name = resource[:bus_name].gsub("\${server}", resource[:server]) if resource[:bus_name]
      modify_spec('busName', modified_bus_name.to_s)
    end
    It can be replaced correctly but puppet always run due to the
    should
    value is
    ${server}
    instead of
    Server01c
    , log here:
    Copy code
    Notice: /Stage[main]/Websphere_application_server::Websphere_jms_connection_factories/Websphere_jms_connection_factories[Server01c]/bus_name: bus_name changed 'T24Busdc-corep10-app03SERVICE_ONLINE_NodeServer01c' to 'T24Busdc-corep10-app03SERVICE_ONLINE_Node${server}' (corrective)
    Please kindly advice me to change the
    should
    value for idempotent purpose
  • s

    Slackbot

    02/19/2023, 11:15 AM
    This message was deleted.
    👀 1
    p
    y
    • 3
    • 7
  • s

    Slackbot

    02/20/2023, 8:05 AM
    This message was deleted.
    🆘 6
    t
    m
    +5
    • 8
    • 16
  • s

    Slackbot

    02/20/2023, 11:09 AM
    This message was deleted.
    z
    • 2
    • 2
  • z

    zipkid

    02/20/2023, 11:45 AM
    This error does not happen on
    ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin22]
    It does happen on
    ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]
    and
    ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5) [x86_64-darwin22]
  • s

    Slackbot

    02/20/2023, 11:21 PM
    This message was deleted.
    n
    j
    • 3
    • 4
  • b

    brokencode

    02/21/2023, 9:34 AM
    Hey guys... I have to reinstall an OS where puppet server is running as it's going EOL. What is the best way to migrate puppet server to a new server. Should I start from scratch and move clients over or should I rsync over the installation and just switch hostnames? If I put up a new server, will I need to resign all clients or will it work without if I use the same root ca? I have some resources tied to puppetdb, what is the best way to migrate that? Setup replication and then switch over the db to a new server once they are in sync?
  • c

    CVQuesty

    02/21/2023, 1:54 PM
    @brokencode I usually decide based on how many nodes I have to switch over
  • b

    brokencode

    02/21/2023, 1:54 PM
    we are in the 500 nodes number...
  • b

    brokencode

    02/21/2023, 1:55 PM
    if I setup a new server with CA signed by the same root CA and update server name on the clients, will they just work? Or do I need to resign nodes?
  • c

    CVQuesty

    02/21/2023, 1:56 PM
    I’m thinking likely do an autosign, wait for all the nodes to check in and sign, and then turn it off (if you want)
  • b

    brokencode

    02/21/2023, 1:56 PM
    that makes sense
  • b

    brokencode

    02/21/2023, 1:58 PM
    I think the only issue I have right now is puppetdb... It's a source for our monitoring system and if I move nodes over, servers will drop out of monitoring (monitoring server is using a remote resource to generate required YAML files). I guess the best option would be to use the same puppetdb for both servers and then move over the DB as a last step?
  • y

    Yury Bushmelev

    02/21/2023, 2:26 PM
    I’d go with containers and separate CA from compilers (make it separate container). This way it’d be much easier to reshuffle services across servers later.
  • s

    Slackbot

    02/21/2023, 2:27 PM
    This message was deleted.
    👍 2
    n
    y
    • 3
    • 4
  • b

    brokencode

    02/21/2023, 2:34 PM
    Will look into it. We don't use much containers as we dont have a good usecase and it makes stuff more complicated for us. But doesnt hurt to check
  • c

    CVQuesty

    02/21/2023, 2:37 PM
    I know it comes as a shock to some, but there’s tons of us out here that don’t even look at containers, much less use them.
  • c

    CVQuesty

    02/21/2023, 2:38 PM
    I look at them long enough to pass the next RedHat exam, then I completely forget about them until next time.
  • y

    Yury Bushmelev

    02/21/2023, 2:40 PM
    I was trying to avoid containers for years.. but then I found them hugely useful at some point of time.. cannot think of infra w/o containers these days anymore.. (containers != k8s just in case)
  • s

    Slackbot

    02/21/2023, 2:41 PM
    This message was deleted.
    b
    a
    • 3
    • 9
  • a

    Alonso Muñoz

    02/21/2023, 2:41 PM
    Hello everyone, I want to install puppet 7 on centos 6, but when I run the command 'yum install puppet' it will look for the centos 7 repository and it gives me an error with systemd. Before running that command download this repository 'rpm -ivh https://yum.puppetlabs.com/puppet7/puppet7-release-el-6.noarch.rpm', can someone help me please.
  • c

    CVQuesty

    02/21/2023, 2:46 PM
    You don’t want the vendored Puppet.
  • c

    CVQuesty

    02/21/2023, 2:46 PM
    Being that ANY RedHat variant of version 6 is long since EoL, you’re going to have a bad time.
  • c

    CVQuesty

    02/21/2023, 2:48 PM
    odd. Puppet is listed as supported on a couple of them. Let me look for the instructions for you
1...309310311...428Latest