Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not run: cannot load such file -- harbor1_client #60

Open
linuxmail opened this issue Oct 26, 2021 · 0 comments
Open

Error: Could not run: cannot load such file -- harbor1_client #60

linuxmail opened this issue Oct 26, 2021 · 0 comments

Comments

@linuxmail
Copy link

linuxmail commented Oct 26, 2021

Hello,

I tried the Git version from you and configured a base profile class .. like this one:

# source modules/profile/manifests/docker/harbor.pp
# == Class: profile::docker::harbor
class profile::docker::harbor (
 $api_version = hiera('docker::harbor::api_version'),
 String $ldap_url = hiera('docker::harbor::ldap_url'),
 String $ldap_base_dn = hiera('docker::harbor::ldap_base_dn'),
 String $ldap_search_dn = hiera('docker::harbor::ldap_search_dn'),
 #$ldap_search_password = Sensitive(hiera('docker::harbor::ldap_search_password')),
 String $username = hiera('docker::harbor::username'),
 $password = Sensitive(hiera('docker::harbor::password')),
){

  include harbor

  $swagger_settings = {
    username        => $username,
    password        => $password.unwrap,
    scheme          => 'https',
    verify_ssl      => true,
    verify_ssl_host => true,
    ssl_ca_cert     => '/etc/ssl/certs/ca-certificates.crt',
    host            => $facts['fqdn'],
    api_version     => Integer($api_version),
  }

  file { '/etc/puppetlabs/swagger.yaml':
    ensure  => present,
    content => to_yaml($swagger_settings),
  }

  harbor_user_settings { 'ldap_settings':
    auth_mode            => 'ldap_auth',
    ldap_url             => "$ldap_url",
    ldap_base_dn         => "$ldap_base_dn",
    ldap_search_dn       => "$ldap_search_dn",
  }
}

and configured the values in my Hiera node config.

It fails in the end with:

Error: Could not run: cannot load such file -- harbor1_client

I've tried to install the Gem module on the Puppetserver:

# puppetserver gem install harbor1_client harbor2_client harbor2_legacy_client
# systemctl restart puppetserver

But still no success.

  • System is: Debian 10
  • Puppet on client: 5.5.10-4

Any suggestions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant