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

README: update server as client howto ? #222

Open
peterbeck opened this issue Jan 23, 2017 · 2 comments
Open

README: update server as client howto ? #222

peterbeck opened this issue Jan 23, 2017 · 2 comments
Labels
bug Something isn't working

Comments

@peterbeck
Copy link
Contributor

Hi Luxflux,

this is not a "real" issue, just a suggestion for the readme....

Maybe I'm missing something, but if I configure a server as a client exactly as shown in the readme, it doesn't work (I can remember it used to work some releases ago, but here on Debian Jessie with the most current pull of the module it doesn't)

Error 400 on SERVER: Could not find resource 'Openvpn::Ca[connection_name]' for relationship on 'Service[openvpn@connection_name]'

But when using the extca parameters, everything's working as excepted.

openvpn::server {
  'connection_name':
    port                   => 1101,
    remote                 => [ 'server.domain.tld 1193' ],
    server_poll_timeout    => 1,
    topology               => '',
    common_name            => 'connection_name',
    dev                    => 'tun-connection_name',
    compression            => 'comp-lzo',
    persist_key            => true,
    persist_tun            => true,
    proto                  => 'udp',
    verb                   => 3,
    extca_enabled          => true,
    extca_ca_cert_file     => "/etc/openvpn/connection_name/keys/ca.crt",
    extca_server_cert_file => "/etc/openvpn/connection_name/keys/connection_name.crt",
    extca_server_key_file  => "/etc/openvpn/connection_name/keys/connection_name.key",
}

Maybe this could be updated in the readme just to avoid questions ? ;-)

@luxflux
Copy link
Contributor

luxflux commented Feb 13, 2017

Thank you for pointing this out. This seems more like a bug to me. It should work without enabling extca.

@luxflux luxflux added the bug Something isn't working label Feb 13, 2017
@javial82
Copy link

Hi,

only fyi, I've had the same problem. When you set the remote var the only extra parameters you need are:
extca_enabled, extca_ca_cert_file, extca_server_cert_file, extca_server_key_file.

You can read it in server.pp:

# [*extca_enabled*]
# Boolean. Turn this on if you are using an external CA solution, like FreeIPA.
# Once enabled, you must configure the remaining extca_* parameters.
# Default: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants