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

Wild Card SSLs via dnsimple plugin #150

Open
Luwdo opened this issue Jan 7, 2019 · 0 comments
Open

Wild Card SSLs via dnsimple plugin #150

Luwdo opened this issue Jan 7, 2019 · 0 comments

Comments

@Luwdo
Copy link

Luwdo commented Jan 7, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.0.2
  • Ruby:
  • Distribution: Enterprise
  • Module version: v2.5.0

How to reproduce (e.g Puppet code you use)

  class { ::letsencrypt:
    configure_epel => false,
    email => 'email@human-element.com',
    config => {
      server => 'https://acme-v02.api.letsencrypt.org/directory',
    }
  }
  package { "python2-certbot-dns-dnsimple":
    ensure => installed
  }

  letsencrypt::certonly{ 'domain':
    domains => ['domain.io', '*.domain.io'],
    custom_plugin => true,
    additional_args => ['--dns-dnsimple', '--dns-dnsimple-credentials ~/.secrets/certbot/dnsimple.ini'],
    manage_cron => true,
    cron_success_command => '/bin/systemctl reload nginx',
    suppress_cron_output => true,
  }

What are you seeing

Its throwing an exception that the domains param is not of the defined signature type Array[Stdlib::Host]

What behaviour did you expect instead

The ability to generate a wildcard ssl via the dns-dnsimple plugin

Output log

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Letsencrypt::Certonly[titleboxing-test]: parameter 'domains' index 1 expects a Stdlib::Host = Variant[Stdlib::Fqdn = Pattern[/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/], Stdlib::Compat::Ip_address = Variant[Stdlib::Compat::Ipv4 = Pattern[/^((([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25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-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/]]] value, got String (file: /etc/puppetlabs/code/environments/production/site/profile/manifests/proxy.pp, line: 30) on node proxy.hedev.io

Any additional information you'd like to impart

Had to use custom_plugin because the dnsimple plugin is not in the list, It might be a good idea to add it as well.

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