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

dhparam doesn't work without 'ensure' #90

Closed
anthonyheckmann opened this issue Aug 8, 2017 · 4 comments
Closed

dhparam doesn't work without 'ensure' #90

anthonyheckmann opened this issue Aug 8, 2017 · 4 comments

Comments

@anthonyheckmann
Copy link

This doesn't create the file unless ensure is uncommented, which should be the default operation.

dhparam { '/etc/openvpn/dh2048.pem': 
    size         => 2048,
    require    => Package['openvpn'],
    # ensure => 'present'    
 }
@anthonyheckmann anthonyheckmann changed the title dhparam doesn't work withouth 'ensure' dhparam doesn't work without 'ensure' Aug 8, 2017
@anthonyheckmann
Copy link
Author

It might be I'm just not using it correctly. Though the docs say this:

dhparam { '/etc/openvpn/dh2048.pem': 
    size         => 2048
}

should work.

@raphink
Copy link
Member

raphink commented Aug 9, 2017

OK. Requiring ensure doesn't shock me, so would it be acceptable to update the docs?

@anthonyheckmann
Copy link
Author

anthonyheckmann commented Aug 9, 2017 via email

@tlcowling
Copy link
Contributor

@anthonyheckmann I think sticking the openssl:: at the beginning is what you want so it collects 'present' by default from the puppet type. This happened to me too just before AND also while doing stuff with openvpn!

openssl::dhparam { '/etc/openvpn/dh2048.pem': 
    size         => 2048
}

Agree with updating the doc to reflect this!

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

3 participants