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

    VoxBot

    11/17/2022, 11:36 AM
    https://github.com/betadots/puppet-hdm/actions/runs/3487851467/jobs/5835973042#step:4:795 I guess docker in docker is a confusing itself
  • b

    bastelfreak

    11/17/2022, 11:53 AM
    @Alex Fisher didn't you work with a docker container running in github actions?
  • v

    VoxBot

    11/17/2022, 11:54 AM
    wasn't it in puppet-vault?
  • v

    VoxBot

    11/17/2022, 11:54 AM
    or vault_lookup
  • b

    bastelfreak

    11/17/2022, 11:55 AM
    mhm probably vault_lookup
  • b

    bastelfreak

    11/17/2022, 11:55 AM
    check
  • v

    VoxBot

    11/17/2022, 11:58 AM
    ah via a setfile https://github.com/voxpupuli/puppet-vault_lookup/blob/master/spec/acceptance/nodesets/docker/docker.yml
  • t

    tuxmea

    11/17/2022, 12:15 PM
    @bastelfreak running docker in docker works, if both dockerd use different storage engines.
  • a

    Alex Fisher

    11/17/2022, 3:38 PM
    morning
  • a

    Alex Fisher

    11/17/2022, 3:39 PM
    @bastelfreak a docker container running in gitlab actions? How do you mean?
  • b

    bastelfreak

    11/17/2022, 3:40 PM
    I've a module that starts a docker container. I want to test that in github actions. which means github actions starts beaker, which will start a docker container, apply the puppet code inside, which will start another docker instance.
  • b

    bastelfreak

    11/17/2022, 3:41 PM
    https://github.com/betadots/puppet-hdm/actions/runs/3487851467/jobs/5835963476 that works for centos, but on debian/ubuntu it fails with
    Nov 17 11:32:05 <http://debian10-64.example.com|debian10-64.example.com> docker-hdm[4456]: Error: No such container: hdm
  • a

    Alex Fisher

    11/17/2022, 3:42 PM
    ah. I don't think I did anything docker-in-docker related.
  • a

    Alex Fisher

    11/17/2022, 3:43 PM
    You might be thinking of the sidecar containers spun up in this module? https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/7a5e9f5b6ad85f60fb4b094f3af3d0b40665cdf3/.github/workflows/ci.yml#L79
  • a

    Alex Fisher

    11/17/2022, 3:43 PM
    You might be thinking of the sidecar containers spun up in this module? https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/7a5e9f5b6ad85f60fb4b094f3af3d0b40665cdf3/.github/workflows/ci.yml#L79
  • a

    Alex Fisher

    11/17/2022, 3:45 PM
    also see https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/7a5e9f5b6ad85f60fb4b094f3af3d0b40665cdf3/scripts/start-gitlab.sh#L10 and https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/7a5e9f5b6ad85f60fb4b094f3af3d0b40665cdf3/spec/spec_helper_acceptance.rb#L5 for interesting bits on how that works.
  • a

    Alex Fisher

    11/17/2022, 3:45 PM
    also see https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/7a5e9f5b6ad85f60fb4b094f3af3d0b40665cdf3/scripts/start-gitlab.sh#L10 and https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/7a5e9f5b6ad85f60fb4b094f3af3d0b40665cdf3/spec/spec_helper_acceptance.rb#L5 for interesting bits on how that works.
  • b

    bastelfreak

    11/17/2022, 3:55 PM
    ah right
  • c

    Chris Reay

    11/17/2022, 7:09 PM
    Hello. I was hoping I could get some help with the ldapquery module. I have the config setup and I am testing some pretty simple test code. Getting the following error.
    Copy code
    Error while evaluating a Function Call, uninitialized constant Net::LDAP::LdapError
    Puppet Enterprise v 2021.7 net-ldap (0.17.1, 0.12.1) jruby-openssl (0.14.0 java, default: 0.12.2 java, 0.10.1 java) https://forge.puppet.com/modules/puppet/ldapquery
  • b

    bastelfreak

    11/17/2022, 7:10 PM
    maybe it failed to load net-ldap or you have the wrong version
  • b

    bastelfreak

    11/17/2022, 7:10 PM
    did you restart puppetserver after installing the gems
  • c

    Chris Reay

    11/17/2022, 7:16 PM
    I did at least once but I may have done a bit more troubleshooting after so I will try again now just in case
  • c

    Chris Reay

    11/17/2022, 7:17 PM
    I know that the versions mentioned on the module page are a bit outdated. I am hoping being on the latest of all the requirements should work but I can downgrade some of the gems if needed.
  • v

    VoxBot

    11/17/2022, 7:18 PM
    jruby doesn't support the latest I think
  • c

    Chris Reay

    11/17/2022, 7:23 PM
    no change after another reboot of the puppet server
  • b

    bastelfreak

    11/17/2022, 7:32 PM
    is that code used in a function or a type
  • b

    bastelfreak

    11/17/2022, 7:32 PM
    if its a type, the gem needs to be installed for the puppet agent ruby, not the puppetserver ruby
  • c

    Chris Reay

    11/17/2022, 7:33 PM
    ah gotcha
  • c

    Chris Reay

    11/17/2022, 7:33 PM
    that may be the problem
  • c

    Chris Reay

    11/17/2022, 7:34 PM
    Copy code
    class profile::ldap {
      $attributes = [
        'mail',
      ]
    
      $test = ldapquery('(&(objectClass=user)(samaccountname=username))' , $attributes)
      notify { 'notify ldap':
            message  => $test,
          }
    
    }
1...190191192...648Latest