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

    todd.seidenberg

    05/01/2023, 5:18 PM
    Ok
  • t

    todd.seidenberg

    05/01/2023, 5:18 PM
    thats fascinating
  • s

    Slackbot

    05/01/2023, 5:34 PM
    This message was deleted.
    v
    c
    • 3
    • 4
  • v

    vchepkov

    05/01/2023, 5:34 PM
    interesting
  • k

    Kenny Kant

    05/01/2023, 8:46 PM
    Gang is there a way in Puppet to define an external fact combined with a dependency? "Dont define this fact until, this other thing is already completed on the system?"
  • s

    Slackbot

    05/01/2023, 8:49 PM
    This message was deleted.
    v
    • 2
    • 2
  • s

    spp

    05/01/2023, 8:49 PM
    A fact, is by definition, information about a current state. So, if the thing isn't completed, the fact should return something that identifies that, I would think. Can you give us a more complete example?
  • k

    Kenny Kant

    05/01/2023, 8:53 PM
    As gross as this looks ... I have made this an external fact... but it requires python3 to be installed to do the thing.
    Copy code
    Facter.add('python3_installpath') do
        confine kernel: 'Linux'
          setcode 'python3 -c "import sys; print(sys.path[4])" | sed "s/dist-packages//g"'
        end
  • k

    Kenny Kant

    05/01/2023, 8:54 PM
    So my head says .. find away to make this fact only define after I install python
  • v

    vchepkov

    05/01/2023, 8:54 PM
    confine it to python fact
  • s

    spp

    05/01/2023, 8:55 PM
    What are you trying to accomplish? Wouldn't your other install thing just require python?
  • k

    Kenny Kant

    05/01/2023, 8:57 PM
    Hmmm looking into on how to confine... to python... I need the fact so I can manipulate files within the python3 path which could change with python updates... I know its gross...
  • v

    vchepkov

    05/01/2023, 8:58 PM
    python module defines several facts
  • v

    vchepkov

    05/01/2023, 8:58 PM
    https://github.com/voxpupuli/puppet-python/blob/master/lib/facter/python_version.rb
  • k

    Kenny Kant

    05/01/2023, 8:59 PM
    oh thats cool
  • v

    vchepkov

    05/01/2023, 9:02 PM
    so you can do
    Copy code
    confine { Facter.value(:python3_version) }
  • b

    bastelfreak

    05/01/2023, 9:04 PM
    if you need more python facts you can contribute them to our python module 🙂
    👍 1
  • k

    Kenny Kant

    05/01/2023, 9:04 PM
    I didnt even think to look for python module..
  • v

    vchepkov

    05/01/2023, 9:04 PM
    imho, it's not a fact 🙂 one can have infinitive amount of pythons installed 🙂
  • k

    Kenny Kant

    05/01/2023, 9:05 PM
    a rolling fact
  • k

    Kenny Kant

    05/01/2023, 9:05 PM
    lol
  • k

    Kenny Kant

    05/01/2023, 9:05 PM
    shrug ..
  • v

    vchepkov

    05/01/2023, 9:06 PM
    indeed ¯\_(ツ)_/¯
  • s

    Slackbot

    05/02/2023, 2:31 PM
    This message was deleted.
    d
    c
    j
    • 4
    • 27
  • s

    Slackbot

    05/04/2023, 1:02 PM
    This message was deleted.
    b
    d
    j
    • 4
    • 14
  • v

    vchepkov

    05/04/2023, 2:10 PM
    I have an issue with Code Manager . running r10k manually as suggested https://www.puppet.com/docs/pe/2019.8/code_mgr_troubleshoot.html#troubleshooting_code_manager-run-deployment-test works fine
  • v

    vchepkov

    05/04/2023, 2:10 PM
    it's just puppet code that times out
  • v

    vchepkov

    05/04/2023, 2:10 PM
    Support ticket? Or something easy I can check?
  • b

    bastelfreak

    05/04/2023, 2:14 PM
    can you share the output? Like, does
    puppet code
    timeout when speaking to code manager, or does code manager timewhen when talking to the control repo git server or to the forg/other modules?
  • b

    bastelfreak

    05/04/2023, 2:15 PM
    there are a fine timeout limits that can be configured
1...505152...73Latest