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

    sameer

    06/29/2022, 10:52 AM
    Hello members!!! I would like to define a package in puppet script using case $lsbdistcodename. I already have in the script to install python3-pymodbus to latest but my operating system debian 9 doesn't have the latest package. It works only for python 2.7. when i run the puppet it throws error that unable to locate package. Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg:Options:=--force-confold install python3-pymodbus' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package python3-pymodbus ---------------any leads on this?
  • s

    sameer

    06/29/2022, 10:53 AM
    message has been deleted
  • s

    sameer

    06/29/2022, 10:53 AM
    Hello members!!! I would like to define a package in puppet script using case $lsbdistcodename. I already have in the script to install python3-pymodbus to latest but my operating system debian 9 doesn't have the latest package. It works only for python 2.7. when i run the puppet it throws error that unable to locate package. Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg:Options:=--force-confold install python3-pymodbus' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package python3-pymodbus ---------------any leads on this?
  • s

    Slackbot

    06/29/2022, 12:12 PM
    This message was deleted.
    s
    b
    +2
    • 5
    • 21
  • m

    myname

    06/29/2022, 12:15 PM
    I've got this manifest, package gets installed on every run of the agent, how can I avoid this and have it install/update only once?
    package {'visualstudiocode22':
    require => File['/puppeted/visualstudiocode22.deb'],
    provider => dpkg,
    source   => "/puppeted/visualstudiocode22.deb",}
  • m

    myname

    06/29/2022, 12:16 PM
    I've got this manifest, package gets installed on every run of the agent, how can I avoid this and have it install/update only once?
    package {'visualstudiocode22':
    require => File['/puppeted/visualstudiocode22.deb'],
    provider => dpkg,
    source   => "/puppeted/visualstudiocode22.deb",}
  • b

    Brian Schonecker

    06/29/2022, 12:19 PM
    @myname, can you post the output of the puppet run?
  • b

    Brian Schonecker

    06/29/2022, 12:19 PM
    @myname, can you post the output of the puppet run?
  • m

    myname

    06/29/2022, 12:24 PM
    it's on it, the test machine is sssssssslow
  • m

    myname

    06/29/2022, 12:26 PM
    Info: Applying configuration version '1656505461'
    Notice: /Stage[main]/Vcode22/Package[visualstudiocode22]/ensure: created (corrective)
    Notice: Applied catalog in 238.01 seconds
  • m

    myname

    06/29/2022, 12:27 PM
    but fact is it's already in the correct version, the new one updated by the .deb
  • b

    Brian Schonecker

    06/29/2022, 12:33 PM
    message has been deleted
  • a

    Allahshukur Ahmadzada

    06/29/2022, 1:27 PM
    what is the best practice way of managing common dependencies like java, docker engine, other modules may also use them, So I need to have seperate modules for things like docker, java?
    💯 1
  • v

    vchepkov

    06/29/2022, 1:28 PM
    It doesn't have to me a separate module for each, can be a profile class in a 'profile' module
  • a

    Allahshukur Ahmadzada

    06/29/2022, 1:36 PM
    okay, thank you
  • s

    Scott Fenton

    06/29/2022, 1:45 PM
    OK, I'm stumped. I'm attempting to pull code using Code Manager in PE 2021.06 and getting this error: Unable to determine current branches for Git source 'puppet' (/etc/puppetlabs/code-staging/environments)\nOriginal exception:\nfailed to start SSH session: Unable to exchange encryption keys at... It was working for me until I updated from PE 2021.04
  • b

    Brian Schonecker

    06/29/2022, 1:46 PM
    Have you tried "git clone <path to your git repo>" on the PE server from the command line and as the user that PE uses to pull code?
  • s

    Scott Fenton

    06/29/2022, 1:46 PM
    Yeah, it's successful so long as I set the SSH key to be the one that CM is set to use
  • v

    vchepkov

    06/29/2022, 1:46 PM
    https://puppet.com/docs/pe/2019.8/code_mgr_troubleshoot.html
  • b

    Brian Schonecker

    06/29/2022, 1:46 PM
    I have zero PE experience so I'm just throwing out ideas. I had a similar issue when I fully Puppetized my R10k environment. The puppet user didn't have his public SSH key copied to the GIT server.
  • v

    vchepkov

    06/29/2022, 1:46 PM
    And there is always support portal
  • s

    Scott Fenton

    06/29/2022, 1:47 PM
    Fair enough. Just wanted to check here before I went through formal support
  • b

    Brian Schonecker

    06/29/2022, 1:48 PM
    Is it possible that your GIT server is no longer accepting certain SSH ciphers that your PE server might be trying to use? When I pushed some security settings, some of those were to eliminate old ciphers in SSH. That caused havoc on a few clients that were trying to talk with unsupported ciphers.
  • s

    Scott Fenton

    06/29/2022, 1:49 PM
    How would I check which ciphers PE tries to use? I can check them on the Bitbucket end
  • b

    Brian Schonecker

    06/29/2022, 1:50 PM
    For linux /etc/ssh/sshd_config. Or run this.
  • b

    Brian Schonecker

    06/29/2022, 1:51 PM
    I'm not sure about what PE would use.
  • s

    Scott Fenton

    06/29/2022, 1:51 PM
    Yeah, I haven't changed anything in sshd_config. That's actually managed by Puppet
  • b

    Brian Schonecker

    06/29/2022, 1:51 PM
    But on the source code control side, check the sshd_config. Again, I'm a linux guy so my experience doesn't deviate to other OSs.
  • s

    Scott Fenton

    06/29/2022, 1:52 PM
    No worries. All Linux here 🙂
  • b

    Brian Schonecker

    06/29/2022, 1:53 PM
    I've been out of the Puppet scene for about five years so I'm still quite rusty. I'm back into the swing of things now and am amazed how much has changed in that time.
1...838485...428Latest