-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
How to transfer configs to clients using openvpn::deploy::export and openvpn::deploy::client? #353
Comments
Hi @flyingstar16. Do you have PuppetDB setup on your Puppet Server? As a starting point, you'll need that to be able to build and deploy the configuration to clients. It seems weird that the client-configs directory is empty, but that could be related to missing PuppetDB if that's not installed. |
Ok so something changed: the agent run after I set up puppetdb shows
which is good... Except that on the openvpn server client-configs is still empty and that I can't find those files anywhere :/ Subsequent runs didn't show those lines, so for good measure I wiped /opt/puppetlabs/puppet/cache and rerun the agent. No joy. Am I missing something super obvious? Side note: if puppetdb is a requirement, it might be a good idea to note it explicitly in the README |
@flyingstar16, you won't see anything in For example, I've specified the
If you do have files in However, I too am having a similar problem as reported in #352 (which now has a misleading title). It seems that Facter and PuppetDB both report that they've done their job properly, but configurations aren't deployed automatically to my clients. |
@flyingstar16, did you ever get to the bottom of your client deployment issues? I'm still having facts generated but not pushed to my configured nodes. |
@jameskirsop no, TBH I abandoned the effort :( I might pick it back up soon-ish (couple of months?) because I'm setting up an offsite backup and want/need a VPN for it, but I'm not 100% sure I'll go the puppet route yet. |
I have the same issue. The certs and config is on puppetdb, we checked. |
@flyingstar16 Out of interest I've tried to replicate your issue, although I'm using Puppet 6.25.1, I was unable to reproduce the issue. With module version v8.2.0 the export to puppetdb goes fine and so does the client retrieving the data. |
Hi,
I'm having some trouble getting my configs exported to a client, and the README is not 100% clear on how this should be configured (or I'm missing something obvious).
I tried a few different things, and read through the issues, PRs and the original description of the functions on bitbucket, googled stuff, but can't seem to get the configs transferred onto the client.
I defined the server first in hiera, then moved them to a .pp file in a "generic" module, and finally in its own module.
This is the (redacted) latest version of the config (although I pretty much copied and pasted everything)
in
server.pp
The client has this in the node config:
When (on the server) I look into
/etc/openvpn/internal_vpn
, the configuration indownload-configs
are present, butclient-configs
only contains an empty file with the same name as the clientThere is absolutely nothing on the client :/
Can someone please let me know what I'm doing wrong?
Thanks in advance!
Affected Puppet, Ruby, OS and module versions/distributions
The text was updated successfully, but these errors were encountered: