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

Don't store the PS1 scripts #66

Merged
merged 1 commit into from
Jan 30, 2018
Merged

Conversation

natemccurdy
Copy link
Contributor

Prior to this, the module creates the set and check scripts as files on
disk. This meant that the passwords and script information would be left
hanging around.

This fixes that by building the check and set scripts only when running
the exec. The exec's "command" and "onlyif" parameters now build the
templates directly rather than use the scripts on disk.

I've left the "scripts_dir" parameter around for backward
compatibility. It doesn't do anything, but leaving it around means that
people's existing code won't break.

In a X release of this module, that deprecated parameter should be
removed.

Before merging this, someone should check that the sslcertificate type actually works. There are no acceptance tests, so manual verification is needed.

Copy link
Contributor

@rnelson0 rnelson0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once the rubocop fixes are in.

Prior to this, the module creates the set and check scripts as files on
disk. This meant that the passwords and script information would be left
hanging around.

This fixes that by building the check and set scripts only when running
the exec. The exec's "command" and "onlyif" parameters now build the
templates directly rather than use the scripts on disk.

I've left the "scripts_dir" parameter around for backwards
compatibility. It doesn't do anything, but leaving it around means that
people's existing code won't break.

In a X release of this module, that deprecated parameter should be
removed.
@natemccurdy
Copy link
Contributor Author

@rnelson0 Rubocop fixes are in and passing.

@juniorsysadmin juniorsysadmin added the enhancement New feature or request label Jan 30, 2018
@bastelfreak bastelfreak merged commit 728e7af into puppetlabs:master Jan 30, 2018
@natemccurdy natemccurdy deleted the no_files branch February 1, 2018 16:57
@Ramesh7 Ramesh7 added the feature New Feature label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants