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

Collection of refactors #3

Merged
merged 6 commits into from
Nov 9, 2023
Merged

Conversation

Phil-Friderici
Copy link

Based on PR #1 this PR collects the refactors we want \o/

@Phil-Friderici
Copy link
Author

After merging this, we should create a new major version :)

Copy link

@anders-larsson anders-larsson left a comment

Choose a reason for hiding this comment

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

Looks OK to me.

I have a general question though. What's the point of wrapping all the resource type instead of calling the resource type directory? Is it the extra input validation? Wouldn't the source complain regardless if input is invalid?

README.md Show resolved Hide resolved
Phil Friderici added 3 commits November 9, 2023 11:52
We don't need to declare the symlink anymore, puppetlabs_spec_helper
will create it for us automatically.
@Phil-Friderici
Copy link
Author

I have a general question though. What's the point of wrapping all the resource type instead of calling the resource type directory? Is it the extra input validation? Wouldn't the source complain regardless if input is invalid?

I am not sure I did understand you correctly.
I guess the hashes in init.pp are usefull to be able to use hiera and it's merge functionality.

@anders-larsson
Copy link

I have a general question though. What's the point of wrapping all the resource type instead of calling the resource type directory? Is it the extra input validation? Wouldn't the source complain regardless if input is invalid?

I am not sure I did understand you correctly. I guess the hashes in init.pp are usefull to be able to use hiera and it's merge functionality.

I'm speaking about the wrapper defines for the resources. Like exec.pp, package.pp. E.g. Why do we have defines for reach resource instead of using create_resources($hash).

@Phil-Friderici
Copy link
Author

Phil-Friderici commented Nov 9, 2023

Next guess, this was needed in the old times.
What you would like is available in one module from Voxpupuli:
https://github.com/voxpupuli/puppet-system
Instead of changing ours and migrating our hiera data, I would recommend to switch the modules.

@Phil-Friderici Phil-Friderici merged commit 3384f8d into Ericsson:master Nov 9, 2023
4 checks passed
@Phil-Friderici Phil-Friderici deleted the refactors branch November 9, 2023 13:10
@anders-larsson
Copy link

Looks like it has been archived? Do we know why?

@Phil-Friderici
Copy link
Author

Looks like it has been archived? Do we know why?

Missed that :( But I guess there are a lot more available giving this kind of functionality.
We could also add it to ours if you prefer.

@Phil-Friderici
Copy link
Author

Released as v2.0.0-forked

@Phil-Friderici
Copy link
Author

Looks like it has been archived? Do we know why?

Maybe because stdlib::manage is good enough ?

@anders-larsson
Copy link

Hm. Maybe that's something that should be used instead. Indeed! Guess we'll still need this one for now but maybe we should move towards stdlib::manage.

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

Successfully merging this pull request may close these issues.

2 participants