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

    krishna kant mishra

    02/09/2023, 3:31 PM
    let me take a look
  • v

    vchepkov

    02/09/2023, 3:31 PM
    it shouldn't, it's documented
  • k

    krishna kant mishra

    02/09/2023, 3:41 PM
    @vchepkov any idea how to make sure fact file creates without containing BOM?
  • v

    vchepkov

    02/09/2023, 3:43 PM
    not a windows person, sorry
  • v

    vchepkov

    02/09/2023, 3:43 PM
    google shows this https://www.hesk.com/knowledgebase/index.php?article=87
  • k

    krishna kant mishra

    02/09/2023, 3:45 PM
    i can do it manually but not sure how to modify my puppet installation script to create facts without containing BOM and encoding with UTF8
  • v

    vchepkov

    02/09/2023, 3:46 PM
    hmm and how does it create a fact?
  • t

    tutelacool

    02/09/2023, 4:28 PM
    Hello Community, For a while , I can’t get my regex to match in an ‘Exec’. In bulk, we would like to use sed to replace from :
    Copy code
    my $version_re = qr/(\d+\.?\d)/;
    to :
    Copy code
    my $version_re = qr/(\d+\.?\d+)/;
    I am using that piece of code on puppet. but no success. Does anyone have experience with puppet regexes that could give me a boost? This is the output of the dpkg-query that I am using on the
    onlyif
    part.
    Copy code
    $ dpkg-query -W -f='${Version}' foo-common
    244.rla20.04+1
    here the code:
    Copy code
    $foo_common_ver = '^244\.rla20\.04\+1$'
    exec { 'replace_foo_ctl':
      command     => "sed -i 's|my \$version_re = qr/(\\d+\\.?\\d)/;|my \$version_re = qr/(\\d+\\.?\\d+)/;|g' /usr/bin/foo_ctl",
      onlyif      => "dpkg-query -W -f='\${Version}' foo-common | grep -Eq '$foo_common_ver' ",
      path        => '/bin:/usr/bin:/sbin:/usr/sbin',
      refreshonly => true,
     }
    and my sed seems working here:
    Copy code
    # echo "my \$version_re = qr/(\d+\.?\d)/;" | sed -e 's|my \$version_re = qr/(\\d+\\.?\\d)/;|my \$version_re = qr/(\\d+\\.?\\d+)/;|g'
    my $version_re = qr/(\d+\.?\d+)/;
  • s

    Slackbot

    02/09/2023, 4:29 PM
    This message was deleted.
    t
    b
    +3
    • 6
    • 9
  • s

    Slackbot

    02/09/2023, 4:30 PM
    This message was deleted.
    t
    • 2
    • 1
  • t

    tutelacool

    02/09/2023, 4:33 PM
    it’s historical. We asked to do it via puppet.
  • s

    Skylar Thompson

    02/09/2023, 5:01 PM
    Could you use
    file_line
    instead of sed? I have a suspicion that you're running into some problems with escaping of control characters from all of the nested interpolations, and
    file_line
    would avoid that, though I certainly agree that it still isn't a great permanent fix
  • l

    Lumiere

    02/09/2023, 5:10 PM
    The better question to me is, why not just manage the file in puppet entirely, it sounds like a piece of software not getting updated anymore
    💯 2
  • s

    Skylar Thompson

    02/09/2023, 5:16 PM
    Definitely, though working in the scientific computing world, we've had to make compromises like this with weird proprietary software, and sometimes it's better to limit the scope of what's being managed
  • s

    Skylar Thompson

    02/09/2023, 5:18 PM
    Another option would be packaging the change up as a diff to be applied via
    patch
    , which would have the advantage of failing if the target file has drifted from the original target
  • s

    spin

    02/09/2023, 8:11 PM
    we have 4 compile masters and one of them is showing steady 35k command queue puppetdb... it has same hardware as other compilers that have 3 times as many nodes and they are at 0. what do you all suggest i look into.. we puppet infrastructure tune setup on primary server only, but compilers, as the cmd recommended, have not had any tuning overrides. there are only 350 nodes on that compile master that has the high queue
  • s

    spin

    02/09/2023, 8:13 PM
    we also run our nodes in cached_catalog mode.. so none of our compilers are remotely taxed.. 0.2 load avg with 4cpu and 12GB ram
  • k

    Ken

    02/09/2023, 8:18 PM
    message has been deleted
  • r

    ramindk

    02/09/2023, 8:21 PM
    Puppetdb? 35k command queue makes me think it's stuck trying to update data.
  • s

    Slackbot

    02/09/2023, 8:23 PM
    This message was deleted.
    m
    k
    y
    • 4
    • 21
  • s

    spin

    02/09/2023, 8:23 PM
    we have 4 compile masters and one of them is showing steady 35k command queue puppetdb... it has same hardware as other compilers that have 3 times as many nodes and they are at 0. what do you all suggest i look into.. we puppet infrastructure tune setup on primary server only, but compilers, as the cmd recommended, have not had any tuning overrides. there are only 350 nodes on that compile master that has the high queue
  • k

    Ken

    02/09/2023, 8:24 PM
    Hola fellow puppeteers! I've been tasked with clustering a couple puppet servers in an active-passive (master/backup) configuration. I've found a few old articles on it, and the nuances are definitely around sharing the CA and client-signed certs. Can anyone point me in the right direction as far as best practices, gotchas, etc.? I don't think I need an external CA, I'm leaning towards a self-signed CA if that's possible. Is it as easy as just getting it working on one server, and copying it to the other one? I would refrain from using the machines hostname, so something like 'puppetserver.localdomain' . Finally, I stumbled across this 'alt-dns' thing, could it be as simple as creating an alt dns for the backup machine? https://www.puppet.com/docs/puppet/7/ssl_regenerate_certificates.html#regenerate_agent_certs_and_add_dns_alt_names
  • s

    spin

    02/09/2023, 8:26 PM
    have rock solid 80ms ping between mstr and this compiler, able to do 15MB/s not seeing any sort of networking throughput or latency challenge
  • d

    Dr Bunsen Honeydew

    02/09/2023, 9:45 PM
    kermit typing 🧑‍🏫PE Console is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    02/09/2023, 9:59 PM
    This message was deleted.
    r
    c
    j
    • 4
    • 6
  • s

    Slackbot

    02/09/2023, 10:02 PM
    This message was deleted.
    y
    j
    • 3
    • 3
  • m

    Massimiliano (Max)

    02/09/2023, 11:10 PM
    if you don't have this type of setup, you can disregard my idea ... unless you are keen to reconfigure the DNS.
  • c

    Corporate Gadfly

    02/10/2023, 12:21 AM
    @jms1 What about
    facter -p dmi.manufacturer
    ? I get
    Microsoft Corporation
    . Full disclosure. None of my azure assets run puppet, at the moment, and I simply installed
    facter
    to run this command.
  • b

    binford2k

    02/10/2023, 11:01 AM
    https://dev.to/puppet/vox-pupuli-pmc-elections-2023-3e99
  • s

    Slackbot

    02/10/2023, 12:15 PM
    This message was deleted.
    t
    n
    • 3
    • 13
1...302303304...428Latest