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

Create server and export client in one step #271

Open
barrypitman opened this issue Mar 16, 2018 · 0 comments
Open

Create server and export client in one step #271

barrypitman opened this issue Mar 16, 2018 · 0 comments

Comments

@barrypitman
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.8
  • Ruby: 2.0.0p648
  • Distribution: Red Hat 7.4
  • Module version: 7.1.0

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

# https://github.com/voxpupuli/puppet-openvpn
openvpn::servers:
    'server_name':
        country: 'ZA'
        province: 'GP'
        city: 'Pretoria'
        organization: 'google.com'
        email: 'admin@google.com'
        server: '10.200.200.0 255.255.255.0'

openvpn::client_defaults:
    server: 'server_name'

openvpn::clients:
    'client_name': {}

openvpn::deploy::export:
        client_name:
            server: 'server_name'

What are you seeing

I can't run the above on a new server. If I do, I get the following error:

Evaluation Error: Operator '[]' is not applicable to an Undef Value. at /etc/puppetlabs/code/environments/openvpn/modules/openvpn/manifests/deploy/export.pp:38:8

It seems that there is an error creating a new server and exporting a client in one step/run. If I comment out the export, and create the server and clients first, then uncomment the export, it works as expected.

What behaviour did you expect instead

I'd like to be able to create & export in one step

Output log

Any additional information you'd like to impart

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